Publish script.
This commit is contained in:
parent
697ad50f1d
commit
3fb3eb437f
3 changed files with 50 additions and 2 deletions
19
Gruntfile.js
19
Gruntfile.js
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue