not-node 5.0.2 → 5.0.5

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.
@@ -31,7 +31,8 @@ let opts = {
31
31
  'to': argv.to || false,
32
32
  'config': argv.config || './project.manifest.json',
33
33
  'rollup': argv.rollup || path.join(process.cwd(),'./node_modules/.bin/rollup'),
34
- 'role': argv.role || null
34
+ 'role': argv.role || null,
35
+ 'verbose': argv.verbose || false
35
36
  },
36
37
  configName = path.join(process.cwd(), opts.config),
37
38
  config = {};
@@ -171,7 +172,7 @@ async function loadTemplatesForFront(dir, role, commonDir = COMMON_TEMPLATES, te
171
172
  try{
172
173
  listDirs = await listDir(dir);
173
174
  }catch(e){
174
- console.log(e);
175
+ console.error(e);
175
176
  }
176
177
  //console.log('listDirs:', listDirs);
177
178
  try{
@@ -203,7 +204,7 @@ async function loadTemplatesForFront(dir, role, commonDir = COMMON_TEMPLATES, te
203
204
  }
204
205
  }
205
206
  }else{
206
- console.log('Directory is not exists: ',roleDir);
207
+ console.error('Directory is not exists: ',roleDir);
207
208
  }
208
209
  return result;
209
210
  }
@@ -258,9 +259,9 @@ async function loadNPMModule(){
258
259
  list.push(...commons);
259
260
  result[role].templates.push(...list);
260
261
  }
261
- console.log('result', result);
262
+ opts.verbose && console.log('result', result);
262
263
  }else{
263
- console.info('...no templates');
264
+ ops.verbose && console.info('...no templates');
264
265
  }
265
266
  if(mod.paths.styles){
266
267
  let commons;
@@ -275,15 +276,15 @@ async function loadNPMModule(){
275
276
  list.push(...commons);
276
277
  result[role].styles.push(...list);
277
278
  }
278
- console.log('result', result);
279
+ opts.verbose && console.log('result', result);
279
280
  }else{
280
- console.info('...no styles');
281
+ ops.verbose && console.info('...no styles');
281
282
  }
282
283
  }
283
284
  }catch(e){
284
285
  console.error(e);
285
286
  }
286
- console.log('npm module content ',result);
287
+ opts.verbose && console.log('npm module content ',result);
287
288
  return result;
288
289
  }
289
290
 
@@ -313,7 +314,7 @@ async function loadServerModule(){
313
314
  }
314
315
  }
315
316
  }else{
316
- console.info('...no controllers');
317
+ ops.verbose && console.info('...no controllers');
317
318
  }
318
319
  if(mod.paths.templates){
319
320
  let commons;
@@ -338,7 +339,7 @@ async function loadServerModule(){
338
339
 
339
340
  }
340
341
  }else{
341
- console.info('...no templates');
342
+ ops.verbose && console.info('...no templates');
342
343
  }
343
344
  if(mod.paths.styles){
344
345
  let commons;
@@ -363,7 +364,7 @@ async function loadServerModule(){
363
364
 
364
365
  }
365
366
  }else{
366
- console.info('...no styles');
367
+ ops.verbose && console.info('...no styles');
367
368
  }
368
369
  }
369
370
  }catch(e){
@@ -491,7 +492,7 @@ async function build_Server(pathToRoot, roles, targetName, targetManifest){
491
492
  }else{
492
493
  console.info('no modules in manifest');
493
494
  }
494
- console.log('List:', list);
495
+ opts.verbose && console.log('List:', list);
495
496
  ////forming index.js and rollup.js
496
497
  for(let i = 0; i < roles.length; i++){
497
498
  const role = roles[i];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-node",
3
- "version": "5.0.2",
3
+ "version": "5.0.5",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/form/form.js CHANGED
@@ -170,7 +170,7 @@ class Form {
170
170
  }
171
171
 
172
172
  #augmentValidationSchema(app){
173
- ValidationBuilder(this.#SCHEMA, this.getValidatorEnvGetter());
173
+ this.#SCHEMA = ValidationBuilder(this.#SCHEMA, this.getValidatorEnvGetter());
174
174
  }
175
175
 
176
176
 
@@ -1,81 +0,0 @@
1
- on:
2
- push:
3
- branches:
4
- - master
5
- pull_request_target:
6
- types: [opened, synchronize, reopened]
7
-
8
- name: CodeSee Map
9
-
10
- jobs:
11
- test_map_action:
12
- runs-on: ubuntu-latest
13
- continue-on-error: true
14
- name: Run CodeSee Map Analysis
15
- steps:
16
- - name: checkout
17
- id: checkout
18
- uses: actions/checkout@v2
19
- with:
20
- repository: ${{ github.event.pull_request.head.repo.full_name }}
21
- ref: ${{ github.event.pull_request.head.ref }}
22
- fetch-depth: 0
23
-
24
- # codesee-detect-languages has an output with id languages.
25
- - name: Detect Languages
26
- id: detect-languages
27
- uses: Codesee-io/codesee-detect-languages-action@latest
28
-
29
- - name: Configure JDK 16
30
- uses: actions/setup-java@v2
31
- if: ${{ fromJSON(steps.detect-languages.outputs.languages).java }}
32
- with:
33
- java-version: '16'
34
- distribution: 'zulu'
35
-
36
- # CodeSee Maps Go support uses a static binary so there's no setup step required.
37
-
38
- - name: Configure Node.js 14
39
- uses: actions/setup-node@v2
40
- if: ${{ fromJSON(steps.detect-languages.outputs.languages).javascript }}
41
- with:
42
- node-version: '14'
43
-
44
- - name: Configure Python 3.x
45
- uses: actions/setup-python@v2
46
- if: ${{ fromJSON(steps.detect-languages.outputs.languages).python }}
47
- with:
48
- python-version: '3.x'
49
- architecture: 'x64'
50
-
51
- - name: Configure Ruby '3.x'
52
- uses: ruby/setup-ruby@v1
53
- if: ${{ fromJSON(steps.detect-languages.outputs.languages).ruby }}
54
- with:
55
- ruby-version: '3.0'
56
-
57
- # CodeSee Maps Rust support uses a static binary so there's no setup step required.
58
-
59
- - name: Generate Map
60
- id: generate-map
61
- uses: Codesee-io/codesee-map-action@latest
62
- with:
63
- step: map
64
- github_ref: ${{ github.ref }}
65
- languages: ${{ steps.detect-languages.outputs.languages }}
66
-
67
- - name: Upload Map
68
- id: upload-map
69
- uses: Codesee-io/codesee-map-action@latest
70
- with:
71
- step: mapUpload
72
- api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
73
- github_ref: ${{ github.ref }}
74
-
75
- - name: Insights
76
- id: insights
77
- uses: Codesee-io/codesee-map-action@latest
78
- with:
79
- step: insights
80
- api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
81
- github_ref: ${{ github.ref }}