neo.mjs 5.1.10 → 5.1.12

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,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='5.1.10'
23
+ * @member {String} version='5.1.12'
24
24
  */
25
- version: '5.1.10'
25
+ version: '5.1.12'
26
26
  }
27
27
 
28
28
  /**
@@ -119,46 +119,48 @@ if (programOpts.info) {
119
119
  insideNeo = !!programOpts.framework || false,
120
120
  cpArgs = ['-e', env],
121
121
  startDate = new Date();
122
- let childProcess,
123
- status = 0;
122
+ let childProcess;
124
123
 
125
124
  programOpts.noquestions && cpArgs.push('-n');
126
125
  insideNeo && cpArgs.push('-f');
127
126
 
128
127
  if (npminstall === 'yes') {
129
128
  childProcess = spawnSync(npmCmd, ['i'], cpOpts);
130
- status = status | childProcess.status;
129
+ childProcess.status && process.exit(childProcess.status);
131
130
  }
131
+
132
132
  if (themes === 'yes') {
133
133
  childProcess = spawnSync('node', [`${neoPath}/buildScripts/buildThemes.mjs`].concat(cpArgs), cpOpts);
134
- status = status | childProcess.status;
134
+ childProcess.status && process.exit(childProcess.status);
135
135
  }
136
+
136
137
  if (threads === 'yes') {
137
138
  childProcess = spawnSync('node', [`${webpackPath}/buildThreads.mjs`].concat(cpArgs), cpOpts);
138
- status = status | childProcess.status;
139
+ childProcess.status && process.exit(childProcess.status);
139
140
  }
141
+
140
142
  if (parsedocs === 'yes') {
141
143
  childProcess = spawnSync(npmCmd, ['run', 'generate-docs-json'], cpOpts);
142
- status = status | childProcess.status;
143
- };
144
+ childProcess.status && process.exit(childProcess.status);
145
+ }
144
146
 
145
- if (env === 'all' || env === 'dev') {
147
+ if (parsedocs === 'yes' && (env === 'all' || env === 'dev')) {
146
148
  childProcess = spawnSync('node', [`${neoPath}/buildScripts/copyFolder.mjs -s ${path.resolve(cwd, 'docs/output') } -t ${path.resolve(cwd, 'dist/development/docs/output')}`], cpOpts);
147
- status = status | childProcess.status;
149
+ childProcess.status && process.exit(childProcess.status);
148
150
  childProcess = spawnSync('node', [`${neoPath}/buildScripts/copyFolder.mjs -s ${path.resolve(cwd, 'docs/resources')} -t ${path.resolve(cwd, 'dist/development/docs/resources')}`], cpOpts);
149
- status = status | childProcess.status;
151
+ childProcess.status && process.exit(childProcess.status);
150
152
  }
151
153
 
152
- if (env === 'all' || env === 'prod') {
154
+ if (parsedocs === 'yes' && (env === 'all' || env === 'prod')) {
153
155
  childProcess = spawnSync('node', [`${neoPath}/buildScripts/copyFolder.mjs -s ${path.resolve(cwd, 'docs/output') } -t ${path.resolve(cwd, 'dist/production/docs/output')}`], cpOpts);
154
- status = status | childProcess.status;
156
+ childProcess.status && process.exit(childProcess.status);
155
157
  childProcess = spawnSync('node', [`${neoPath}/buildScripts/copyFolder.mjs -s ${path.resolve(cwd, 'docs/resources')} -t ${path.resolve(cwd, 'dist/production/docs/resources')}`], cpOpts);
156
- status = status | childProcess.status;
158
+ childProcess.status && process.exit(childProcess.status);
157
159
  }
158
160
 
159
161
  const processTime = (Math.round((new Date - startDate) * 100) / 100000).toFixed(2);
160
162
  console.log(`\nTotal time for ${programName}: ${processTime}s`);
161
163
 
162
- process.exit(status);
164
+ process.exit();
163
165
  });
164
166
  }
@@ -126,8 +126,7 @@ if (programOpts.info) {
126
126
  appPath = 'apps/' + lAppName + '/',
127
127
  dir = 'apps/' + lAppName,
128
128
  folder = path.resolve(cwd, dir),
129
- startDate = new Date(),
130
- status = 0;
129
+ startDate = new Date();
131
130
 
132
131
  if (!Array.isArray(themes)) {
133
132
  themes = [themes];
@@ -304,13 +303,13 @@ if (programOpts.info) {
304
303
  '-t',
305
304
  path.resolve(folder, 'resources'),
306
305
  ], { env: process.env, cwd: process.cwd(), stdio: 'inherit' });
307
- status = childProcess.status;
306
+ childProcess.status && process.exit(childProcess.status);
308
307
  }
309
308
 
310
309
  const processTime = (Math.round((new Date - startDate) * 100) / 100000).toFixed(2);
311
310
  console.log(`\nTotal time for ${programName}: ${processTime}s`);
312
311
 
313
- process.exit(status);
312
+ process.exit();
314
313
  });
315
314
  });
316
315
  }
@@ -100,8 +100,7 @@ if (programOpts.info) {
100
100
  env = answers.env || programOpts.env || ['all'],
101
101
  insideNeo = !!programOpts.framework || false,
102
102
  startDate = new Date();
103
- let childProcess,
104
- status = 0;
103
+ let childProcess;
105
104
 
106
105
  if (os.platform().startsWith('win')) {
107
106
  webpack = path.resolve(webpack).replace(/\\/g,'/');
@@ -111,19 +110,19 @@ if (programOpts.info) {
111
110
  if (env === 'all' || env === 'dev') {
112
111
  console.log(chalk.blue(`${programName} starting dist/development`));
113
112
  childProcess = spawnSync(webpack, ['--config', `${webpackPath}/development/webpack.config.myapps.mjs`, `--env apps=${apps}`, `--env insideNeo=${insideNeo}`], cpOpts);
114
- status = status | childProcess.status;
113
+ childProcess.status && process.exit(childProcess.status);
115
114
  }
116
115
 
117
116
  // dist/production
118
117
  if (env === 'all' || env === 'prod') {
119
118
  console.log(chalk.blue(`${programName} starting dist/production`));
120
119
  childProcess = spawnSync(webpack, ['--config', `${webpackPath}/production/webpack.config.myapps.mjs`, `--env apps=${apps}`, `--env insideNeo=${insideNeo}`], cpOpts);
121
- status = status | childProcess.status;
120
+ childProcess.status && process.exit(childProcess.status);
122
121
  }
123
122
 
124
123
  const processTime = (Math.round((new Date - startDate) * 100) / 100000).toFixed(2);
125
124
  console.log(`\nTotal time for ${programName}: ${processTime}s`);
126
125
 
127
- process.exit(status);
126
+ process.exit();
128
127
  });
129
128
  }
@@ -82,7 +82,6 @@ if (programOpts.info) {
82
82
  threads = answers.threads || programOpts.threads || 'all',
83
83
  insideNeo = programOpts.framework || false,
84
84
  startDate = new Date();
85
- let status = 0;
86
85
 
87
86
  if (path.sep === '\\') {
88
87
  webpack = path.resolve(webpack).replace(/\\/g,'/');
@@ -93,27 +92,27 @@ if (programOpts.info) {
93
92
 
94
93
  if (threads === 'all' || threads === 'main') {
95
94
  childProcess = spawnSync(webpack, ['--config', `${tPath}.main.mjs`], cpOpts);
96
- status = status | childProcess.status;
95
+ childProcess.status && process.exit(childProcess.status);
97
96
  }
98
97
  if (threads === 'all' || threads === 'app') {
99
98
  childProcess = spawnSync(webpack, ['--config', `${tPath}.appworker.mjs`, `--env insideNeo=${insideNeo}`], cpOpts);
100
- status = status | childProcess.status;
99
+ childProcess.status && process.exit(childProcess.status);
101
100
  }
102
101
  if (threads === 'all' || threads === 'canvas') {
103
102
  childProcess = spawnSync(webpack, ['--config', `${tPath}.worker.mjs`, `--env insideNeo=${insideNeo} worker=canvas`], cpOpts);
104
- status = status | childProcess.status;
103
+ childProcess.status && process.exit(childProcess.status);
105
104
  }
106
105
  if (threads === 'all' || threads === 'data') {
107
106
  childProcess = spawnSync(webpack, ['--config', `${tPath}.worker.mjs`, `--env insideNeo=${insideNeo} worker=data`], cpOpts);
108
- status = status | childProcess.status;
107
+ childProcess.status && process.exit(childProcess.status);
109
108
  }
110
109
  if (threads === 'all' || threads === 'service') {
111
110
  childProcess = spawnSync(webpack, ['--config', `${tPath}.worker.mjs`, `--env insideNeo=${insideNeo} worker=service`], cpOpts);
112
- status = status | childProcess.status;
111
+ childProcess.status && process.exit(childProcess.status);
113
112
  }
114
113
  if (threads === 'all' || threads === 'vdom') {
115
114
  childProcess = spawnSync(webpack, ['--config', `${tPath}.worker.mjs`, `--env insideNeo=${insideNeo} worker=vdom`], cpOpts);
116
- status = status | childProcess.status;
115
+ childProcess.status && process.exit(childProcess.status);
117
116
  }
118
117
  }
119
118
 
@@ -132,6 +131,6 @@ if (programOpts.info) {
132
131
  const processTime = (Math.round((new Date - startDate) * 100) / 100000).toFixed(2);
133
132
  console.log(`\nTotal time for ${programName}: ${processTime}s`);
134
133
 
135
- process.exit(status);
134
+ process.exit();
136
135
  });
137
136
  }
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='5.1.10'
23
+ * @member {String} version='5.1.12'
24
24
  */
