@ws-test-realm/admin-kit 0.1.7

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.
Files changed (46) hide show
  1. package/README.md +89 -0
  2. package/bin/ws-drop-module.js +40 -0
  3. package/bin/ws-generate-module.js +37 -0
  4. package/bin/ws-init-workspace.js +190 -0
  5. package/bin/ws-modules.js +179 -0
  6. package/bin/ws-pack-remote.js +196 -0
  7. package/bin/ws-sync-paths.js +35 -0
  8. package/bin/ws-wire-host.js +67 -0
  9. package/bin/ws-wire-pom.js +132 -0
  10. package/lib/alias-discovery.js +40 -0
  11. package/lib/build-modules.js +84 -0
  12. package/lib/cli-args.js +55 -0
  13. package/lib/deploy-remotes.js +249 -0
  14. package/lib/drop-module.js +71 -0
  15. package/lib/emit-descriptor.js +31 -0
  16. package/lib/generate-module.js +105 -0
  17. package/lib/identity.js +49 -0
  18. package/lib/jar-glob.js +55 -0
  19. package/lib/pack-into-jar.js +74 -0
  20. package/lib/pom.js +84 -0
  21. package/lib/shared-deps.js +90 -0
  22. package/lib/synthetic-entry.js +27 -0
  23. package/lib/template-copy.js +136 -0
  24. package/lib/topo-sort.js +134 -0
  25. package/lib/webpack-factory.js +104 -0
  26. package/lib/wire-host.js +96 -0
  27. package/package.json +33 -0
  28. package/template/angular.json +14 -0
  29. package/template/package.json +26 -0
  30. package/template/tsconfig.json +7 -0
  31. package/template/wsconfig.json.example +4 -0
  32. package/template-module/assets/i18n/de.json +1 -0
  33. package/template-module/assets/i18n/en.json +1 -0
  34. package/template-module/assets/i18n/fr.json +1 -0
  35. package/template-module/assets/i18n/general/de.json +1 -0
  36. package/template-module/assets/i18n/general/en.json +1 -0
  37. package/template-module/assets/i18n/general/fr.json +1 -0
  38. package/template-module/ng-package.json +8 -0
  39. package/template-module/package.json +14 -0
  40. package/template-module/src/lib/__name__.module.ts +11 -0
  41. package/template-module/src/lib/components/__name__/__name__.component.html +1 -0
  42. package/template-module/src/lib/components/__name__/__name__.component.scss +0 -0
  43. package/template-module/src/lib/components/__name__/__name__.component.ts +8 -0
  44. package/template-module/src/public-api.ts +6 -0
  45. package/template-module/tsconfig.lib.json +13 -0
  46. package/template-module/tsconfig.lib.prod.json +9 -0
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@ws-test-realm/admin-kit",
3
+ "version": "0.1.7",
4
+ "description": "Workflow CLI + scaffolding for Wiresphere admin-modules workspaces. Ships `ws-init-workspace` (init/merge into a project, stamps @wiresphere/shared's `getOverrides()` into the workspace's npm overrides block), `ws-modules` (build/pack/deploy driver), `ws-generate-module`/`ws-drop-module`, `ws-wire-host`, `ws-wire-pom`, `ws-sync-paths`, and `ws-pack-remote`. Depends on @wiresphere/devkit (toolchain BOM, peerDeps); pairs with @wiresphere/shared (runtime BOM + MF share map + overrides manifest). Requires npm 9+ for overrides + peerDep resolution to coexist cleanly.",
5
+ "license": "Artistic-2.0",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "bin": {
10
+ "ws-pack-remote": "./bin/ws-pack-remote.js",
11
+ "ws-init-workspace": "./bin/ws-init-workspace.js",
12
+ "ws-wire-host": "./bin/ws-wire-host.js",
13
+ "ws-wire-pom": "./bin/ws-wire-pom.js",
14
+ "ws-generate-module": "./bin/ws-generate-module.js",
15
+ "ws-drop-module": "./bin/ws-drop-module.js",
16
+ "ws-modules": "./bin/ws-modules.js",
17
+ "ws-sync-paths": "./bin/ws-sync-paths.js"
18
+ },
19
+ "main": "lib/index.js",
20
+ "files": [
21
+ "bin",
22
+ "lib",
23
+ "template",
24
+ "template-module",
25
+ "README.md"
26
+ ],
27
+ "dependencies": {
28
+ "@ws-test-realm/devkit": "^0.3.0",
29
+ "@ws-test-realm/shared": "^0.3.0",
30
+ "adm-zip": "^0.5.10",
31
+ "fast-xml-parser": "^4.3.0"
32
+ }
33
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "schematics": {
4
+ "@schematics/angular:component": {
5
+ "style": "scss"
6
+ }
7
+ },
8
+ "cli": {
9
+ "analytics": false
10
+ },
11
+ "version": 1,
12
+ "newProjectRoot": "projects",
13
+ "projects": {}
14
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "private": true,
3
+ "workspaces": [
4
+ "projects/*"
5
+ ],
6
+ "scripts": {
7
+ "ng": "ng",
8
+ "postinstall": "ws-sync-paths",
9
+ "sync-paths": "ws-sync-paths",
10
+ "generate-module": "ws-generate-module",
11
+ "drop-module": "ws-drop-module",
12
+ "build": "ws-modules --build",
13
+ "pack": "ws-modules --pack",
14
+ "deploy": "ws-modules --deploy",
15
+ "wire": "ws-modules --build --pack --deploy"
16
+ },
17
+ "prettier": "@ws-test-realm/devkit/prettier.config.js",
18
+ "husky": {
19
+ "hooks": {
20
+ "pre-commit": "ws-pre-commit"
21
+ }
22
+ },
23
+ "dependencies": {
24
+ "@ws-test-realm/shared": "^0.3.0"
25
+ }
26
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.federation.json",
3
+ "compilerOptions": {
4
+ "baseUrl": "./",
5
+ "outDir": "./dist/out-tsc"
6
+ }
7
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "wpmRoot": "/absolute/path/to/wpm-project",
3
+ "hostId": "admin"
4
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/__name__",
4
+ "assets": ["./assets"],
5
+ "lib": {
6
+ "entryFile": "src/public-api.ts"
7
+ }
8
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "__name__",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "12.2.0",
6
+ "@angular/core": "12.2.0",
7
+ "@angular/forms": "12.2.0",
8
+ "@angular/router": "12.2.0",
9
+ "rxjs": "6.5.3"
10
+ },
11
+ "dependencies": {
12
+ "tslib": "^2.3.0"
13
+ }
14
+ }
@@ -0,0 +1,11 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+
4
+ import { __className__Component } from './components/__name__/__name__.component';
5
+
6
+ @NgModule({
7
+ declarations: [__className__Component],
8
+ imports: [CommonModule],
9
+ exports: [__className__Component],
10
+ })
11
+ export class __className__Module {}
@@ -0,0 +1 @@
1
+ <p>__name__ works!</p>
@@ -0,0 +1,8 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: '__selector__',
5
+ templateUrl: './__name__.component.html',
6
+ styleUrls: ['./__name__.component.scss'],
7
+ })
8
+ export class __className__Component {}
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Public API Surface of __name__
3
+ */
4
+
5
+ export * from './lib/__name__.module';
6
+ export * from './lib/components/__name__/__name__.component';
@@ -0,0 +1,13 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../out-tsc/lib",
5
+ "target": "es2015",
6
+ "declaration": true,
7
+ "declarationMap": true,
8
+ "inlineSources": true,
9
+ "types": [],
10
+ "lib": ["dom", "es2018"]
11
+ },
12
+ "exclude": ["**/*.spec.ts"]
13
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.lib.json",
3
+ "compilerOptions": {
4
+ "declarationMap": false
5
+ },
6
+ "angularCompilerOptions": {
7
+ "compilationMode": "partial"
8
+ }
9
+ }