@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.
@@ -20,6 +20,7 @@ async function buildStyledComponents(
20
20
  transpileTemplateLiterals: true,
21
21
  },
22
22
  ],
23
+ '@babel/plugin-proposal-optional-chaining',
23
24
  ],
24
25
  };
25
26
  const jsFiles = files.filter((file) => file.endsWith('.js'));
@@ -9,7 +9,7 @@ const { loadPushwooshConfig } = require('./helpers');
9
9
 
10
10
  program
11
11
  .version('1.0.0')
12
- .description('An example CLI tool with commander')
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('Check types in the project')
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:get')
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:get')
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:get')
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/frontend-builder-engine",
3
- "version": "0.2.6",
3
+ "version": "0.3.0",
4
4
  "description": "Pushwoosh frontend builder engine",
5
5
  "main": "./lib/pushwoosh-frontend-builder-engine.js",
6
6
  "scripts": {