mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add pack-modules grunt task
This commit is contained in:
parent
ba7416450e
commit
1111d2518b
31
Gruntfile.js
31
Gruntfile.js
@ -392,6 +392,28 @@ module.exports = function(grunt) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
'npm-command': {
|
||||||
|
options: {
|
||||||
|
cmd: "pack",
|
||||||
|
cwd: "<%= paths.dist %>/modules"
|
||||||
|
},
|
||||||
|
'node-red': { options: { args: [__dirname+'/packages/node_modules/node-red'] } },
|
||||||
|
'@node-red/editor-api': { options: { args: [__dirname+'/packages/node_modules/@node-red/editor-api'] } },
|
||||||
|
'@node-red/editor-client': { options: { args: [__dirname+'/packages/node_modules/@node-red/editor-client'] } },
|
||||||
|
'@node-red/nodes': { options: { args: [__dirname+'/packages/node_modules/@node-red/nodes'] } },
|
||||||
|
'@node-red/registry': { options: { args: [__dirname+'/packages/node_modules/@node-red/registry'] } },
|
||||||
|
'@node-red/runtime': { options: { args: [__dirname+'/packages/node_modules/@node-red/runtime'] } },
|
||||||
|
'@node-red/util': { options: { args: [__dirname+'/packages/node_modules/@node-red/util'] } }
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
mkdir: {
|
||||||
|
release: {
|
||||||
|
options: {
|
||||||
|
create: ['<%= paths.dist %>/modules']
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
compress: {
|
compress: {
|
||||||
release: {
|
release: {
|
||||||
options: {
|
options: {
|
||||||
@ -456,6 +478,8 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks('grunt-webdriver');
|
grunt.loadNpmTasks('grunt-webdriver');
|
||||||
grunt.loadNpmTasks('grunt-jsdoc');
|
grunt.loadNpmTasks('grunt-jsdoc');
|
||||||
grunt.loadNpmTasks('grunt-jsdoc-to-markdown');
|
grunt.loadNpmTasks('grunt-jsdoc-to-markdown');
|
||||||
|
grunt.loadNpmTasks('grunt-npm-command');
|
||||||
|
grunt.loadNpmTasks('grunt-mkdir');
|
||||||
|
|
||||||
grunt.registerMultiTask('attachCopyright', function() {
|
grunt.registerMultiTask('attachCopyright', function() {
|
||||||
var files = this.data.src;
|
var files = this.data.src;
|
||||||
@ -542,7 +566,12 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
grunt.registerTask('release',
|
grunt.registerTask('release',
|
||||||
'Create distribution zip file',
|
'Create distribution zip file',
|
||||||
['build','verifyPackageDependencies','clean:release','chmod:release','compress:release']);
|
['build','verifyPackageDependencies','clean:release','mkdir:release','chmod:release','compress:release','pack-modules']);
|
||||||
|
|
||||||
|
grunt.registerTask('pack-modules',
|
||||||
|
'Create module pack files for release',
|
||||||
|
['mkdir:release','npm-command']);
|
||||||
|
|
||||||
|
|
||||||
grunt.registerTask('coverage',
|
grunt.registerTask('coverage',
|
||||||
'Run Istanbul code test coverage task',
|
'Run Istanbul code test coverage task',
|
||||||
|
@ -90,8 +90,10 @@
|
|||||||
"grunt-jsdoc": "^2.2.1",
|
"grunt-jsdoc": "^2.2.1",
|
||||||
"grunt-jsdoc-to-markdown": "^4.0.0",
|
"grunt-jsdoc-to-markdown": "^4.0.0",
|
||||||
"grunt-jsonlint": "~1.1.0",
|
"grunt-jsonlint": "~1.1.0",
|
||||||
|
"grunt-mkdir": "~1.0.0",
|
||||||
"grunt-mocha-istanbul": "5.0.2",
|
"grunt-mocha-istanbul": "5.0.2",
|
||||||
"grunt-nodemon": "~0.4.2",
|
"grunt-nodemon": "~0.4.2",
|
||||||
|
"grunt-npm-command": "~0.1.2",
|
||||||
"grunt-sass": "~2.0.0",
|
"grunt-sass": "~2.0.0",
|
||||||
"grunt-simple-mocha": "~0.4.1",
|
"grunt-simple-mocha": "~0.4.1",
|
||||||
"grunt-webdriver": "^2.0.3",
|
"grunt-webdriver": "^2.0.3",
|
||||||
|
2
packages/node_modules/@node-red/editor-api/.npmignore
vendored
Normal file
2
packages/node_modules/@node-red/editor-api/.npmignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
src
|
||||||
|
docs
|
@ -1 +1,2 @@
|
|||||||
src
|
src
|
||||||
|
docs
|
||||||
|
2
packages/node_modules/@node-red/nodes/.npmignore
vendored
Normal file
2
packages/node_modules/@node-red/nodes/.npmignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
src
|
||||||
|
docs
|
2
packages/node_modules/@node-red/registry/.npmignore
vendored
Normal file
2
packages/node_modules/@node-red/registry/.npmignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
src
|
||||||
|
docs
|
2
packages/node_modules/@node-red/runtime/.npmignore
vendored
Normal file
2
packages/node_modules/@node-red/runtime/.npmignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
src
|
||||||
|
docs
|
2
packages/node_modules/@node-red/util/.npmignore
vendored
Normal file
2
packages/node_modules/@node-red/util/.npmignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
src
|
||||||
|
docs
|
2
packages/node_modules/node-red/.npmignore
vendored
Normal file
2
packages/node_modules/node-red/.npmignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
src
|
||||||
|
docs
|
Loading…
Reference in New Issue
Block a user