Browse Source

Fixes for package.json missing causing issues

pull/1243/head
jlukic 10 years ago
parent
commit
b388af58ba
2 changed files with 24 additions and 15 deletions
  1. 4
      gulpfile.js
  2. 35
      tasks/gulp-settings.js

4
gulpfile.js

@ -620,6 +620,10 @@ gulp.task('build-docs', false, function () {
});
/* Build Component Release Only */
gulp.task('build release', false, function() {
runSequence('build', 'create repos');
});
/* Release */
gulp.task('release', false, function() {

35
tasks/gulp-settings.js

@ -1,26 +1,31 @@
var package = require('../package.json');
var
fs = require('fs'),
package = (fs.existsSync('../package/.json'))
? require('../package.json')
: false
;
module.exports = {
del: {
silent: true
silent : true
},
minify: {
processImport: false,
keepSpecialComments: 0
processImport : false,
keepSpecialComments : 0
},
uglify: {
mangle: true
mangle : true
},
prefix: {
browsers: [
"last 2 version",
"> 1%",
"opera 12.1",
"safari 6",
"ie 9",
"bb 10",
"android 4"
'last 2 version',
'> 1%',
'opera 12.1',
'safari 6',
'ie 9',
'bb 10',
'android 4'
]
},
header: {
@ -37,9 +42,9 @@ module.exports = {
},
wrench: {
recursive: {
forceDelete: false,
excludeHiddenUnix: true,
preserveFiles: true
forceDelete : false,
excludeHiddenUnix : true,
preserveFiles : true
}
}
};
Loading…
Cancel
Save