Grunt build and gitignore updates

This commit is contained in:
Hannah Wolfe 2013-09-18 19:45:21 +01:00
parent ee78f87c47
commit 0ea290df96
2 changed files with 20 additions and 31 deletions

1
.gitignore vendored
View File

@ -22,6 +22,7 @@ projectFilesBackup
# Ghost DB file # Ghost DB file
*.db *.db
*.db-journal
.build .build
.dist .dist

View File

@ -9,6 +9,22 @@ var path = require('path'),
distDirectory = path.resolve(process.cwd(), '.dist'), distDirectory = path.resolve(process.cwd(), '.dist'),
configLoader = require('./core/config-loader.js'), configLoader = require('./core/config-loader.js'),
buildGlob = [
'**',
'!docs/**',
'!node_modules/**',
'!content/images/**',
'!**/*.db*',
'!*.db*',
'!.sass*',
'!.af*',
'!.git*',
'!.groc*',
'!*.iml',
'!config.js',
'!.travis.yml'
],
configureGrunt = function (grunt) { configureGrunt = function (grunt) {
// load all grunt tasks // load all grunt tasks
@ -267,49 +283,21 @@ var path = require('path'),
nightly: { nightly: {
files: [{ files: [{
expand: true, expand: true,
src: [ src: buildGlob,
'**',
'!node_modules/**',
'!core/server/data/*.db',
'!.sass*',
'!.af*',
'!.git*',
'!.groc*',
'!.travis.yml'
],
dest: "<%= paths.nightlyBuild %>/<%= pkg.version %>/" dest: "<%= paths.nightlyBuild %>/<%= pkg.version %>/"
}] }]
}, },
weekly: { weekly: {
files: [{ files: [{
expand: true, expand: true,
src: [ src: buildGlob,
'**',
'!node_modules/**',
'!core/server/data/*.db',
'!.sass*',
'!.af*',
'!.git*',
'!.groc*',
'!.travis.yml'
],
dest: "<%= paths.weeklyBuild %>/<%= pkg.version %>/" dest: "<%= paths.weeklyBuild %>/<%= pkg.version %>/"
}] }]
}, },
build: { build: {
files: [{ files: [{
expand: true, expand: true,
src: [ src: buildGlob,
'**',
'!node_modules/**',
'!core/server/data/*.db',
'!.sass*',
'!.af*',
'!.git*',
'!.groc*',
'!.iml*',
'!.travis.yml'
],
dest: "<%= paths.buildBuild %>/" dest: "<%= paths.buildBuild %>/"
}] }]
} }