piral-ng 1.0.0 → 1.0.1-beta.5650
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/README.md +26 -3
- package/extend-webpack.js +6 -1
- package/package.json +3 -11
package/README.md
CHANGED
|
@@ -243,6 +243,20 @@ module.exports = (config) => {
|
|
|
243
243
|
m.exclude = /\.component.s[ac]ss$/i;
|
|
244
244
|
});
|
|
245
245
|
|
|
246
|
+
const cssLoaderNoModule = {
|
|
247
|
+
loader: require.resolve('css-loader'),
|
|
248
|
+
options: {
|
|
249
|
+
esModule: false,
|
|
250
|
+
},
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
const htmlLoaderNoModule = {
|
|
254
|
+
loader: require.resolve('html-loader'),
|
|
255
|
+
options: {
|
|
256
|
+
esModule: false,
|
|
257
|
+
},
|
|
258
|
+
};
|
|
259
|
+
|
|
246
260
|
const ruleIndex = config.module.rules.findIndex(m => m.test.toString() === /\.tsx?$/i.toString());
|
|
247
261
|
|
|
248
262
|
config.module.rules.splice(ruleIndex, 1,
|
|
@@ -252,15 +266,15 @@ module.exports = (config) => {
|
|
|
252
266
|
},
|
|
253
267
|
{
|
|
254
268
|
test: /\.component.html$/i,
|
|
255
|
-
use: ["to-string-loader",
|
|
269
|
+
use: ["to-string-loader", htmlLoaderNoModule],
|
|
256
270
|
},
|
|
257
271
|
{
|
|
258
272
|
test: /\.component.css$/i,
|
|
259
|
-
use: ["to-string-loader",
|
|
273
|
+
use: ["to-string-loader", cssLoaderNoModule],
|
|
260
274
|
},
|
|
261
275
|
{
|
|
262
276
|
test: /\.component.s[ac]ss$/i,
|
|
263
|
-
use: ["to-string-loader",
|
|
277
|
+
use: ["to-string-loader", cssLoaderNoModule, "sass-loader"],
|
|
264
278
|
});
|
|
265
279
|
|
|
266
280
|
config.plugins.push(
|
|
@@ -288,6 +302,15 @@ module.exports = (config) => {
|
|
|
288
302
|
|
|
289
303
|
The provided library only brings API extensions for pilets to a Piral instance. The Piral instance still needs to be configured properly to support Angular 2+.
|
|
290
304
|
|
|
305
|
+
The following (Angular) packages should be installed:
|
|
306
|
+
|
|
307
|
+
- `@angular/common`
|
|
308
|
+
- `@angular/core`
|
|
309
|
+
- `@angular/platform-browser`
|
|
310
|
+
- `@angular/platform-browser-dynamic`
|
|
311
|
+
- `@angular/router`
|
|
312
|
+
- `rxjs`
|
|
313
|
+
|
|
291
314
|
The following polyfills/vendor libs should be imported *before* any other package.
|
|
292
315
|
|
|
293
316
|
```ts
|
package/extend-webpack.js
CHANGED
|
@@ -17,7 +17,12 @@ module.exports =
|
|
|
17
17
|
ngOptions = {},
|
|
18
18
|
compilerOptions = {},
|
|
19
19
|
} = options;
|
|
20
|
-
const cssLoaderNoModule =
|
|
20
|
+
const cssLoaderNoModule = {
|
|
21
|
+
loader: cssLoader,
|
|
22
|
+
options: {
|
|
23
|
+
esModule: false,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
21
26
|
const htmlLoaderNoModule = {
|
|
22
27
|
loader: htmlLoader,
|
|
23
28
|
options: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-ng",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-beta.5650",
|
|
4
4
|
"description": "Plugin for integrating Angular components in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -81,16 +81,8 @@
|
|
|
81
81
|
"@angular/platform-browser-dynamic": "^16.0.0",
|
|
82
82
|
"@angular/router": "^16.0.0",
|
|
83
83
|
"ng-packagr": "^16.0.0",
|
|
84
|
-
"piral-core": "
|
|
84
|
+
"piral-core": "1.0.1-beta.5650",
|
|
85
85
|
"rxjs": "^7.3.0"
|
|
86
86
|
},
|
|
87
|
-
"
|
|
88
|
-
"@angular/common": "^2.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
89
|
-
"@angular/core": "^2.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
90
|
-
"@angular/platform-browser": "^2.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
91
|
-
"@angular/platform-browser-dynamic": "^2.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
92
|
-
"@angular/router": "^2.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
93
|
-
"rxjs": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
94
|
-
},
|
|
95
|
-
"gitHead": "67d9a2920bd5231baf10bc87ae8985666b18fa3a"
|
|
87
|
+
"gitHead": "79ba6a56d34f43c4ac76ed680bf131d009a9cd47"
|
|
96
88
|
}
|