Skip to content

Commit 1b2258f

Browse files
catullhansl
authored andcommitted
fix(@angular/cli): create app.component.styl for Stylus. (angular#4540)
1 parent 15b6d9c commit 1b2258f

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

packages/@angular/cli/blueprints/ng2/files/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@
4141
"protractor": "~5.1.0",
4242
"ts-node": "1.2.1",
4343
"tslint": "^4.3.0",
44-
"typescript": "~2.0.3"
44+
"typescript": "<%= ng4 ? '~2.1.0' : '~2.0.0' %>"
4545
}
4646
}

packages/@angular/cli/blueprints/ng2/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default Blueprint.extend({
2424
},
2525

2626
locals: function(options: any) {
27-
this.styleExt = options.style;
27+
this.styleExt = options.style === 'stylus' ? 'styl' : options.style;
2828
this.version = require(path.resolve(__dirname, '../../package.json')).version;
2929
// set this.tests to opposite of skipTest options,
3030
// meaning if tests are being skipped then the default.spec.BLUEPRINT will be false

packages/@angular/cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"stylus": "^0.54.5",
7878
"stylus-loader": "^2.4.0",
7979
"temp": "0.8.3",
80-
"typescript": "~2.0.3",
80+
"typescript": ">=2.0.0 <2.2.0",
8181
"url-loader": "^0.5.7",
8282
"walk-sync": "^0.3.1",
8383
"webpack": "~2.2.0",

tests/e2e/assets/webpack/test-app-weird/package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"name": "test",
33
"license": "MIT",
44
"dependencies": {
5-
"@angular/common": "^2.3.1",
6-
"@angular/compiler": "^2.3.1",
7-
"@angular/compiler-cli": "^2.3.1",
8-
"@angular/core": "^2.3.1",
9-
"@angular/http": "^2.3.1",
10-
"@angular/platform-browser": "^2.3.1",
11-
"@angular/platform-browser-dynamic": "^2.3.1",
12-
"@angular/platform-server": "^2.3.1",
13-
"@angular/router": "^3.3.1",
5+
"@angular/common": ">=4.0.0-beta <5.0.0",
6+
"@angular/compiler": ">=4.0.0-beta <5.0.0",
7+
"@angular/compiler-cli": ">=4.0.0-beta <5.0.0",
8+
"@angular/core": ">=4.0.0-beta <5.0.0",
9+
"@angular/http": ">=4.0.0-beta <5.0.0",
10+
"@angular/platform-browser": ">=4.0.0-beta <5.0.0",
11+
"@angular/platform-browser-dynamic": ">=4.0.0-beta <5.0.0",
12+
"@angular/platform-server": ">=4.0.0-beta <5.0.0",
13+
"@angular/router": ">=4.0.0-beta <5.0.0",
1414
"@ngtools/webpack": "0.0.0",
1515
"core-js": "^2.4.1",
1616
"rxjs": "^5.0.1",
@@ -21,7 +21,7 @@
2121
"performance-now": "^0.2.0",
2222
"raw-loader": "^0.5.1",
2323
"sass-loader": "^3.2.0",
24-
"typescript": "~2.0.3",
24+
"typescript": "~2.1.0",
2525
"webpack": "2.2.0"
2626
}
2727
}

0 commit comments

Comments
 (0)