@wavemaker-ai/angular-codegen 1.0.0-rc.647684 → 12.0.0-rc.335
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/angular-app/build-scripts/ngx-bootstrap-patch.mjs +18 -3
- package/angular-app/dependency-report.html +1 -1
- package/angular-app/npm-shrinkwrap.json +10927 -11819
- package/angular-app/package-lock.json +10927 -11819
- package/angular-app/package.json +42 -33
- package/angular-app/src/assets/styles/css/wm-style.css +1 -1
- package/angular-app/src/setup-jest.js +4 -0
- package/angular-app/tsconfig.json +4 -2
- package/angular-app/tsconfig.web-app.json +20 -5
- package/build-angular-app.js +2 -2
- package/dependencies/custom-widgets-bundle.cjs.js +12 -27
- package/dependencies/expression-parser.cjs.js +23347 -28708
- package/dependencies/pipe-provider.cjs.js +103626 -153324
- package/dependencies/transpilation-web.cjs.js +47315 -70456
- package/npm-shrinkwrap.json +140 -134
- package/package-lock.json +140 -134
- package/package.json +2 -2
- package/src/gen-app-skeleton.js +1 -1
- package/src/wm-utils.js +1 -1
- package/templates/app.config.ts.hbs +8 -4
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
// This file is automatically loaded when running `jest` commands
|
|
3
|
+
import { patchNgxBootstrapFiles } from '../build-scripts/ngx-bootstrap-patch.mjs';
|
|
4
|
+
|
|
5
|
+
patchNgxBootstrapFiles();
|
|
6
|
+
|
|
3
7
|
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
|
|
4
8
|
import { ToastrModule } from 'ngx-toastr';
|
|
5
9
|
import { TestBed } from '@angular/core/testing';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"declaration": false,
|
|
9
9
|
"target": "es2022",
|
|
10
10
|
"module": "es2022",
|
|
11
|
-
"moduleResolution": "
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
12
|
"esModuleInterop": true,
|
|
13
13
|
"emitDecoratorMetadata": true,
|
|
14
14
|
"experimentalDecorators": true,
|
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
"node_modules/@wavemaker-ai/app-ng-runtime/core"
|
|
37
37
|
],
|
|
38
38
|
"@wavemaker-ai/variables": [
|
|
39
|
-
"
|
|
39
|
+
".yalc/@wavemaker-ai/variables/dist/es2015/index",
|
|
40
|
+
"node_modules/@wavemaker-ai/variables/dist/es2015/index",
|
|
41
|
+
".yalc/@wavemaker-ai/variables/index"
|
|
40
42
|
],
|
|
41
43
|
"@wavemaker-ai/custom-widgets-m3": [
|
|
42
44
|
"node_modules/@wavemaker-ai/custom-widgets-m3/"
|
|
@@ -7,15 +7,16 @@
|
|
|
7
7
|
"sourceMap": true,
|
|
8
8
|
"declaration": false,
|
|
9
9
|
"target": "es2022",
|
|
10
|
-
"module": "
|
|
11
|
-
"moduleResolution": "
|
|
10
|
+
"module": "es2022",
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"esModuleInterop": true,
|
|
12
13
|
"emitDecoratorMetadata": true,
|
|
13
14
|
"experimentalDecorators": true,
|
|
14
15
|
"typeRoots": [
|
|
15
16
|
"node_modules/@types"
|
|
16
17
|
],
|
|
17
18
|
"lib": [
|
|
18
|
-
"
|
|
19
|
+
"es2022",
|
|
19
20
|
"dom"
|
|
20
21
|
],
|
|
21
22
|
"paths": {
|
|
@@ -34,6 +35,17 @@
|
|
|
34
35
|
"@wm/core": [
|
|
35
36
|
"node_modules/@wavemaker-ai/app-ng-runtime/core"
|
|
36
37
|
],
|
|
38
|
+
"@wavemaker-ai/variables": [
|
|
39
|
+
".yalc/@wavemaker-ai/variables/dist/es2015/index",
|
|
40
|
+
"node_modules/@wavemaker-ai/variables/dist/es2015/index",
|
|
41
|
+
".yalc/@wavemaker-ai/variables/index"
|
|
42
|
+
],
|
|
43
|
+
"@wavemaker-ai/custom-widgets-m3": [
|
|
44
|
+
"node_modules/@wavemaker-ai/custom-widgets-m3/"
|
|
45
|
+
],
|
|
46
|
+
"@wm/components/base": [
|
|
47
|
+
"node_modules/@wavemaker-ai/app-ng-runtime/components/base"
|
|
48
|
+
],
|
|
37
49
|
"@wm/components/basic/*": [
|
|
38
50
|
"node_modules/@wavemaker-ai/app-ng-runtime/components/basic/*"
|
|
39
51
|
],
|
|
@@ -73,9 +85,12 @@
|
|
|
73
85
|
"@wm/runtime/dynamic": [
|
|
74
86
|
"node_modules/@wavemaker-ai/app-ng-runtime/runtime/dynamic"
|
|
75
87
|
]
|
|
76
|
-
}
|
|
88
|
+
},
|
|
89
|
+
"useDefineForClassFields": false
|
|
77
90
|
},
|
|
78
91
|
"angularCompilerOptions": {
|
|
79
|
-
"compilationMode": "full"
|
|
92
|
+
"compilationMode": "full",
|
|
93
|
+
"strictMetadataEmit": false,
|
|
94
|
+
"strictTemplates": false
|
|
80
95
|
}
|
|
81
96
|
}
|
package/build-angular-app.js
CHANGED
|
@@ -82,9 +82,9 @@ const processAngularAppPackage = async (sourcePath, targetPath, packageName, isO
|
|
|
82
82
|
// Install dependencies
|
|
83
83
|
const installPath = isOptimized ? sourcePath : targetPath;
|
|
84
84
|
try {
|
|
85
|
-
if (
|
|
85
|
+
if (!isOptimized && fs.existsSync(path.join(global.buildConfigObj.appSrc, "build-src/package-override.json")) && fs.existsSync(path.join(installPath, 'package.json'))) {
|
|
86
86
|
let packageJson = JSON.parse(fs.readFileSync(path.join(installPath, 'package.json'), 'utf8'));
|
|
87
|
-
packageJson = await mergePackageJsonWithOverrideJson(global.buildConfigObj.appSrc, packageJson);
|
|
87
|
+
packageJson = await mergePackageJsonWithOverrideJson(global.buildConfigObj.appSrc, packageJson, global.buildConfigObj.runInspection);
|
|
88
88
|
fs.writeFileSync(path.join(installPath, 'package.json'), JSON.stringify(packageJson, null, 4));
|
|
89
89
|
console.log("Successfully updated generated-app package.json with package-override.json");
|
|
90
90
|
}
|