25
- version: '5.1.10'
25
+ version: '5.1.12'
26
26
  }
27
27
 
28
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "5.1.10",
3
+ "version": "5.1.12",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -16,8 +16,8 @@
16
16
  position : absolute;
17
17
 
18
18
  tr {
19
- height : 32px !important;
20
- max-height: 32px !important;
19
+ height : v(table-container-cell-height) !important;
20
+ max-height: v(table-container-cell-height) !important;
21
21
  }
22
22
 
23
23
  tr:last-child {
@@ -33,8 +33,8 @@
33
33
  }
34
34
 
35
35
  td, th {
36
- min-width: 200px; // for testing
37
36
  height : inherit;
37
+ min-width: 200px; // for testing
38
38
  width : inherit;
39
39
 
40
40
  &:last-child {
@@ -48,12 +48,12 @@
48
48
 
49
49
  td {
50
50
  background-color: v(table-container-cell-background-color);
51
- border-bottom : 1px solid v(table-container-border-color);
51
+ border-bottom : v(table-container-cell-border-bottom);
52
52
  border-right : 1px solid v(table-container-border-color);
53
53
  border-top : 1px solid transparent;
54
- height : 32px !important;
55
- max-height : 32px !important;
56
- padding : 2px 10px 2px;
54
+ height : v(table-container-cell-height) !important;
55
+ max-height : v(table-container-cell-height) !important;
56
+ padding : v(table-container-cell-padding);
57
57
 
58
58
  &.neo-locked {
59
59
  z-index: 10;
@@ -96,7 +96,7 @@
96
96
  background:rgba(0,0,0,0.1);
97
97
 
98
98
  &:vertical {
99
- margin-top: 32px;
99
+ margin-top: v(table-container-cell-height);
100
100
  }
101
101
  }
102
102
 
@@ -119,5 +119,3 @@
119
119
  }
120
120
  }
121
121
  }
