|
3 | 3 | "version": 1, |
4 | 4 | "newProjectRoot": "projects", |
5 | 5 | "projects": { |
6 | | - "WebTerminal": { |
| 6 | + "Luna": { |
7 | 7 | "root": "", |
8 | 8 | "sourceRoot": "src", |
9 | 9 | "projectType": "application", |
10 | 10 | "architect": { |
11 | 11 | "build": { |
12 | | - "builder": "@angular-devkit/build-angular:browser", |
| 12 | + "builder": "@angular/build:application", |
13 | 13 | "options": { |
14 | 14 | "outputPath": "dist", |
| 15 | + "optimization": false, |
| 16 | + "progress": true, |
| 17 | + "statsJson": false, |
| 18 | + "aot": false, |
| 19 | + "sourceMap": true, |
| 20 | + "namedChunks": true, |
15 | 21 | "index": "src/index.html", |
16 | | - "main": "src/main.ts", |
| 22 | + "browser": "src/main.ts", |
| 23 | + "polyfills": ["src/polyfills.ts"], |
| 24 | + "allowedCommonJsDependencies": [ |
| 25 | + "crypto-js", |
| 26 | + "events", |
| 27 | + "buffer", |
| 28 | + "@xterm/xterm", |
| 29 | + "@xterm/addon-fit", |
| 30 | + "jquery", |
| 31 | + "xterm-theme" |
| 32 | + ], |
17 | 33 | "tsConfig": "src/tsconfig.app.json", |
18 | | - "polyfills": "src/polyfills.ts", |
| 34 | + "stylePreprocessorOptions": { |
| 35 | + "includePaths": ["src", "src/sass", "node_modules"] |
| 36 | + }, |
19 | 37 | "preserveSymlinks": true, |
20 | 38 | "assets": [ |
21 | 39 | "src/assets", |
22 | 40 | "src/static", |
23 | | - "src/favicon.ico" |
24 | | - ], |
25 | | - "styles": [ |
26 | | - "node_modules/animate.css/animate.min.css", |
27 | | - "node_modules/xterm/dist/xterm.css", |
28 | | - "node_modules/ngx-toastr/toastr.css", |
29 | | - "src/sass/style.scss", |
30 | | - "src/styles.css", |
31 | | - "src/theme.scss", |
32 | | - "node_modules/asciinema-player/resources/public/css/asciinema-player.css" |
| 41 | + "src/favicon.ico", |
| 42 | + { |
| 43 | + "glob": "**/*", |
| 44 | + "input": "./node_modules/@ant-design/icons-angular/src/inline-svg/", |
| 45 | + "output": "/assets/" |
| 46 | + } |
33 | 47 | ], |
| 48 | + "styles": ["src/sass/ant.less", "src/sass/styles.scss"], |
34 | 49 | "scripts": [ |
35 | | - "node_modules/jquery/dist/jquery.min.js", |
36 | | - "node_modules/xterm/dist/xterm.js", |
37 | | - "node_modules/@ztree/ztree_v3/js/jquery.ztree.all.min.js", |
38 | | - "node_modules/@ztree/ztree_v3/js/jquery.ztree.exhide.min.js", |
39 | | - "node_modules/asciinema-player/resources/public/js/asciinema-player.js" |
| 50 | + "jquery/dist/jquery.min.js", |
| 51 | + "@ztree/ztree_v3/js/jquery.ztree.all.min.js", |
| 52 | + "@ztree/ztree_v3/js/jquery.ztree.exhide.min.js", |
| 53 | + "asciinema-player/dist/bundle/asciinema-player.min.js" |
40 | 54 | ] |
41 | 55 | }, |
42 | 56 | "configurations": { |
43 | 57 | "production": { |
44 | 58 | "optimization": true, |
45 | 59 | "outputHashing": "all", |
| 60 | + "baseHref": "/luna/", |
| 61 | + "outputPath": { |
| 62 | + "base": "dist", |
| 63 | + "browser": "luna" |
| 64 | + }, |
46 | 65 | "sourceMap": false, |
47 | | - "extractCss": true, |
48 | 66 | "namedChunks": false, |
49 | | - "aot": true, |
50 | 67 | "extractLicenses": true, |
51 | | - "vendorChunk": false, |
52 | | - "buildOptimizer": true, |
| 68 | + "budgets": [ |
| 69 | + { |
| 70 | + "type": "initial", |
| 71 | + "maximumWarning": "5mb", |
| 72 | + "maximumError": "6mb" |
| 73 | + } |
| 74 | + ], |
53 | 75 | "fileReplacements": [ |
54 | 76 | { |
55 | 77 | "replace": "src/environments/environment.ts", |
56 | 78 | "with": "src/environments/environment.prod.ts" |
57 | 79 | } |
58 | 80 | ] |
| 81 | + }, |
| 82 | + "hmr": { |
| 83 | + "optimization": false, |
| 84 | + "sourceMap": true, |
| 85 | + "namedChunks": true |
59 | 86 | } |
60 | 87 | } |
61 | 88 | }, |
62 | 89 | "serve": { |
63 | | - "builder": "@angular-devkit/build-angular:dev-server", |
| 90 | + "builder": "@angular/build:dev-server", |
64 | 91 | "options": { |
65 | | - "browserTarget": "WebTerminal:build" |
| 92 | + "buildTarget": "Luna:build", |
| 93 | + "proxyConfig": "proxy.conf.json" |
66 | 94 | }, |
67 | 95 | "configurations": { |
68 | 96 | "production": { |
69 | | - "browserTarget": "WebTerminal:build:production" |
| 97 | + "buildTarget": "Luna:build:production" |
| 98 | + }, |
| 99 | + "hmr": { |
| 100 | + "buildTarget": "Luna:build:hmr" |
70 | 101 | } |
71 | 102 | } |
72 | 103 | }, |
73 | 104 | "extract-i18n": { |
74 | | - "builder": "@angular-devkit/build-angular:extract-i18n", |
| 105 | + "builder": "@angular/build:extract-i18n", |
75 | 106 | "options": { |
76 | | - "browserTarget": "WebTerminal:build" |
77 | | - } |
78 | | - }, |
79 | | - "test": { |
80 | | - "builder": "@angular-devkit/build-angular:karma", |
81 | | - "options": { |
82 | | - "main": "src/test.ts", |
83 | | - "karmaConfig": "./karma.conf.js", |
84 | | - "polyfills": "src/polyfills.ts", |
85 | | - "tsConfig": "src/tsconfig.spec.json", |
86 | | - "scripts": [ |
87 | | - "node_modules/jquery/dist/jquery.min.js", |
88 | | - "node_modules/xterm/dist/xterm.js", |
89 | | - "node_modules/@ztree/ztree_v3/js/jquery.ztree.all.min.js", |
90 | | - "node_modules/@ztree/ztree_v3/js/jquery.ztree.exhide.min.js" |
91 | | - ], |
92 | | - "styles": [ |
93 | | - "node_modules/animate.css/animate.min.css", |
94 | | - "node_modules/xterm/dist/xterm.css", |
95 | | - "src/sass/style.scss", |
96 | | - "src/styles.css" |
97 | | - ], |
98 | | - "assets": [ |
99 | | - "src/assets", |
100 | | - "src/static", |
101 | | - "src/theme/default", |
102 | | - "src/favicon.ico" |
103 | | - ] |
| 107 | + "buildTarget": "Luna:build" |
104 | 108 | } |
105 | 109 | }, |
106 | 110 | "lint": { |
107 | | - "builder": "@angular-devkit/build-angular:tslint", |
| 111 | + "builder": "@angular-eslint/builder:lint", |
108 | 112 | "options": { |
109 | | - "tsConfig": [ |
110 | | - "src/tsconfig.app.json", |
111 | | - "src/tsconfig.spec.json" |
112 | | - ], |
113 | | - "exclude": [ |
114 | | - "**/node_modules/**" |
115 | | - ] |
| 113 | + "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"] |
116 | 114 | } |
117 | 115 | } |
118 | 116 | } |
119 | 117 | } |
120 | 118 | }, |
121 | | - "defaultProject": "Luna", |
122 | 119 | "schematics": { |
123 | 120 | "@schematics/angular:component": { |
124 | 121 | "prefix": "app", |
125 | | - "styleext": "scss" |
| 122 | + "style": "scss" |
126 | 123 | }, |
127 | 124 | "@schematics/angular:directive": { |
128 | 125 | "prefix": "app" |
129 | 126 | } |
| 127 | + }, |
| 128 | + "cli": { |
| 129 | + "analytics": "b781fa7d-691a-46cd-bb02-23fe8532f7d6" |
130 | 130 | } |
131 | 131 | } |
0 commit comments