ee-bin 2.0.0-beta.1 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +10 -10
- package/package.json +2 -2
- package/tools/encrypt.cjs +1 -1
- package/tools/incrUpdater.cjs +1 -1
- package/tools/move.cjs +1 -1
- package/tools/replaceDist.cjs +1 -1
- package/tools/serve.cjs +1 -1
package/index.cjs
CHANGED
|
@@ -11,7 +11,7 @@ program
|
|
|
11
11
|
.option('--config <folder>', 'config file', './electron/config/bin.js')
|
|
12
12
|
.option('--flag <flag>', 'Custom flag')
|
|
13
13
|
.action(function() {
|
|
14
|
-
const moveScript = require('./tools/move');
|
|
14
|
+
const moveScript = require('./tools/move.cjs');
|
|
15
15
|
moveScript.run(this.opts());
|
|
16
16
|
});
|
|
17
17
|
|
|
@@ -25,7 +25,7 @@ program
|
|
|
25
25
|
.option('--dist <folder>', 'title to use before name')
|
|
26
26
|
.option('--target <folder>', 'title to use before name')
|
|
27
27
|
.action(function() {
|
|
28
|
-
const replaceDist = require('./tools/replaceDist');
|
|
28
|
+
const replaceDist = require('./tools/replaceDist.cjs');
|
|
29
29
|
replaceDist.run(this.opts());
|
|
30
30
|
});
|
|
31
31
|
|
|
@@ -38,7 +38,7 @@ program
|
|
|
38
38
|
.option('--config <folder>', 'config file')
|
|
39
39
|
.option('--out <folder>', 'output directory', './public')
|
|
40
40
|
.action(function() {
|
|
41
|
-
const encrypt = require('./tools/encrypt');
|
|
41
|
+
const encrypt = require('./tools/encrypt.cjs');
|
|
42
42
|
encrypt.run(this.opts());
|
|
43
43
|
});
|
|
44
44
|
|
|
@@ -50,7 +50,7 @@ program
|
|
|
50
50
|
.description('Clear the encrypted code')
|
|
51
51
|
.option('-d, --dir <folder>', 'clean directory')
|
|
52
52
|
.action(function() {
|
|
53
|
-
const encrypt = require('./tools/encrypt');
|
|
53
|
+
const encrypt = require('./tools/encrypt.cjs');
|
|
54
54
|
encrypt.clean(this.opts());
|
|
55
55
|
});
|
|
56
56
|
|
|
@@ -63,7 +63,7 @@ program
|
|
|
63
63
|
.option('-i, --input <file>', 'image file default /public/images/logo.png')
|
|
64
64
|
.option('-o, --output <folder>', 'output directory default /build/icons/')
|
|
65
65
|
.action(function() {
|
|
66
|
-
const iconGen = require('./tools/iconGen');
|
|
66
|
+
const iconGen = require('./tools/iconGen.cjs');
|
|
67
67
|
iconGen.run();
|
|
68
68
|
});
|
|
69
69
|
|
|
@@ -76,7 +76,7 @@ program
|
|
|
76
76
|
.option('--config <folder>', 'config file', './electron/config/bin.js')
|
|
77
77
|
.option('--serve <mode>', 'serve mode')
|
|
78
78
|
.action(function() {
|
|
79
|
-
const serve = require('./tools/serve');
|
|
79
|
+
const serve = require('./tools/serve.cjs');
|
|
80
80
|
serve.dev(this.opts());
|
|
81
81
|
});
|
|
82
82
|
|
|
@@ -89,7 +89,7 @@ program
|
|
|
89
89
|
.option('--config <folder>', 'config file', './electron/config/bin.js')
|
|
90
90
|
.option('--cmds <flag>', 'custom commands')
|
|
91
91
|
.action(function() {
|
|
92
|
-
const serve = require('./tools/serve');
|
|
92
|
+
const serve = require('./tools/serve.cjs');
|
|
93
93
|
serve.build(this.opts());
|
|
94
94
|
});
|
|
95
95
|
|
|
@@ -101,7 +101,7 @@ program
|
|
|
101
101
|
.description('preview effect')
|
|
102
102
|
.option('--config <folder>', 'config file', './electron/config/bin.js')
|
|
103
103
|
.action(function() {
|
|
104
|
-
const serve = require('./tools/serve');
|
|
104
|
+
const serve = require('./tools/serve.cjs');
|
|
105
105
|
serve.start(this.opts());
|
|
106
106
|
});
|
|
107
107
|
|
|
@@ -116,7 +116,7 @@ program
|
|
|
116
116
|
.option('--cmds <flag>', 'custom commands')
|
|
117
117
|
.action(function() {
|
|
118
118
|
// command 选项是关键字,不再使用,改为 cmds
|
|
119
|
-
const serve = require('./tools/serve');
|
|
119
|
+
const serve = require('./tools/serve.cjs');
|
|
120
120
|
serve.exec(this.opts());
|
|
121
121
|
});
|
|
122
122
|
|
|
@@ -130,7 +130,7 @@ program
|
|
|
130
130
|
.option('--asar-file <file>', 'asar file path')
|
|
131
131
|
.option('--platform <flag>', 'platform')
|
|
132
132
|
.action(function() {
|
|
133
|
-
const updater = require('./tools/incrUpdater');
|
|
133
|
+
const updater = require('./tools/incrUpdater.cjs');
|
|
134
134
|
updater.run(this.opts());
|
|
135
135
|
});
|
|
136
136
|
|
package/package.json
CHANGED
package/tools/encrypt.cjs
CHANGED
|
@@ -9,7 +9,7 @@ const crypto = require('crypto');
|
|
|
9
9
|
const JavaScriptObfuscator = require('javascript-obfuscator');
|
|
10
10
|
const globby = require('globby');
|
|
11
11
|
const chalk = require('chalk');
|
|
12
|
-
const Utils = require('../lib/utils');
|
|
12
|
+
const Utils = require('../lib/utils.cjs');
|
|
13
13
|
|
|
14
14
|
class Encrypt {
|
|
15
15
|
constructor(options = {}) {
|
package/tools/incrUpdater.cjs
CHANGED
package/tools/move.cjs
CHANGED
package/tools/replaceDist.cjs
CHANGED
package/tools/serve.cjs
CHANGED