1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Update grunt release task for new package structure

The task still creates .dist/node-red-xyz.zip as an archive
of the full release. It no longer creates .dist/node-red-xyz/ as
a directory containing the to-be-published module. Instead
npm publish should be run in each /packages/node_modules/**
directory in turn.
This commit is contained in:
Nick O'Leary 2018-08-30 15:28:24 +01:00
parent 2980818f0d
commit bf1afcfe8a
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -369,27 +369,6 @@ module.exports = function(grunt) {
dest: 'packages/node_modules/@node-red/editor-client/public/red/about' dest: 'packages/node_modules/@node-red/editor-client/public/red/about'
} }
] ]
},
release: {
files: [{
mode: true,
expand: true,
src: [
'*.md',
'LICENSE',
'package.json',
'settings.js',
'red.js',
'lib/.gitignore',
'nodes/*.demo',
'nodes/core/**',
'red/**',
'public/**',
'editor/templates/**',
'bin/**'
],
dest: path.resolve('<%= paths.dist %>/node-red-<%= pkg.version %>')
}]
} }
}, },
chmod: { chmod: {
@ -398,8 +377,8 @@ module.exports = function(grunt) {
}, },
release: { release: {
src: [ src: [
path.resolve('<%= paths.dist %>/node-red-<%= pkg.version %>/nodes/core/hardware/nrgpio*'), "packages/node_modules/@node-red/nodes/core/hardware/nrgpio",
path.resolve('<%= paths.dist %>/node-red-<%= pkg.version %>/red/runtime/storage/localfilesystem/projects/git/node-red-*sh') "packages/node_modules/@node-red/runtime/lib/storage/localfilesystem/projects/git/node-red-*sh"
] ]
} }
}, },
@ -409,8 +388,11 @@ module.exports = function(grunt) {
archive: '<%= paths.dist %>/node-red-<%= pkg.version %>.zip' archive: '<%= paths.dist %>/node-red-<%= pkg.version %>.zip'
}, },
expand: true, expand: true,
cwd: '<%= paths.dist %>/', cwd: 'packages/node_modules/',
src: ['node-red-<%= pkg.version %>/**'] src: [
'**',
'!@node-red/editor-client/src/**'
]
} }
}, },
jsdoc : { jsdoc : {
@ -550,7 +532,7 @@ module.exports = function(grunt) {
grunt.registerTask('release', grunt.registerTask('release',
'Create distribution zip file', 'Create distribution zip file',
['build','verifyPackageDependencies','clean:release','copy:release','chmod:release','compress:release']); ['build','verifyPackageDependencies','clean:release','chmod:release','compress:release']);
grunt.registerTask('coverage', grunt.registerTask('coverage',
'Run Istanbul code test coverage task', 'Run Istanbul code test coverage task',