Skip to content

Commit a6c3b57

Browse files
committed
Polishing everything for public consumption
1 parent 07c2b05 commit a6c3b57

26 files changed

+125
-73
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ sitemap.xml.gz
3232
.sass-cache
3333
bower_components
3434
node_modules
35+
vendor
3536
build
3637
dist
3738
_normalize.scss

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"browsersync",
1818
"livereload"
1919
],
20-
"license": "GPLv3",
20+
"license": "GPL-3.0",
2121
"ignore": [
2222
"**/.*",
2323
"node_modules",

composer.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "synapticism/wordpress-gulp-bower-sass",
3+
"description": "A WordPress/Gulp/Bower/Sass starter kit",
4+
"keywords": [
5+
"wordpress",
6+
"wordpress-theme",
7+
"wordpress-starter-theme",
8+
"theme",
9+
"gulp",
10+
"bower",
11+
"composer",
12+
"sass",
13+
"browsersync",
14+
"livereload"
15+
],
16+
"homepage": "https://github.com/synapticism/wordpress-gulp-bower-sass",
17+
"license": "GPL-3.0",
18+
"authors": [
19+
{
20+
"name": "Alexander Synaptic",
21+
"email": "[email protected]",
22+
"homepage": "http://alexandersynaptic.com"
23+
}
24+
],
25+
"type": "library"
26+
}

gulp/tasks-active/bower.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var gulp = require('gulp')
44
, plugins = require('gulp-load-plugins')({ camelize: true })
5-
, config = require('../config').bower
5+
, config = require('../../gulpconfig').bower
66
;
77

88
// This task is executed on `bower update` which is in turn triggered by `npm update`; use this to copy and transform source files managed by Bower

gulp/tasks-active/browsersync.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var gulp = require('gulp')
44
, browsersync = require('browser-sync')
5-
, config = require('../config').browsersync
5+
, config = require('../../gulpconfig').browsersync
66
;
77

88
// BrowserSync: be sure to setup `proxy` in `config.js

gulp/tasks-active/images.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var gulp = require('gulp')
44
, plugins = require('gulp-load-plugins')({ camelize: true })
5-
, config = require('../config').images
5+
, config = require('../../gulpconfig').images
66
;
77

88
// Copy changed images from the source folder to `build` (fast)

gulp/tasks-active/livereload.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var gulp = require('gulp')
44
, plugins = require('gulp-load-plugins')({ camelize: true })
5-
, config = require('../config').livereload
5+
, config = require('../../gulpconfig').livereload
66
;
77

88
// Start the livereload server; not asynchronous

gulp/tasks-active/scripts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var gulp = require('gulp')
44
, plugins = require('gulp-load-plugins')({ camelize: true })
55
, merge = require('merge-stream')
6-
, config = require('../config').scripts
6+
, config = require('../../gulpconfig').scripts
77
;
88

99
// Check core scripts for errors

gulp/tasks-active/styles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var gulp = require('gulp')
44
, gutil = require('gulp-util')
55
, plugins = require('gulp-load-plugins')({ camelize: true })
6-
, config = require('../config').styles
6+
, config = require('../../gulpconfig').styles
77
;
88

99
// Build stylesheets from source Sass files, autoprefix, and make a minified copy (for debugging)

gulp/tasks-active/theme.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var gulp = require('gulp')
44
, plugins = require('gulp-load-plugins')({ camelize: true })
5-
, config = require('../config').theme
5+
, config = require('../../gulpconfig').theme
66
;
77

88
// Copy PHP source files to the `build` folder

gulp/tasks-active/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var gulp = require('gulp')
44
, plugins = require('gulp-load-plugins')({ camelize: true })
55
, del = require('del')
6-
, config = require('../config').utils
6+
, config = require('../../gulpconfig').utils
77
;
88

99
// Totally wipe the contents of the `dist` folder to prepare for a clean build; additionally trigger Bower-related tasks to ensure we have the latest source files

gulp/tasks-active/watch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var gulp = require('gulp')
44
, plugins = require('gulp-load-plugins')({ camelize: true })
5-
, config = require('../config').watch
5+
, config = require('../../gulpconfig').watch
66
;
77

88
// Watch (BrowserSync version): build stuff when source files are modified, let BrowserSync figure out when to reload

gulp/tasks-inactive/styles-libsass.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var gulp = require('gulp')
44
, plugins = require('gulp-load-plugins')({ camelize: true })
5-
, config = require('../config').styles
5+
, config = require('../../gulpconfig').styles
66
;
77

88
// This task is a future proof-of-concept for when Libsass approaches feature parity with the original Sass library

gulp/config.js gulpconfig.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
// ==== CONFIGURATION ==== //
22

33
// Project paths
4-
var project = 'voidance'
4+
var project = 'voidx'
55
, src = './src/'
66
, build = './build/'
77
, dist = './dist/'+project+'/'
88
, bower = './bower_components/'
9+
, composer = './vendor/'
910
;
1011

1112
// Project settings

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@
1010
"keywords": [
1111
"wordpress",
1212
"wordpress-theme",
13+
"wordpress-starter-theme",
14+
"theme",
1315
"gulp",
1416
"bower",
17+
"composer",
1518
"sass",
1619
"browsersync",
1720
"livereload"
@@ -20,7 +23,7 @@
2023
"test": "echo \"Error: no test specified\" && exit 1"
2124
},
2225
"author": "Alexander Synaptic <[email protected]>",
23-
"license": "GPLv3",
26+
"license": "GPL-3.0",
2427
"main": "gulpfile.js",
2528
"private": true,
2629
"devDependencies": {

0 commit comments

Comments
 (0)