Skip to content

Commit f2f19c1

Browse files
committed
Updates to version 1.2.0
1 parent b4f89e1 commit f2f19c1

6 files changed

Lines changed: 24 additions & 40 deletions

File tree

.conf/grunt/call_npm.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* © 2024, db-developer.
3+
* Licensed under the MIT license.
4+
*/
5+
6+
module.exports = function ( grunt, options ) {
7+
return {
8+
pack: {
9+
options:{
10+
cmd: "pack",
11+
args: [ `./${ options.BUILDDIR }`, "--pack-destination", `./${ options.DISTDIR }` ]
12+
}
13+
}
14+
};
15+
};

.conf/grunt/move.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

.conf/grunt/shell.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

.conf/strings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = {
1010
BUILD: "build",
1111
BUILDWP: "webpack_build",
1212
BUILDRO: "rollup_build",
13+
CALL_NPM: "call_npm",
1314
CLEAN: "clean",
1415
CONF: "conf",
1516
COPY: "copy",
@@ -25,7 +26,6 @@ module.exports = {
2526
JSONFILE: "jsonfile",
2627
LIB: "lib",
2728
MKDIR: "mkdir",
28-
MOVE: "move",
2929
NYCMOCHA: "nyc_mocha",
3030
REPORTS: "reports",
3131
ROLLUP: "rollup",

Gruntfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ module.exports = function( grunt ) {
3939
strings.MKDIR, `${ strings.COPY }:build`,
4040
strings.JSONFILE, strings.BUILDRO ]);
4141

42-
grunt.registerTask( strings.BUILDWP, [ strings.WEBPACK, "shell:npm_pack" ]);
42+
grunt.registerTask( strings.BUILDWP, [ strings.WEBPACK ]);
4343

44-
grunt.registerTask( strings.BUILDRO, [ strings.ROLLUP, "shell:npm_pack" ]);
44+
grunt.registerTask( strings.BUILDRO, [ strings.ROLLUP ]);
4545

4646
// run coverage (required by travis)
4747
grunt.registerTask( strings.COVERAGE, [ strings.ESLINT, strings.CLEAN, strings.MKDIR,
@@ -54,7 +54,7 @@ module.exports = function( grunt ) {
5454
grunt.registerTask( strings.DEPLOY, [ `${ strings.COPY }:deploy` ]);
5555

5656
// run dist: clean dist and move current.tgz from cwd to dist
57-
grunt.registerTask( strings.DIST, [ `${ strings.CLEAN }:dist`, strings.MOVE ]);
57+
grunt.registerTask( strings.DIST, [ `${ strings.CLEAN }:dist`, `${ strings.CALL_NPM }:pack` ]);
5858

5959
// run docs
6060
grunt.registerTask( strings.DOCS, [ strings.ESLINT, strings.JSDOC2MD ]);

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,28 @@
3636
},
3737
"homepage": "https://www.slashlib.org/?page_id=429",
3838
"devDependencies": {
39-
"@babel/core": "^7.24.7",
39+
"@babel/core": "^7.24.8",
4040
"@rollup/plugin-commonjs": "^26.0.1",
4141
"@rollup/plugin-json": "^6.1.0",
4242
"@rollup/plugin-node-resolve": "^15.2.3",
4343
"@rollup/plugin-terser": "^0.4.4",
44-
"babel-loader": "^9.1.2",
44+
"babel-loader": "^9.1.3",
4545
"expect.js": "^0.3.1",
4646
"grunt": "^1.6.1",
47+
"grunt-call-npm": "^0.0.2",
4748
"grunt-contrib-clean": "^2.0.1",
4849
"grunt-contrib-copy": "^1.0.0",
4950
"grunt-eslint": "^25.0.0",
5051
"grunt-jsdoc2md": "^1.2.0",
51-
"grunt-jsonfile": "^1.2.0",
52+
"grunt-jsonfile": "^1.2.1",
5253
"grunt-mkdir": "^1.1.0",
53-
"grunt-move": "^2.0.0",
5454
"grunt-nyc-mocha": "^1.2.0",
5555
"grunt-rollup": "^12.0.0",
56-
"grunt-shell": "^4.0.0",
5756
"grunt-webpack": "^6.0.0",
5857
"load-grunt-config": "^4.0.1",
5958
"load-grunt-tasks": "^5.1.0",
6059
"source-map-support": "^0.5.21",
61-
"webpack": "^5.88.2"
60+
"webpack": "^5.93.0"
6261
},
6362
"dependencies": {
6463
"check-outdated": "^2.12.0"

0 commit comments

Comments
 (0)