Skip to content

Commit 26904df

Browse files
authored
Update Spartacus to use 2211.19 (#74)
* init * init * add scripts * fix errors * update * update b2b
1 parent b10a9c0 commit 26904df

37 files changed

+6977
-11285
lines changed

js-storefront/b2bspastore/.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"configurations": [
55
{
66
"name": "ng serve",
7-
"type": "pwa-chrome",
7+
"type": "chrome",
88
"request": "launch",
99
"preLaunchTask": "npm: start",
1010
"url": "http://localhost:4200/"

js-storefront/b2bspastore/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# B2bspastore
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.2.4.
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.2.0.
44

55
## Development server
66

js-storefront/b2bspastore/angular.json

Lines changed: 24 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,26 @@
77
"projectType": "application",
88
"schematics": {
99
"@schematics/angular:component": {
10-
"style": "scss"
10+
"style": "scss",
11+
"standalone": false
12+
},
13+
"@schematics/angular:directive": {
14+
"standalone": false
15+
},
16+
"@schematics/angular:pipe": {
17+
"standalone": false
1118
}
1219
},
1320
"root": "",
1421
"sourceRoot": "src",
1522
"prefix": "app",
1623
"architect": {
1724
"build": {
18-
"builder": "@angular-devkit/build-angular:browser",
25+
"builder": "@angular-devkit/build-angular:application",
1926
"options": {
20-
"outputPath": "dist/b2bspastore/browser",
27+
"outputPath": "dist/b2bspastore",
2128
"index": "src/index.html",
22-
"main": "src/main.ts",
29+
"browser": "src/main.ts",
2330
"polyfills": [
2431
"zone.js"
2532
],
@@ -45,6 +52,11 @@
4552
"src/styles/spartacus/product.scss"
4653
],
4754
"scripts": [],
55+
"server": "src/main.server.ts",
56+
"prerender": false,
57+
"ssr": {
58+
"entry": "server.ts"
59+
},
4860
"stylePreprocessorOptions": {
4961
"includePaths": [
5062
"node_modules/"
@@ -68,12 +80,13 @@
6880
"outputHashing": "all"
6981
},
7082
"development": {
71-
"buildOptimizer": false,
7283
"optimization": false,
73-
"vendorChunk": true,
7484
"extractLicenses": false,
75-
"sourceMap": true,
76-
"namedChunks": true
85+
"sourceMap": true
86+
},
87+
"noSsr": {
88+
"ssr": false,
89+
"prerender": false
7790
}
7891
},
7992
"defaultConfiguration": "production"
@@ -82,18 +95,18 @@
8295
"builder": "@angular-devkit/build-angular:dev-server",
8396
"configurations": {
8497
"production": {
85-
"browserTarget": "b2bspastore:build:production"
98+
"buildTarget": "b2bspastore:build:production,noSsr"
8699
},
87100
"development": {
88-
"browserTarget": "b2bspastore:build:development"
101+
"buildTarget": "b2bspastore:build:development,noSsr"
89102
}
90103
},
91104
"defaultConfiguration": "development"
92105
},
93106
"extract-i18n": {
94107
"builder": "@angular-devkit/build-angular:extract-i18n",
95108
"options": {
96-
"browserTarget": "b2bspastore:build"
109+
"buildTarget": "b2bspastore:build"
97110
}
98111
},
99112
"test": {
@@ -131,65 +144,6 @@
131144
]
132145
}
133146
}
134-
},
135-
"server": {
136-
"builder": "@angular-devkit/build-angular:server",
137-
"options": {
138-
"outputPath": "dist/b2bspastore/server",
139-
"main": "server.ts",
140-
"tsConfig": "tsconfig.server.json",
141-
"stylePreprocessorOptions": {
142-
"includePaths": [
143-
"node_modules/"
144-
]
145-
},
146-
"inlineStyleLanguage": "scss"
147-
},
148-
"configurations": {
149-
"production": {
150-
"outputHashing": "media"
151-
},
152-
"development": {
153-
"optimization": false,
154-
"sourceMap": true,
155-
"extractLicenses": false,
156-
"vendorChunk": true
157-
}
158-
},
159-
"defaultConfiguration": "production"
160-
},
161-
"serve-ssr": {
162-
"builder": "@nguniversal/builders:ssr-dev-server",
163-
"configurations": {
164-
"development": {
165-
"browserTarget": "b2bspastore:build:development",
166-
"serverTarget": "b2bspastore:server:development"
167-
},
168-
"production": {
169-
"browserTarget": "b2bspastore:build:production",
170-
"serverTarget": "b2bspastore:server:production"
171-
}
172-
},
173-
"defaultConfiguration": "development"
174-
},
175-
"prerender": {
176-
"builder": "@nguniversal/builders:prerender",
177-
"options": {
178-
"routes": [
179-
"/"
180-
]
181-
},
182-
"configurations": {
183-
"production": {
184-
"browserTarget": "b2bspastore:build:production",
185-
"serverTarget": "b2bspastore:server:production"
186-
},
187-
"development": {
188-
"browserTarget": "b2bspastore:build:development",
189-
"serverTarget": "b2bspastore:server:development"
190-
}
191-
},
192-
"defaultConfiguration": "production"
193147
}
194148
}
195149
}

0 commit comments

Comments
 (0)