@eui/cli 21.0.0-alpha.27 → 21.0.0-alpha.29

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/lib/build.js CHANGED
@@ -119,6 +119,11 @@ const copyAngular = (targetPath, cliConfig, overwrite = true) => {
119
119
  }
120
120
  return Promise.resolve();
121
121
  })
122
+ .then(() => {
123
+ if (cliConfig.packageManager === 'pnpm') {
124
+ utils.copy(path.join(config.pnpmOptionPath, 'package.json'), path.join(targetPath, 'package.json'));
125
+ }
126
+ })
122
127
  .catch((e) => {
123
128
  throw e;
124
129
  })
package/lib/cli.js CHANGED
@@ -9,7 +9,7 @@ const defaultConfig = {
9
9
  appFeatures: [],
10
10
  groupId: 'ec.europa.digit',
11
11
  artifactId: 'myapp',
12
- useYarn: true,
12
+ packageManager: 'yarn',
13
13
  npmInstall: true,
14
14
  appStart: true,
15
15
  };
@@ -101,9 +101,28 @@ module.exports.start = (options) => {
101
101
  {
102
102
  name: 'npmInstall',
103
103
  type: 'confirm',
104
- message: 'Yarn install dependencies when the app is generated :',
104
+ message: 'Install dependencies when the app is generated :',
105
105
  default: defaultConfig.npmInstall
106
- }
106
+ },
107
+
108
+ {
109
+ type: 'list',
110
+ name: 'packageManager',
111
+ message: 'Package manager for installation :',
112
+ choices: [
113
+ { name: 'Yarn 1.x (default)', value: 'yarn' },
114
+ { name: 'Pnpm - experimental', value: 'pnpm' },
115
+ ],
116
+ default: 0,
117
+ when: function (answers) {
118
+ return (answers.npmInstall);
119
+ },
120
+ validate: function (value) {
121
+ if (value.length) {
122
+ return true;
123
+ }
124
+ }
125
+ },
107
126
  ])
