|
3 | 3 | "version": 1, |
4 | 4 | "newProjectRoot": "projects", |
5 | 5 | "projects": { |
6 | | - "ng2-date-picker": { |
| 6 | + "ng2-date-picker-demo": { |
7 | 7 | "root": "", |
8 | 8 | "sourceRoot": "src", |
9 | 9 | "projectType": "application", |
|
14 | 14 | "outputPath": "dist", |
15 | 15 | "index": "src/index.html", |
16 | 16 | "main": "src/main.ts", |
17 | | - "tsConfig": "src/tsconfig.app.json", |
| 17 | + "tsConfig": "tsconfig.app.json", |
18 | 18 | "polyfills": "src/polyfills.ts", |
19 | 19 | "assets": [ |
20 | 20 | "src/assets", |
|
59 | 59 | "serve": { |
60 | 60 | "builder": "@angular-devkit/build-angular:dev-server", |
61 | 61 | "options": { |
62 | | - "browserTarget": "ng2-date-picker:build" |
| 62 | + "browserTarget": "ng2-date-picker-demo:build" |
63 | 63 | }, |
64 | 64 | "configurations": { |
65 | 65 | "production": { |
66 | | - "browserTarget": "ng2-date-picker:build:production" |
| 66 | + "browserTarget": "ng2-date-picker-demo:build:production" |
67 | 67 | } |
68 | 68 | } |
69 | 69 | }, |
70 | 70 | "extract-i18n": { |
71 | 71 | "builder": "@angular-devkit/build-angular:extract-i18n", |
72 | 72 | "options": { |
73 | | - "browserTarget": "ng2-date-picker:build" |
| 73 | + "browserTarget": "ng2-date-picker-demo:build" |
74 | 74 | } |
75 | 75 | }, |
76 | 76 | "test": { |
|
79 | 79 | "main": "src/test.ts", |
80 | 80 | "karmaConfig": "./karma.conf.js", |
81 | 81 | "polyfills": "src/polyfills.ts", |
82 | | - "tsConfig": "src/tsconfig.spec.json", |
| 82 | + "tsConfig": "tsconfig.spec.json", |
83 | 83 | "scripts": [], |
84 | 84 | "styles": [ |
85 | 85 | "src/styles.less" |
|
101 | 101 | } |
102 | 102 | } |
103 | 103 | }, |
104 | | - "ng2-date-picker-e2e": { |
| 104 | + "ng2-date-picker-demo-e2e": { |
105 | 105 | "root": "", |
106 | 106 | "sourceRoot": "e2e", |
107 | 107 | "projectType": "application", |
|
110 | 110 | "builder": "@angular-devkit/build-angular:protractor", |
111 | 111 | "options": { |
112 | 112 | "protractorConfig": "./protractor.conf.js", |
113 | | - "devServerTarget": "ng2-date-picker:serve" |
| 113 | + "devServerTarget": "ng2-date-picker-demo:serve" |
114 | 114 | } |
115 | 115 | }, |
116 | 116 | "lint": { |
|
123 | 123 | } |
124 | 124 | } |
125 | 125 | } |
| 126 | + }, |
| 127 | + "ng2-date-picker": { |
| 128 | + "projectType": "library", |
| 129 | + "root": "projects/ng2-date-picker", |
| 130 | + "sourceRoot": "projects/ng2-date-picker/src", |
| 131 | + "prefix": "dp", |
| 132 | + "architect": { |
| 133 | + "build": { |
| 134 | + "builder": "@angular-devkit/build-angular:ng-packagr", |
| 135 | + "options": { |
| 136 | + "project": "projects/ng2-date-picker/ng-package.json" |
| 137 | + }, |
| 138 | + "configurations": { |
| 139 | + "production": { |
| 140 | + "tsConfig": "projects/ng2-date-picker/tsconfig.lib.prod.json" |
| 141 | + }, |
| 142 | + "development": { |
| 143 | + "tsConfig": "projects/ng2-date-picker/tsconfig.lib.json" |
| 144 | + } |
| 145 | + }, |
| 146 | + "defaultConfiguration": "production" |
| 147 | + }, |
| 148 | + "test": { |
| 149 | + "builder": "@angular-devkit/build-angular:karma", |
| 150 | + "options": { |
| 151 | + "main": "projects/ng2-date-picker/src/test.ts", |
| 152 | + "tsConfig": "projects/ng2-date-picker/tsconfig.spec.json", |
| 153 | + "karmaConfig": "projects/ng2-date-picker/karma.conf.js" |
| 154 | + } |
| 155 | + }, |
| 156 | + "lint": { |
| 157 | + "builder": "@angular-eslint/builder:lint", |
| 158 | + "options": { |
| 159 | + "lintFilePatterns": [ |
| 160 | + "projects/ng2-date-picker/**/*.ts", |
| 161 | + "projects/ng2-date-picker/**/*.html" |
| 162 | + ] |
| 163 | + } |
| 164 | + } |
| 165 | + } |
126 | 166 | } |
127 | 167 | }, |
128 | | - "defaultProject": "ng2-date-picker", |
| 168 | + "defaultProject": "ng2-date-picker-demo", |
129 | 169 | "schematics": { |
130 | 170 | "@schematics/angular:component": { |
131 | 171 | "prefix": "dp", |
|
0 commit comments