|
1 | 1 | {
|
2 | 2 | "version": 1,
|
3 | 3 | "projects": {
|
| 4 | + "core": { |
| 5 | + "root": "libs/core", |
| 6 | + "sourceRoot": "libs/core/src", |
| 7 | + "projectType": "library", |
| 8 | + "architect": { |
| 9 | + "build": { |
| 10 | + "builder": "@nrwl/node:package", |
| 11 | + "outputs": ["{options.outputPath}"], |
| 12 | + "options": { |
| 13 | + "outputPath": "dist/libs/core", |
| 14 | + "tsConfig": "libs/core/tsconfig.lib.json", |
| 15 | + "packageJson": "libs/core/package.json", |
| 16 | + "main": "libs/core/src/index.ts", |
| 17 | + "assets": ["libs/core/*.md"] |
| 18 | + } |
| 19 | + }, |
| 20 | + "lint": { |
| 21 | + "builder": "@nrwl/linter:eslint", |
| 22 | + "outputs": ["{options.outputFile}"], |
| 23 | + "options": { |
| 24 | + "lintFilePatterns": ["libs/core/**/*.ts"] |
| 25 | + } |
| 26 | + }, |
| 27 | + "test": { |
| 28 | + "builder": "@nrwl/jest:jest", |
| 29 | + "outputs": ["coverage/libs/core"], |
| 30 | + "options": { |
| 31 | + "jestConfig": "libs/core/jest.config.js", |
| 32 | + "passWithNoTests": true |
| 33 | + } |
| 34 | + } |
| 35 | + } |
| 36 | + }, |
4 | 37 | "dev-server": {
|
5 | 38 | "root": "apps/dev-server",
|
6 | 39 | "sourceRoot": "apps/dev-server/src",
|
|
13 | 46 | "outputPath": "dist/apps/dev-server",
|
14 | 47 | "main": "apps/dev-server/src/main.ts",
|
15 | 48 | "tsConfig": "apps/dev-server/tsconfig.app.json",
|
16 |
| - "assets": ["apps/dev-server/src/assets"] |
| 49 | + "assets": [ |
| 50 | + "apps/dev-server/src/assets", |
| 51 | + { |
| 52 | + "glob": "**/*", |
| 53 | + "input": "dist/apps/web", |
| 54 | + "output": "web" |
| 55 | + } |
| 56 | + ] |
17 | 57 | },
|
18 | 58 | "configurations": {
|
19 | 59 | "production": {
|
|
86 | 126 | }
|
87 | 127 | },
|
88 | 128 | "nodeplotlib": {
|
89 |
| - "root": "libs/nodeplotlib", |
90 |
| - "sourceRoot": "libs/nodeplotlib/src", |
91 |
| - "projectType": "library", |
| 129 | + "root": "apps/nodeplotlib", |
| 130 | + "sourceRoot": "apps/nodeplotlib/src", |
| 131 | + "projectType": "application", |
92 | 132 | "architect": {
|
93 | 133 | "build": {
|
94 |
| - "builder": "@nrwl/node:package", |
| 134 | + "builder": "@nrwl/node:build", |
95 | 135 | "outputs": ["{options.outputPath}"],
|
96 | 136 | "options": {
|
97 |
| - "outputPath": "dist/libs/nodeplotlib", |
98 |
| - "tsConfig": "libs/nodeplotlib/tsconfig.lib.json", |
99 |
| - "packageJson": "libs/nodeplotlib/package.json", |
100 |
| - "main": "libs/nodeplotlib/src/index.ts", |
101 |
| - "assets": ["libs/nodeplotlib/*.md"] |
102 |
| - } |
103 |
| - }, |
104 |
| - "lint": { |
105 |
| - "builder": "@nrwl/linter:eslint", |
106 |
| - "outputs": ["{options.outputFile}"], |
107 |
| - "options": { |
108 |
| - "lintFilePatterns": ["libs/nodeplotlib/**/*.ts"] |
| 137 | + "outputPath": "dist/apps/nodeplotlib", |
| 138 | + "main": "apps/nodeplotlib/src/main.ts", |
| 139 | + "tsConfig": "apps/nodeplotlib/tsconfig.app.json", |
| 140 | + "assets": [ |
| 141 | + "apps/nodeplotlib/src/assets", |
| 142 | + "apps/nodeplotlib/src/package.json" |
| 143 | + ] |
| 144 | + }, |
| 145 | + "configurations": { |
| 146 | + "production": { |
| 147 | + "optimization": true, |
| 148 | + "extractLicenses": true, |
| 149 | + "inspect": false, |
| 150 | + "fileReplacements": [ |
| 151 | + { |
| 152 | + "replace": "apps/nodeplotlib/src/environments/environment.ts", |
| 153 | + "with": "apps/nodeplotlib/src/environments/environment.prod.ts" |
| 154 | + } |
| 155 | + ] |
| 156 | + } |
109 | 157 | }
|
110 | 158 | },
|
111 |
| - "test": { |
112 |
| - "builder": "@nrwl/jest:jest", |
113 |
| - "outputs": ["coverage/libs/nodeplotlib"], |
114 |
| - "options": { |
115 |
| - "jestConfig": "libs/nodeplotlib/jest.config.js", |
116 |
| - "passWithNoTests": true |
117 |
| - } |
118 |
| - } |
119 |
| - } |
120 |
| - }, |
121 |
| - "server": { |
122 |
| - "root": "libs/server", |
123 |
| - "sourceRoot": "libs/server/src", |
124 |
| - "projectType": "library", |
125 |
| - "architect": { |
126 |
| - "build": { |
127 |
| - "builder": "@nrwl/node:package", |
128 |
| - "outputs": ["{options.outputPath}"], |
| 159 | + "serve": { |
| 160 | + "builder": "@nrwl/node:execute", |
129 | 161 | "options": {
|
130 |
| - "outputPath": "dist/libs/server", |
131 |
| - "tsConfig": "libs/server/tsconfig.lib.json", |
132 |
| - "packageJson": "libs/server/package.json", |
133 |
| - "main": "libs/server/src/index.ts", |
134 |
| - "assets": ["libs/server/*.md"] |
| 162 | + "buildTarget": "nodeplotlib:build" |
135 | 163 | }
|
136 | 164 | },
|
137 | 165 | "lint": {
|
138 | 166 | "builder": "@nrwl/linter:eslint",
|
139 | 167 | "outputs": ["{options.outputFile}"],
|
140 | 168 | "options": {
|
141 |
| - "lintFilePatterns": ["libs/server/**/*.ts"] |
| 169 | + "lintFilePatterns": ["apps/nodeplotlib/**/*.ts"] |
142 | 170 | }
|
143 | 171 | },
|
144 | 172 | "test": {
|
145 | 173 | "builder": "@nrwl/jest:jest",
|
146 |
| - "outputs": ["coverage/libs/server"], |
| 174 | + "outputs": ["coverage/apps/nodeplotlib"], |
147 | 175 | "options": {
|
148 |
| - "jestConfig": "libs/server/jest.config.js", |
| 176 | + "jestConfig": "apps/nodeplotlib/jest.config.js", |
149 | 177 | "passWithNoTests": true
|
150 | 178 | }
|
151 | 179 | }
|
|
0 commit comments