Skip to content

Commit 9fc3459

Browse files
Oleksii Potiekhinalan-agius4
authored andcommitted
fix(@schematics/angular): remove unnecessary scripts and dependencies
When new application is generated with --minimal flag it will be created without any testing frameworks, linters, etc. But package.json still contains broken scripts and dependencies. So "test": "ng test", "lint": "ng lint" and "tslint": "~6.1.0", "ts-node": "~8.3.0" should be removed. By analogy with "e2e": "ng e2e". (cherry picked from commit 9975661)
1 parent 127f0fc commit 9fc3459

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/schematics/angular/workspace/files/package.json.template

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
7-
"build": "ng build",
7+
"build": "ng build"<% if (!minimal) { %>,
88
"test": "ng test",
9-
"lint": "ng lint"
9+
"lint": "ng lint"<% } %>
1010
},
1111
"private": true,
1212
"dependencies": {
@@ -35,9 +35,9 @@
3535
"karma-coverage": "~2.0.3",
3636
"karma-jasmine": "~4.0.0",
3737
"karma-jasmine-html-reporter": "^1.5.0",
38-
"protractor": "~7.0.0",<% } %>
38+
"protractor": "~7.0.0",
3939
"ts-node": "~8.3.0",
40-
"tslint": "~6.1.0",
40+
"tslint": "~6.1.0",<% } %>
4141
"typescript": "<%= latestVersions.TypeScript %>"
4242
}
4343
}

0 commit comments

Comments
 (0)