108
127
  .then((answers) => {
109
128
  let outputConfig;
@@ -117,6 +136,5 @@ module.exports.start = (options) => {
117
136
  .catch((e) => {
118
137
  throw e;
119
138
  })
120
-
121
139
  }
122
140
 
package/lib/config.js CHANGED
@@ -19,6 +19,7 @@ module.exports.optionsPath = {
19
19
  "ecl-ec": path.join(skeletonsPath, '_angular/options/ecl-ec'),
20
20
  "ecl-eu": path.join(skeletonsPath, '_angular/options/ecl-eu'),
21
21
  };
22
+ module.exports.pnpmOptionPath = path.join(skeletonsPath, '_angular/options/pnpm');
22
23
 
23
24
  module.exports.version = version;
24
25
 
package/lib/install.js CHANGED
@@ -30,7 +30,12 @@ const install = (cliConfig, targetPath) => {
30
30
 
31
31
  return Promise.resolve()
32
32
  .then(() => {
33
- return execSync("yarn", { cwd: wd, stdio: "inherit" });
33
+ if (cliConfig.packageManager === 'pnpm') {
34
+ return execSync("pnpm install", { cwd: wd, stdio: "inherit" });
35
+
36
+ } else {
37
+ return execSync("yarn", { cwd: wd, stdio: "inherit" });
38
+ }
34
39
  })
35
40
 
36
41
  .catch((e) => {
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "architect": {
23
23
  "build": {
24
- "builder": "@angular-devkit/build-angular:application",
24
+ "builder": "@angular/build:application",
25
25
  "options": {
26
26
  "outputPath": "dist",
27
27
  "index": "src/index.html",
@@ -105,7 +105,7 @@
105
105
  "defaultConfiguration": "production"
106
106
  },
107
107
  "serve": {
108
- "builder": "@angular-devkit/build-angular:dev-server",
108
+ "builder": "@angular/build:dev-server",
109
109
  "options": {
110
110
  "buildTarget": "app:build"
111
111
  },
@@ -122,29 +122,6 @@
122
122
  }
123
123
  },
124
124
  "defaultConfiguration": "development"
125
- },
126
- "lint": {
127
- "builder": "@angular-eslint/builder:lint",
128
- "options": {
129
- "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"],
130
- "eslintConfig": "src/.eslintrc.json"
131
- }
132
- },
133
- "test": {
134
- "builder": "@angular-devkit/build-angular:karma",
135
- "options": {
136
- "polyfills": ["zone.js", "zone.js/testing"],
137
- "tsConfig": "src/tsconfig.spec.json",
138
- "karmaConfig": "src/karma.conf.js",
139
- "inlineStyleLanguage": "scss",
140
- "assets": [
141
- {
142
- "glob": "**/*",
143
- "input": "node_modules/@eui/core/assets/",
144
- "output": "./assets"
145
- }
146
- ]
147
- }
148
125
  }
149
126
  }
150
127
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eui-angular-app",
3
- "version": "21.0.0-alpha.27",
3
+ "version": "21.0.0-alpha.29",
4
4
  "license": "EUPL-1.1",
5
5
  "scripts": {
6
6
  "ng": "ng",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "private": true,
23
23
  "dependencies": {
24
- "@eui/deps-base": "21.0.0-alpha.27"
24
+ "@eui/deps-base": "21.0.0-alpha.29"
25
25
  },
26
26
  "devDependencies": {
27
27
  "npm-run-all": "4.1.5",
@@ -31,5 +31,9 @@
31
31
  "body-parser": "1.20.3",
32
32
  "express": "4.21.2"
33
33
  },
34
- "resolutions": {}
34
+ "resolutions": {
35
+ "semver": ">=7.5.2",
36
+ "dompurify": ">=3.2.4",
37
+ "tmp": ">0.2.4"
38
+ }
35
39
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eui-angular-app",
3
- "version": "21.0.0-alpha.27",
3
+ "version": "21.0.0-alpha.29",
4
4
  "license": "EUPL-1.1",
5
5
  "scripts": {
6
6
  "ng": "ng",
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "eui-angular-app",
3
+ "version": "21.0.0-alpha.29",
4
+ "license": "EUPL-1.1",
5
+ "scripts": {
6
+ "ng": "ng",
7
+ "start-mock-server": "nodemon --watch ./mock ./mock/server.js",
8
+ "start-serve": "eui-cli serve-app --configuration=proxy-mock",
9
+ "start": "npm-run-all --parallel start-mock-server start-serve",
10
+ "start-proxy": "eui-cli serve-app --configuration=proxy",
11
+ "start-local": "eui-cli serve-app",
12
+ "build": "eui-cli build-app",
13
+ "build-dev": "eui-cli build-app --configuration=development --configEnvTarget=dev",
14
+ "build-prod": "eui-cli build-app --configuration=production-optimized --configEnvTarget=prod --skipLint --skipTest",
15
+ "app:inject-config": "eui-cli inject-config-app",
16
+ "generate-changelog": "eui-cli generate-changelog",
17
+ "generate-sprite": "eui-cli generate-sprite"
18
+ },
19
+ "private": true,
20
+ "dependencies": {
21
+ "@angular/animations": "21.0.0-next.5",
22
+ "@angular/common": "21.0.0-next.5",
23
+ "@angular/compiler": "21.0.0-next.5",
24
+ "@angular/core": "21.0.0-next.5",
25
+ "@angular/forms": "21.0.0-next.5",
26
+ "@angular/platform-browser": "21.0.0-next.5",
27
+ "@angular/platform-browser-dynamic": "21.0.0-next.5",
28
+ "@angular/router": "21.0.0-next.5",
29
+ "@angular/elements": "21.0.0-next.5",
30
+ "@angular/language-service": "21.0.0-next.5",
31
+ "@angular/service-worker": "21.0.0-next.5",
32
+ "@angular/cdk": "21.0.0-next.5",
33
+ "@angular/material": "21.0.0-next.5",
34
+ "@angular/material-moment-adapter": "21.0.0-next.5",
35
+ "rxjs": "7.8.2",
36
+ "tslib": "2.8.1",
37
+ "zone.js": "0.15.1",
38
+ "@types/lodash": "4.17.20",
39
+ "intl": "1.2.5",
40
+ "deepmerge-ts": "7.1.5",
41
+ "@ngx-translate/core": "15.0.0",
42
+ "@ngx-translate/http-loader": "8.0.0",
43
+ "reselect": "5.1.1",
44
+ "ngx-mask": "20.0.3",
45
+ "cleave.js": "1.6.0",
46
+ "hammerjs": "2.0.8",
47
+ "pikaday": "1.8.2",
48
+ "lodash-es": "4.17.21",
49
+ "localforage": "1.10.0",
50
+ "@eui/base": "21.0.0-alpha.29",
51
+ "@eui/core": "21.0.0-alpha.29",
52
+ "@eui/styles": "21.0.0-alpha.29",
53
+ "@eui/components": "21.0.0-alpha.29",
54
+ "@eui/ecl": "21.0.0-alpha.29",
55
+ "@eui/showcase": "21.0.0-alpha.29"
56
+ },
57
+ "devDependencies": {
58
+ "@angular/build": "21.0.0-next.5",
59
+ "@angular/compiler-cli": "21.0.0-next.5",
60
+ "@angular/cli": "21.0.0-next.5",
61
+ "@eui/cli": "21.0.0-alpha.29",
62
+ "ng-packagr": "21.0.0-next.3",
63
+ "typescript": "5.9.2",
64
+ "npm-run-all": "4.1.5",
65
+ "json-server": "1.0.0-beta.3",
66
+ "nodemon": "3.1.10",
67
+ "lowdb": "1.0.0",
68
+ "body-parser": "2.2.0",
69
+ "express": "5.1.0",
70
+ "uuid": "13.0.0"
71
+ }
72
+ }
package/lib/utils.js CHANGED
@@ -173,6 +173,10 @@ module.exports.remove = (path) => {
173
173
  fse.removeSync(path);
174
174
  }
175
175
 
176
+ module.exports.copy = (origin, dest) => {
177
+ fse.copySync(origin, dest);
178
+ }
179
+
176
180
  const log = (msg, type) => {
177
181
  var msgContent;
178
182
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/cli",
3
- "version": "21.0.0-alpha.27",
3
+ "version": "21.0.0-alpha.29",
4
4
  "tag": "next",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI CLI app generator & tools",