@pushwoosh/frontend-builder-engine 0.2.6 → 0.3.0
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/lib/build-babel.js +1 -0
- package/lib/pushwoosh-engine.js +18 -9
- package/package.json +1 -1
package/lib/build-babel.js
CHANGED
package/lib/pushwoosh-engine.js
CHANGED
|
@@ -9,7 +9,7 @@ const { loadPushwooshConfig } = require('./helpers');
|
|
|
9
9
|
|
|
10
10
|
program
|
|
11
11
|
.version('1.0.0')
|
|
12
|
-
.description('
|
|
12
|
+
.description('Build lib')
|
|
13
13
|
//.option('-n, --name <type>', 'Your name')
|
|
14
14
|
//.option('-a, --age <type>', 'Your age')
|
|
15
15
|
.command('lib:build')
|
|
@@ -39,9 +39,17 @@ program
|
|
|
39
39
|
);
|
|
40
40
|
program
|
|
41
41
|
.addCommand(
|
|
42
|
-
new Command('lib:playground')
|
|
43
|
-
.description('
|
|
42
|
+
new Command('lib:command:playground')
|
|
43
|
+
.description('Playground command')
|
|
44
44
|
.action(async () => {
|
|
45
|
+
const cmd = [
|
|
46
|
+
'./node_modules/.bin/webpack-dev-server',
|
|
47
|
+
'--config',
|
|
48
|
+
'./node_modules/@pushwoosh/frontend-builder-engine/lib/webpack.playground.config.js',
|
|
49
|
+
'--stats-error-details',
|
|
50
|
+
];
|
|
51
|
+
console.log(cmd.join(' '));
|
|
52
|
+
/*
|
|
45
53
|
const wpChildProcess = childProcess.spawn(
|
|
46
54
|
'./node_modules/.bin/webpack-dev-server',
|
|
47
55
|
[
|
|
@@ -57,13 +65,14 @@ program
|
|
|
57
65
|
wpChildProcess.on('exit', () => console.log('webpack finished'));
|
|
58
66
|
wpChildProcess.on('error', (aa) => console.error('error', aa));
|
|
59
67
|
wpChildProcess.on('message', (aa) => console.info('mess', aa));
|
|
68
|
+
*/
|
|
60
69
|
}),
|
|
61
70
|
);
|
|
62
71
|
|
|
63
72
|
program
|
|
64
73
|
.addCommand(
|
|
65
|
-
new Command('app:dev
|
|
66
|
-
.description('App')
|
|
74
|
+
new Command('app:command:dev')
|
|
75
|
+
.description('App dev command')
|
|
67
76
|
.action(async () => {
|
|
68
77
|
const cmd = [
|
|
69
78
|
'./node_modules/.bin/webpack',
|
|
@@ -77,8 +86,8 @@ program
|
|
|
77
86
|
|
|
78
87
|
program
|
|
79
88
|
.addCommand(
|
|
80
|
-
new Command('app:build
|
|
81
|
-
.description('App')
|
|
89
|
+
new Command('app:command:build')
|
|
90
|
+
.description('App build command')
|
|
82
91
|
.action(async () => {
|
|
83
92
|
const cmd = [
|
|
84
93
|
'./node_modules/.bin/webpack',
|
|
@@ -93,8 +102,8 @@ program
|
|
|
93
102
|
|
|
94
103
|
program
|
|
95
104
|
.addCommand(
|
|
96
|
-
new Command('app:analyze
|
|
97
|
-
.description('App')
|
|
105
|
+
new Command('app:command:analyze')
|
|
106
|
+
.description('App analyze command')
|
|
98
107
|
.action(async () => {
|
|
99
108
|
const cmd = [
|
|
100
109
|
'./node_modules/.bin/webpack',
|