mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Grunt build and gitignore updates
This commit is contained in:
parent
ee78f87c47
commit
0ea290df96
2 changed files with 20 additions and 31 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -22,6 +22,7 @@ projectFilesBackup
|
|||
|
||||
# Ghost DB file
|
||||
*.db
|
||||
*.db-journal
|
||||
|
||||
.build
|
||||
.dist
|
||||
|
|
50
Gruntfile.js
50
Gruntfile.js
|
@ -9,6 +9,22 @@ var path = require('path'),
|
|||
distDirectory = path.resolve(process.cwd(), '.dist'),
|
||||
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) {
|
||||
|
||||
// load all grunt tasks
|
||||
|
@ -267,49 +283,21 @@ var path = require('path'),
|
|||
nightly: {
|
||||
files: [{
|
||||
expand: true,
|
||||
src: [
|
||||
'**',
|
||||
'!node_modules/**',
|
||||
'!core/server/data/*.db',
|
||||
'!.sass*',
|
||||
'!.af*',
|
||||
'!.git*',
|
||||
'!.groc*',
|
||||
'!.travis.yml'
|
||||
],
|
||||
src: buildGlob,
|
||||
dest: "<%= paths.nightlyBuild %>/<%= pkg.version %>/"
|
||||
}]
|
||||
},
|
||||
weekly: {
|
||||
files: [{
|
||||
expand: true,
|
||||
src: [
|
||||
'**',
|
||||
'!node_modules/**',
|
||||
'!core/server/data/*.db',
|
||||
'!.sass*',
|
||||
'!.af*',
|
||||
'!.git*',
|
||||
'!.groc*',
|
||||
'!.travis.yml'
|
||||
],
|
||||
src: buildGlob,
|
||||
dest: "<%= paths.weeklyBuild %>/<%= pkg.version %>/"
|
||||
}]
|
||||
},
|
||||
build: {
|
||||
files: [{
|
||||
expand: true,
|
||||
src: [
|
||||
'**',
|
||||
'!node_modules/**',
|
||||
'!core/server/data/*.db',
|
||||
'!.sass*',
|
||||
'!.af*',
|
||||
'!.git*',
|
||||
'!.groc*',
|
||||
'!.iml*',
|
||||
'!.travis.yml'
|
||||
],
|
||||
src: buildGlob,
|
||||
dest: "<%= paths.buildBuild %>/"
|
||||
}]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue