@wavemaker/angular-codegen 12.0.0-next.45104 → 12.0.0-next.45128
Sign up to get free protection for your applications and to get access to all the features.
- angular-codegen/angular-app/angular.json +13 -1
- angular-codegen/angular-app/build-scripts/update-version.js +24 -0
- angular-codegen/angular-app/package-lock.json +5808 -10278
- angular-codegen/angular-app/package.json +20 -13
- angular-codegen/angular-app/src/assets/styles/css/wm-style.css +1 -1
- angular-codegen/angular-app/src/setup-jest.js +1 -0
- angular-codegen/dependencies/pipe-provider.cjs.js +31 -25
- angular-codegen/dependencies/transpilation-mobile.cjs.js +57 -47
- angular-codegen/dependencies/transpilation-web.cjs.js +57 -47
- angular-codegen/package.json +1 -1
@@ -259,11 +259,23 @@
|
|
259
259
|
"options": {
|
260
260
|
"buildTarget": "angular-app:build"
|
261
261
|
}
|
262
|
+
},
|
263
|
+
"lint": {
|
264
|
+
"builder": "@angular-eslint/builder:lint",
|
265
|
+
"options": {
|
266
|
+
"lintFilePatterns": [
|
267
|
+
"src/**/*.ts",
|
268
|
+
"src/**/*.html"
|
269
|
+
]
|
270
|
+
}
|
262
271
|
}
|
263
272
|
}
|
264
273
|
}
|
265
274
|
},
|
266
275
|
"cli": {
|
267
|
-
"analytics": "fe5e8f46-2dff-4044-b3b8-8a1307278ce6"
|
276
|
+
"analytics": "fe5e8f46-2dff-4044-b3b8-8a1307278ce6",
|
277
|
+
"schematicCollections": [
|
278
|
+
"@angular-eslint/schematics"
|
279
|
+
]
|
268
280
|
}
|
269
281
|
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
'use strict';
|
2
|
+
const fs = require('fs');
|
3
|
+
const yargs = require('yargs');
|
4
|
+
const argv = yargs(process.argv).argv;
|
5
|
+
|
6
|
+
/**
|
7
|
+
* Updates the @wavemaker/app-ng-runtime dependency in the specified package.json file.
|
8
|
+
* @param {string} path - The path to the package.json file to update.
|
9
|
+
*/
|
10
|
+
|
11
|
+
const updateNgRuntimePackage = (path) => {
|
12
|
+
if (fs.existsSync(path)) {
|
13
|
+
const packageJSON = require('../' + path);
|
14
|
+
packageJSON['dependencies']['@wavemaker/app-ng-runtime'] = argv["publish-version"];
|
15
|
+
fs.writeFileSync(path, JSON.stringify(packageJSON, null, 4));
|
16
|
+
} else {
|
17
|
+
console.log('package.json not found at ' + path);
|
18
|
+
}
|
19
|
+
};
|
20
|
+
const init = () => {
|
21
|
+
updateNgRuntimePackage('../wavemaker-studio-runtime-integration/package.json');
|
22
|
+
};
|
23
|
+
|
24
|
+
init();
|