@foal/cli 4.1.0 → 4.2.0
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.
|
@@ -34,18 +34,19 @@ function connectAngular(path) {
|
|
|
34
34
|
})
|
|
35
35
|
.modify('angular.json', content => {
|
|
36
36
|
const config = JSON.parse(content);
|
|
37
|
+
const projectName = Object.keys(config.projects)[0];
|
|
37
38
|
// Proxy configuration
|
|
38
|
-
config.projects[
|
|
39
|
-
config.projects[
|
|
40
|
-
config.projects[
|
|
41
|
-
config.projects[
|
|
39
|
+
config.projects[projectName].architect ||= {};
|
|
40
|
+
config.projects[projectName].architect.serve ||= {};
|
|
41
|
+
config.projects[projectName].architect.serve.options ||= {};
|
|
42
|
+
config.projects[projectName].architect.serve.options.proxyConfig = 'src/proxy.conf.json';
|
|
42
43
|
// Output build directory
|
|
43
44
|
const outputPath = (0, path_1.join)((0, path_1.relative)(path, process.cwd()), 'public')
|
|
44
45
|
// Make projects generated on Windows build on Unix.
|
|
45
46
|
.replace(/\\/g, '/');
|
|
46
|
-
config.projects[
|
|
47
|
-
config.projects[
|
|
48
|
-
config.projects[
|
|
47
|
+
config.projects[projectName].architect.build ||= {};
|
|
48
|
+
config.projects[projectName].architect.build.options ||= {};
|
|
49
|
+
config.projects[projectName].architect.build.options.outputPath = outputPath;
|
|
49
50
|
return JSON.stringify(config, null, 2);
|
|
50
51
|
});
|
|
51
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foal/cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "CLI tool for FoalTS",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"ts-node": "~10.9.1",
|
|
74
74
|
"typescript": "~4.9.5"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "359331eb0b82cd8aed8c4124002b7f2ba8222284"
|
|
77
77
|
}
|