@vendure/ui-devkit 3.2.0 → 3.2.2

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/LICENSE.md CHANGED
@@ -1,42 +1,42 @@
1
- # License
2
- Copyright (C) Vendure GmbH
3
-
4
- This software is available under two different licenses:
5
- * GNU General Public License version 3 (GPLv3) as Vendure Community Edition
6
- * Vendure Commercial License (VCL)
7
-
8
- The default Vendure license, without a valid Vendure Commercial License agreement, is the Open-Source GPLv3 license.
9
-
10
- ## GNU General Public License version 3 (GPLv3)
11
-
12
- If you decide to choose the GPLv3 license, you must comply with the following terms:
13
-
14
- This program is free software: you can redistribute it and/or modify
15
- it under the terms of the GNU General Public License as published by
16
- the Free Software Foundation, either version 3 of the License, or
17
- (at your option) any later version.
18
-
19
- This program is distributed in the hope that it will be useful,
20
- but WITHOUT ANY WARRANTY; without even the implied warranty of
21
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
- GNU General Public License for more details.
23
-
24
- You should have received a copy of the GNU General Public License
25
- along with this program. If not, see <http://www.gnu.org/licenses/>.
26
-
27
- Additional permission under GNU GPL version 3 section 7:
28
-
29
- An additional exception under section 7 of the GPL is included in the plugin-exception.txt file,
30
- which allows you to distribute Vendure plugins (i.e. extensions) under a different license.
31
-
32
- ## Vendure Commercial License (VCL)
33
-
34
- Alternatively, commercial and supported versions of the program - also known as
35
- Commercial Distributions - must be used in accordance with the terms and conditions
36
- contained in a separate written agreement between you and Vendure GmbH.
37
- For more information about the Vendure Commercial License (VCL) please contact contact@vendure.io.
38
-
39
- Please see also:
40
-
41
- - [Licensing FAQ - license-faq.md](license/license-faq.md)
42
- - [GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 - gpl-3.0.txt](license/gpl-3.0.txt)
1
+ # License
2
+ Copyright (C) Vendure GmbH
3
+
4
+ This software is available under two different licenses:
5
+ * GNU General Public License version 3 (GPLv3) as Vendure Community Edition
6
+ * Vendure Commercial License (VCL)
7
+
8
+ The default Vendure license, without a valid Vendure Commercial License agreement, is the Open-Source GPLv3 license.
9
+
10
+ ## GNU General Public License version 3 (GPLv3)
11
+
12
+ If you decide to choose the GPLv3 license, you must comply with the following terms:
13
+
14
+ This program is free software: you can redistribute it and/or modify
15
+ it under the terms of the GNU General Public License as published by
16
+ the Free Software Foundation, either version 3 of the License, or
17
+ (at your option) any later version.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
26
+
27
+ Additional permission under GNU GPL version 3 section 7:
28
+
29
+ An additional exception under section 7 of the GPL is included in the plugin-exception.txt file,
30
+ which allows you to distribute Vendure plugins (i.e. extensions) under a different license.
31
+
32
+ ## Vendure Commercial License (VCL)
33
+
34
+ Alternatively, commercial and supported versions of the program - also known as
35
+ Commercial Distributions - must be used in accordance with the terms and conditions
36
+ contained in a separate written agreement between you and Vendure GmbH.
37
+ For more information about the Vendure Commercial License (VCL) please contact contact@vendure.io.
38
+
39
+ Please see also:
40
+
41
+ - [Licensing FAQ - license-faq.md](license/license-faq.md)
42
+ - [GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 - gpl-3.0.txt](license/gpl-3.0.txt)
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # @vendure/ui-devkit
2
-
3
- This package contains utilities for creating extensions to the Vendure Admin UI.
4
-
5
-
1
+ # @vendure/ui-devkit
2
+
3
+ This package contains utilities for creating extensions to the Vendure Admin UI.
4
+
5
+
@@ -156,17 +156,17 @@ function generateLazyExtensionRoutes(extensions) {
156
156
  for (const extension of extensions) {
157
157
  for (const module of extension.ngModules ?? []) {
158
158
  if (module.type === 'lazy') {
159
- routes.push(` {
160
- path: 'extensions/${module.route}',
161
- loadChildren: () => import('${getModuleFilePath(extension.id, module)}').then(m => m.${module.ngModuleName}),
159
+ routes.push(` {
160
+ path: 'extensions/${module.route}',
161
+ loadChildren: () => import('${getModuleFilePath(extension.id, module)}').then(m => m.${module.ngModuleName}),
162
162
  }`);
163
163
  }
164
164
  }
165
165
  for (const route of extension.routes ?? []) {
166
166
  const prefix = route.prefix === '' ? '' : `${route.prefix ?? 'extensions'}/`;
167
- routes.push(` {
168
- path: '${prefix}${route.route}',
169
- loadChildren: () => import('./extensions/${extension.id}/${path.basename(route.filePath, '.ts')}'),
167
+ routes.push(` {
168
+ path: '${prefix}${route.route}',
169
+ loadChildren: () => import('./extensions/${extension.id}/${path.basename(route.filePath, '.ts')}'),
170
170
  }`);
171
171
  }
172
172
  }
@@ -199,16 +199,16 @@ function generateSharedExtensionModule(extensions) {
199
199
  .map((m, i) => (m.providers ?? []).map((f, j) => `...SharedProviders_${i}_${j}`).join(', '))
200
200
  .filter(val => !!val)
201
201
  .join(', ');
202
- return `import { NgModule } from '@angular/core';
203
- import { CommonModule } from '@angular/common';
204
- ${moduleImports}
205
- ${providerImports}
206
-
207
- @NgModule({
208
- imports: [CommonModule, ${modules}],
209
- providers: [${providers}],
210
- })
211
- export class SharedExtensionsModule {}
202
+ return `import { NgModule } from '@angular/core';
203
+ import { CommonModule } from '@angular/common';
204
+ ${moduleImports}
205
+ ${providerImports}
206
+
207
+ @NgModule({
208
+ imports: [CommonModule, ${modules}],
209
+ providers: [${providers}],
210
+ })
211
+ export class SharedExtensionsModule {}
212
212
  `;
213
213
  }
214
214
  function getModuleFilePath(id, module) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendure/ui-devkit",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "A library for authoring Vendure Admin UI extensions",
5
5
  "keywords": [
6
6
  "vendure",
@@ -8,7 +8,7 @@
8
8
  "extensions"
9
9
  ],
10
10
  "author": "Michael Bromley <michael@michaelbromley.co.uk>",
11
- "homepage": "https://www.vendure.io/",
11
+ "homepage": "https://www.vendure.io",
12
12
  "license": "GPL-3.0-or-later",
13
13
  "files": [
14
14
  "client",
@@ -23,7 +23,7 @@
23
23
  "types": "client/index.d.ts",
24
24
  "repository": {
25
25
  "type": "git",
26
- "url": "git+https://github.com/vendure-ecommerce/vendure.git"
26
+ "url": "https://github.com/vendure-ecommerce/vendure"
27
27
  },
28
28
  "scripts": {
29
29
  "build:client": "rimraf ./client && rollup -c rollup.config.mjs --configProduction",
@@ -40,8 +40,8 @@
40
40
  "@angular/cli": "^19.2.5",
41
41
  "@angular/compiler": "^19.2.4",
42
42
  "@angular/compiler-cli": "^19.2.4",
43
- "@vendure/admin-ui": "^3.2.0",
44
- "@vendure/common": "^3.2.0",
43
+ "@vendure/admin-ui": "3.2.2",
44
+ "@vendure/common": "3.2.2",
45
45
  "chalk": "^4.1.0",
46
46
  "chokidar": "^3.6.0",
47
47
  "fs-extra": "^11.2.0",
@@ -52,7 +52,7 @@
52
52
  "@rollup/plugin-node-resolve": "^15.2.3",
53
53
  "@rollup/plugin-terser": "^0.4.4",
54
54
  "@types/fs-extra": "^11.0.4",
55
- "@vendure/core": "^3.2.0",
55
+ "@vendure/core": "3.2.2",
56
56
  "react": "^19.0.0",
57
57
  "react-dom": "^19.0.0",
58
58
  "rimraf": "^5.0.5",
@@ -61,5 +61,5 @@
61
61
  "tslib": "^2.6.2",
62
62
  "typescript": "5.8.2"
63
63
  },
64
- "gitHead": "58c173ac0c7854ff53809d69f34a496f3eff1910"
64
+ "gitHead": "8729e7f8f028be556543c8e971e750228e516919"
65
65
  }
@@ -1,7 +1,7 @@
1
- # Generated Admin UI
2
-
3
- This directory and its entire contents was generated the `compileUiExtensions()` function of the `@vendure/ui-devkit/compiler` package. It is not recommended to modify these files, since any changes will be overwritten upon re-compiling the ui extensions.
4
-
5
- ## Production app
6
-
7
- When compiling in production mode (`devMode: false`), the compiled application will be output to the `./dist` directory. This is a production-ready Angular application which can then be served from any web server, with attention to the [Angular server configuration guide](https://angular.io/guide/deployment#server-configuration).
1
+ # Generated Admin UI
2
+
3
+ This directory and its entire contents was generated the `compileUiExtensions()` function of the `@vendure/ui-devkit/compiler` package. It is not recommended to modify these files, since any changes will be overwritten upon re-compiling the ui extensions.
4
+
5
+ ## Production app
6
+
7
+ When compiling in production mode (`devMode: false`), the compiled application will be output to the `./dist` directory. This is a production-ready Angular application which can then be served from any web server, with attention to the [Angular server configuration guide](https://angular.io/guide/deployment#server-configuration).
@@ -1,128 +1,131 @@
1
- {
2
- "$schema": "../node_modules/@angular/cli/lib/config/schema.json",
3
- "version": 1,
4
- "newProjectRoot": "projects",
5
- "projects": {
6
- "vendure-admin": {
7
- "root": "",
8
- "sourceRoot": "src",
9
- "projectType": "application",
10
- "prefix": "vdr",
11
- "schematics": {
12
- "@schematics/angular:component": {
13
- "style": "scss"
14
- }
15
- },
16
- "architect": {
17
- "build": {
18
- "builder": "@angular-devkit/build-angular:browser",
19
- "options": {
20
- "baseHref": "/",
21
- "outputPath": "dist",
22
- "index": "src/index.html",
23
- "main": "src/main.ts",
24
- "polyfills": "src/polyfills.ts",
25
- "tsConfig": "src/tsconfig.app.json",
26
- "assets": [
27
- {
28
- "glob": "**/*.*",
29
- "input": "static-assets",
30
- "output": "assets"
31
- },
32
- "src/favicon.ico",
33
- {
34
- "glob": "favicon.ico",
35
- "input": "static-assets",
36
- "output": "/"
37
- },
38
- "src/vendure-ui-config.json",
39
- "src/theme.min.css",
40
- "src/assets",
41
- "src/i18n-messages",
42
- {
43
- "glob": "logo-*.*",
44
- "input": "static-assets",
45
- "output": "assets"
46
- }
47
- ],
48
- "styles": [
49
- "src/global-styles.scss"
50
- ],
51
- "stylePreprocessorOptions": {
52
- "includePaths": [
53
- "./src/styles",
54
- "./src/fonts"
55
- ]
56
- },
57
- "allowedCommonJsDependencies": [
58
- "graphql-tag",
59
- "zen-observable",
60
- "lodash",
61
- "dayjs",
62
- "apollo-upload-client",
63
- "@clr/icons",
64
- "@clr/icons/shapes/all-shapes",
65
- "@vendure/common/lib/generated-types",
66
- "@vendure/common/lib/simple-deep-clone",
67
- "@vendure/common/lib/shared-constants",
68
- "@vendure/common/lib/shared-utils",
69
- "@vendure/common/lib/normalize-string",
70
- "@vendure/common/lib/unique",
71
- "@vendure/common/lib/omit",
72
- "@vendure/common/lib/pick",
73
- "@messageformat/core"
74
- ],
75
- "vendorChunk": true,
76
- "extractLicenses": false,
77
- "buildOptimizer": false,
78
- "sourceMap": true,
79
- "optimization": false,
80
- "namedChunks": true
81
- },
82
- "configurations": {
83
- "production": {
84
- "budgets": [
85
- {
86
- "type": "anyComponentStyle",
87
- "maximumWarning": "6kb"
88
- }
89
- ],
90
- "fileReplacements": [
91
- {
92
- "replace": "src/environment.ts",
93
- "with": "src/environment.prod.ts"
94
- }
95
- ],
96
- "optimization": {
97
- "styles": {
98
- "inlineCritical": false
99
- }
100
- },
101
- "outputHashing": "all",
102
- "namedChunks": false,
103
- "extractLicenses": true,
104
- "vendorChunk": false
105
- }
106
- },
107
- "defaultConfiguration": ""
108
- },
109
- "serve": {
110
- "builder": "@angular-devkit/build-angular:dev-server",
111
- "options": {
112
- "browserTarget": "vendure-admin:build"
113
- }
114
- }
115
- }
116
- }
117
- },
118
- "schematics": {
119
- "@schematics/angular:component": {
120
- "skipTests": true,
121
- "changeDetection": "OnPush"
122
- }
123
- },
124
- "cli": {
125
- "packageManager": "yarn",
126
- "analytics": false
127
- }
128
- }
1
+ {
2
+ "$schema": "../node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "projects",
5
+ "projects": {
6
+ "vendure-admin": {
7
+ "root": "",
8
+ "sourceRoot": "src",
9
+ "projectType": "application",
10
+ "prefix": "vdr",
11
+ "schematics": {
12
+ "@schematics/angular:component": {
13
+ "style": "scss"
14
+ }
15
+ },
16
+ "architect": {
17
+ "build": {
18
+ "builder": "@angular-devkit/build-angular:application",
19
+ "options": {
20
+ "baseHref": "/admin/",
21
+ "outputPath": {
22
+ "base": "dist"
23
+ },
24
+ "index": "src/index.html",
25
+ "polyfills": [
26
+ "src/polyfills.ts"
27
+ ],
28
+ "tsConfig": "src/tsconfig.app.json",
29
+ "assets": [
30
+ {
31
+ "glob": "**/*.*",
32
+ "input": "static-assets",
33
+ "output": "assets"
34
+ },
35
+ "src/favicon.ico",
36
+ {
37
+ "glob": "favicon.ico",
38
+ "input": "static-assets",
39
+ "output": "/"
40
+ },
41
+ "src/vendure-ui-config.json",
42
+ "src/theme.min.css",
43
+ "src/assets",
44
+ "src/i18n-messages",
45
+ {
46
+ "glob": "logo-*.*",
47
+ "input": "static-assets",
48
+ "output": "assets"
49
+ }
50
+ ],
51
+ "styles": [
52
+ "src/global-styles.scss"
53
+ ],
54
+ "stylePreprocessorOptions": {
55
+ "includePaths": [
56
+ "./src/styles",
57
+ "./src/fonts"
58
+ ],
59
+ "sass": {
60
+ "silenceDeprecations": ["mixed-decls", "color-functions", "global-builtin", "import"]
61
+ }
62
+ },
63
+ "allowedCommonJsDependencies": [
64
+ "graphql-tag",
65
+ "zen-observable",
66
+ "lodash",
67
+ "dayjs",
68
+ "apollo-upload-client",
69
+ "@clr/icons",
70
+ "@clr/icons/shapes/all-shapes",
71
+ "@vendure/common/lib/generated-types",
72
+ "@vendure/common/lib/simple-deep-clone",
73
+ "@vendure/common/lib/shared-constants",
74
+ "@vendure/common/lib/shared-utils",
75
+ "@vendure/common/lib/normalize-string",
76
+ "@vendure/common/lib/unique",
77
+ "@vendure/common/lib/omit",
78
+ "@vendure/common/lib/pick",
79
+ "@messageformat/core"
80
+ ],
81
+ "extractLicenses": false,
82
+ "sourceMap": true,
83
+ "optimization": false,
84
+ "namedChunks": true,
85
+ "browser": "src/main.ts"
86
+ },
87
+ "configurations": {
88
+ "production": {
89
+ "budgets": [
90
+ {
91
+ "type": "anyComponentStyle",
92
+ "maximumWarning": "6kb"
93
+ }
94
+ ],
95
+ "fileReplacements": [
96
+ {
97
+ "replace": "src/environment.ts",
98
+ "with": "src/environment.prod.ts"
99
+ }
100
+ ],
101
+ "optimization": {
102
+ "styles": {
103
+ "inlineCritical": false
104
+ }
105
+ },
106
+ "outputHashing": "all",
107
+ "namedChunks": false,
108
+ "extractLicenses": true
109
+ }
110
+ },
111
+ "defaultConfiguration": ""
112
+ },
113
+ "serve": {
114
+ "builder": "@angular-devkit/build-angular:dev-server",
115
+ "options": {
116
+ "buildTarget": "vendure-admin:build"
117
+ }
118
+ }
119
+ }
120
+ }
121
+ },
122
+ "schematics": {
123
+ "@schematics/angular:component": {
124
+ "skipTests": true,
125
+ "changeDetection": "OnPush"
126
+ }
127
+ },
128
+ "cli": {
129
+ "analytics": false
130
+ }
131
+ }
@@ -1,11 +1,11 @@
1
- {
2
- "name": "vendure-admin-ui",
3
- "dependencies": {},
4
- "license": "UNLICENSED",
5
- "private": true,
6
- "scripts": {
7
- "ng": "ng",
8
- "start": "ng serve",
9
- "build": "ng build --configuration production"
10
- }
11
- }
1
+ {
2
+ "name": "vendure-admin-ui",
3
+ "dependencies": {},
4
+ "license": "UNLICENSED",
5
+ "private": true,
6
+ "scripts": {
7
+ "ng": "ng",
8
+ "start": "ng serve",
9
+ "build": "ng build --configuration production"
10
+ }
11
+ }
@@ -1,19 +1,19 @@
1
- import { NgModule } from '@angular/core';
2
- import { Route, RouterModule } from '@angular/router';
3
- import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
4
- import { AppComponent, AppComponentModule, CoreModule } from '@vendure/admin-ui/core';
5
-
6
- import { routes } from './app.routes';
7
- import { SharedExtensionsModule } from './shared-extensions.module';
8
-
9
- @NgModule({
10
- declarations: [],
11
- imports: [
12
- AppComponentModule,
13
- RouterModule.forRoot(routes, { useHash: false }),
14
- CoreModule,
15
- SharedExtensionsModule,
16
- ],
17
- bootstrap: [AppComponent],
18
- })
19
- export class AppModule {}
1
+ import { NgModule } from '@angular/core';
2
+ import { Route, RouterModule } from '@angular/router';
3
+ import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
4
+ import { AppComponent, AppComponentModule, CoreModule } from '@vendure/admin-ui/core';
5
+
6
+ import { routes } from './app.routes';
7
+ import { SharedExtensionsModule } from './shared-extensions.module';
8
+
9
+ @NgModule({
10
+ declarations: [],
11
+ imports: [
12
+ AppComponentModule,
13
+ RouterModule.forRoot(routes, { useHash: false }),
14
+ CoreModule,
15
+ SharedExtensionsModule,
16
+ ],
17
+ bootstrap: [AppComponent],
18
+ })
19
+ export class AppModule {}
@@ -1,52 +1,52 @@
1
- import { Route } from '@angular/router';
2
- import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
3
- import { AppShellComponent, AuthGuard } from '@vendure/admin-ui/core';
4
-
5
- import { extensionRoutes } from './extension.routes';
6
-
7
- export const routes: Route[] = [
8
- { path: 'login', loadChildren: () => import('@vendure/admin-ui/login').then(m => m.LoginModule) },
9
- {
10
- path: '',
11
- canActivate: [AuthGuard],
12
- component: AppShellComponent,
13
- data: {
14
- breadcrumb: _('breadcrumb.dashboard'),
15
- },
16
- children: [
17
- // Defining the extension routes before the built-in routes allows
18
- // the extension routes to take precedence over the built-in routes, enabling
19
- // the extensions to override built-in functionality.
20
- ...extensionRoutes,
21
- {
22
- path: '',
23
- pathMatch: 'full',
24
- loadChildren: () => import('@vendure/admin-ui/dashboard').then(m => m.DashboardModule),
25
- },
26
- {
27
- path: 'catalog',
28
- loadChildren: () => import('@vendure/admin-ui/catalog').then(m => m.CatalogModule),
29
- },
30
- {
31
- path: 'customer',
32
- loadChildren: () => import('@vendure/admin-ui/customer').then(m => m.CustomerModule),
33
- },
34
- {
35
- path: 'orders',
36
- loadChildren: () => import('@vendure/admin-ui/order').then(m => m.OrderModule),
37
- },
38
- {
39
- path: 'marketing',
40
- loadChildren: () => import('@vendure/admin-ui/marketing').then(m => m.MarketingModule),
41
- },
42
- {
43
- path: 'settings',
44
- loadChildren: () => import('@vendure/admin-ui/settings').then(m => m.SettingsModule),
45
- },
46
- {
47
- path: 'system',
48
- loadChildren: () => import('@vendure/admin-ui/system').then(m => m.SystemModule),
49
- },
50
- ],
51
- },
52
- ];
1
+ import { Route } from '@angular/router';
2
+ import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
3
+ import { AppShellComponent, AuthGuard } from '@vendure/admin-ui/core';
4
+
5
+ import { extensionRoutes } from './extension.routes';
6
+
7
+ export const routes: Route[] = [
8
+ { path: 'login', loadChildren: () => import('@vendure/admin-ui/login').then(m => m.LoginModule) },
9
+ {
10
+ path: '',
11
+ canActivate: [AuthGuard],
12
+ component: AppShellComponent,
13
+ data: {
14
+ breadcrumb: _('breadcrumb.dashboard'),
15
+ },
16
+ children: [
17
+ // Defining the extension routes before the built-in routes allows
18
+ // the extension routes to take precedence over the built-in routes, enabling
19
+ // the extensions to override built-in functionality.
20
+ ...extensionRoutes,
21
+ {
22
+ path: '',
23
+ pathMatch: 'full',
24
+ loadChildren: () => import('@vendure/admin-ui/dashboard').then(m => m.DashboardModule),
25
+ },
26
+ {
27
+ path: 'catalog',
28
+ loadChildren: () => import('@vendure/admin-ui/catalog').then(m => m.CatalogModule),
29
+ },
30
+ {
31
+ path: 'customer',
32
+ loadChildren: () => import('@vendure/admin-ui/customer').then(m => m.CustomerModule),
33
+ },
34
+ {
35
+ path: 'orders',
36
+ loadChildren: () => import('@vendure/admin-ui/order').then(m => m.OrderModule),
37
+ },
38
+ {
39
+ path: 'marketing',
40
+ loadChildren: () => import('@vendure/admin-ui/marketing').then(m => m.MarketingModule),
41
+ },
42
+ {
43
+ path: 'settings',
44
+ loadChildren: () => import('@vendure/admin-ui/settings').then(m => m.SettingsModule),
45
+ },
46
+ {
47
+ path: 'system',
48
+ loadChildren: () => import('@vendure/admin-ui/system').then(m => m.SystemModule),
49
+ },
50
+ ],
51
+ },
52
+ ];
@@ -1,3 +1,3 @@
1
- export const environment = {
2
- production: true,
3
- };
1
+ export const environment = {
2
+ production: true,
3
+ };
@@ -1,6 +1,6 @@
1
- // This file can be replaced during build by using the `fileReplacements` array.
2
- // `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
3
- // The list of file replacements can be found in `angular.json`.
4
- export const environment = {
5
- production: false,
6
- };
1
+ // This file can be replaced during build by using the `fileReplacements` array.
2
+ // `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
3
+ // The list of file replacements can be found in `angular.json`.
4
+ export const environment = {
5
+ production: false,
6
+ };
@@ -1 +1 @@
1
- export const extensionRoutes = [];
1
+ export const extensionRoutes = [];
@@ -1,17 +1,17 @@
1
- import { enableProdMode } from '@angular/core';
2
- import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3
- import { loadAppConfig } from '@vendure/admin-ui/core';
4
-
5
- import { AppModule } from './app.module';
6
- import { environment } from './environment';
7
-
8
- if (environment.production) {
9
- enableProdMode();
10
- }
11
-
12
- loadAppConfig()
13
- .then(() => platformBrowserDynamic().bootstrapModule(AppModule))
14
- .catch((err: any) => {
15
- /* eslint-disable no-console */
16
- console.log(err);
17
- });
1
+ import { enableProdMode } from '@angular/core';
2
+ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3
+ import { loadAppConfig } from '@vendure/admin-ui/core';
4
+
5
+ import { AppModule } from './app.module';
6
+ import { environment } from './environment';
7
+
8
+ if (environment.production) {
9
+ enableProdMode();
10
+ }
11
+
12
+ loadAppConfig()
13
+ .then(() => platformBrowserDynamic().bootstrapModule(AppModule))
14
+ .catch((err: any) => {
15
+ /* eslint-disable no-console */
16
+ console.log(err);
17
+ });
@@ -1,7 +1,7 @@
1
- import { CommonModule } from '@angular/common';
2
- import { NgModule } from '@angular/core';
3
-
4
- @NgModule({
5
- imports: [CommonModule],
6
- })
7
- export class SharedExtensionsModule {}
1
+ import { CommonModule } from '@angular/common';
2
+ import { NgModule } from '@angular/core';
3
+
4
+ @NgModule({
5
+ imports: [CommonModule],
6
+ })
7
+ export class SharedExtensionsModule {}
@@ -1 +1 @@
1
- @import "./styles";
1
+ @import "./styles";
@@ -1,18 +1,18 @@
1
- {
2
- "extends": "../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../out-tsc/app"
5
- },
6
- "files": [
7
- "main.ts",
8
- "polyfills.ts"
9
- ],
10
- "include": [
11
- "**/*.d.ts"
12
- ],
13
- "angularCompilerOptions": {
14
- "strictMetadataEmit": true,
15
- "fullTemplateTypeCheck": false,
16
- "strictInjectionParameters": true
17
- }
18
- }
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../out-tsc/app"
5
+ },
6
+ "files": [
7
+ "main.ts",
8
+ "polyfills.ts"
9
+ ],
10
+ "include": [
11
+ "**/*.d.ts"
12
+ ],
13
+ "angularCompilerOptions": {
14
+ "strictMetadataEmit": true,
15
+ "fullTemplateTypeCheck": false,
16
+ "strictInjectionParameters": true
17
+ }
18
+ }
@@ -1,28 +1,28 @@
1
- {
2
- "compileOnSave": false,
3
- "compilerOptions": {
4
- "baseUrl": "./",
5
- "importHelpers": true,
6
- "module": "es2020",
7
- "outDir": "./dist/out-tsc",
8
- "sourceMap": true,
9
- "declaration": false,
10
- "moduleResolution": "node",
11
- "experimentalDecorators": true,
12
- "strict": true,
13
- "noImplicitAny": false,
14
- "strictPropertyInitialization": false,
15
- "target": "ES2022",
16
- "skipLibCheck": true,
17
- "esModuleInterop": true,
18
- "allowSyntheticDefaultImports": true,
19
- "jsx": "react",
20
- "typeRoots": [],
21
- "lib": [
22
- "es2019",
23
- "dom",
24
- "esnext.asynciterable"
25
- ],
26
- "useDefineForClassFields": false
27
- }
28
- }
1
+ {
2
+ "compileOnSave": false,
3
+ "compilerOptions": {
4
+ "baseUrl": "./",
5
+ "importHelpers": true,
6
+ "module": "es2020",
7
+ "outDir": "./dist/out-tsc",
8
+ "sourceMap": true,
9
+ "declaration": false,
10
+ "moduleResolution": "node",
11
+ "experimentalDecorators": true,
12
+ "strict": true,
13
+ "noImplicitAny": false,
14
+ "strictPropertyInitialization": false,
15
+ "target": "ES2022",
16
+ "skipLibCheck": true,
17
+ "esModuleInterop": true,
18
+ "allowSyntheticDefaultImports": true,
19
+ "jsx": "react",
20
+ "typeRoots": [],
21
+ "lib": [
22
+ "es2019",
23
+ "dom",
24
+ "esnext.asynciterable"
25
+ ],
26
+ "useDefineForClassFields": false
27
+ }
28
+ }