122
-
123
- #myTableContainer ::-webkit-scrollbar-track:horizontal {margin-left: 400px;}
@@ -2,6 +2,9 @@ $neoMap: map-merge($neoMap, (
2
2
  'table-container-border-color' : #2b2b2b,
3
3
  'table-container-cell-background-color' : #3c3f41,
4
4
  'table-container-cell-background-color-even': #323232,
5
+ 'table-container-cell-border-bottom' : 1px solid #2b2b2b,
6
+ 'table-container-cell-height' : 32px,
7
+ 'table-container-cell-padding' : 2px 10px 2px,
5
8
  'table-container-color' : #bbb,
6
9
  'table-container-header-cell-border-bottom' : 2px solid #2b2b2b
7
10
  ));
@@ -11,7 +14,10 @@ $neoMap: map-merge($neoMap, (
11
14
  --table-container-border-color : #{neo(table-container-border-color)};
12
15
  --table-container-cell-background-color : #{neo(table-container-cell-background-color)};
13
16
  --table-container-cell-background-color-even: #{neo(table-container-cell-background-color-even)};
17
+ --table-container-cell-border-bottom : #{neo(table-container-cell-border-bottom)};
18
+ --table-container-cell-height : #{neo(table-container-cell-height)};
19
+ --table-container-cell-padding : #{neo(table-container-cell-padding)};
14
20
  --table-container-color : #{neo(table-container-color)};
15
21
  --table-container-header-cell-border-bottom : #{neo(table-container-header-cell-border-bottom)};
16
22
  }
17
- }
23
+ }
@@ -2,6 +2,9 @@ $neoMap: map-merge($neoMap, (
2
2
  'table-container-border-color' : #ddd,
3
3
  'table-container-cell-background-color' : #fff,
4
4
  'table-container-cell-background-color-even': #f2f2f2,
5
+ 'table-container-cell-border-bottom' : 1px solid #ddd,
6
+ 'table-container-cell-height' : 32px,
7
+ 'table-container-cell-padding' : 2px 10px 2px,
5
8
  'table-container-color' : #666,
6
9
  'table-container-header-cell-border-bottom' : 1px solid #ddd
7
10
  ));
@@ -11,7 +14,10 @@ $neoMap: map-merge($neoMap, (
11
14
  --table-container-border-color : #{neo(table-container-border-color)};
12
15
  --table-container-cell-background-color : #{neo(table-container-cell-background-color)};
13
16
  --table-container-cell-background-color-even: #{neo(table-container-cell-background-color-even)};
17
+ --table-container-cell-border-bottom : #{neo(table-container-cell-border-bottom)};
18
+ --table-container-cell-height : #{neo(table-container-cell-height)};
19
+ --table-container-cell-padding : #{neo(table-container-cell-padding)};
14
20
  --table-container-color : #{neo(table-container-color)};
15
21
  --table-container-header-cell-border-bottom : #{neo(table-container-header-cell-border-bottom)};
16
22
  }
17
- }
23
+ }
@@ -237,12 +237,12 @@ const DefaultConfig = {
237
237
  useVdomWorker: true,
238
238
  /**
239
239
  * buildScripts/injectPackageVersion.mjs will update this value
240
- * @default '5.1.10'
240
+ * @default '5.1.12'
241
241
  * @memberOf! module:Neo
242
242
  * @name config.version
243
243
  * @type String
244
244
  */
245
- version: '5.1.10'
245
+ version: '5.1.12'
246
246
  };
247
247
 
248
248
  Object.assign(DefaultConfig, {