Publish script.

This commit is contained in:
baldo 2016-06-11 19:08:46 +02:00
parent 697ad50f1d
commit 3fb3eb437f
3 changed files with 50 additions and 2 deletions

View file

@ -370,7 +370,6 @@ module.exports = function (grunt) {
dest: '<%= yeoman.dist %>/',
src: [
'config.json.example',
'package.json',
'LICENSE',
'README.md'
]
@ -397,6 +396,23 @@ module.exports = function (grunt) {
}
},
// Toggle private flag in package.json when copying to dist/.
replace: {
dist: {
options: {
patterns: [{
match: /"private": true/g,
replacement: '"private": false'
}]
},
files: [{
src: ['package.json'],
dest: 'dist/',
cwd: '.'
}]
}
},
// Run some tasks in parallel to speed up the build process
concurrent: {
server: [
@ -442,6 +458,7 @@ module.exports = function (grunt) {
'concat',
'ngAnnotate',
'copy:dist',
'replace:dist',
'cssmin',
'uglify',
'rev',