Skip to content

Commit 7535076

Browse files
committed
Merge master
2 parents f7ca77a + ce4d284 commit 7535076

24 files changed

+412
-255
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the
2727
**Please tell us about your environment:**
2828
<!-- Operating system, IDE, package manager, HTTP server, ... -->
2929

30-
* **Angular Seed Version:** 2.0.X
30+
* **Angular Seed Version:** `aaaaf75`
3131
<!-- Check which is the hash of the last commit from angular-seed that you have locally -->
3232

3333
* **Node:** `node --version` =

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ ts-node
3434

3535
#IDE configuration files
3636
.idea
37-
.vscode
3837
*.iml
3938

4039
/tools/**/*.js

.vscode/launch.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch Chrome against localhost, with sourcemaps",
6+
"type": "chrome",
7+
"preLaunchTask": "start",
8+
"request": "launch",
9+
"url": "http://localhost:5555",
10+
"sourceMaps": true,
11+
"webRoot": "${workspaceRoot}/src/client",
12+
"sourceMapPathOverrides": {
13+
"app/*": "${webRoot}/app/*"
14+
}
15+
},
16+
{
17+
"name": "Attach to Chrome, with sourcemaps",
18+
"type": "chrome",
19+
"request": "attach",
20+
"port": 9222,
21+
"sourceMaps": true,
22+
"webRoot": "${workspaceRoot}/src/client",
23+
"sourceMapPathOverrides": {
24+
"app/*": "${webRoot}/app/*"
25+
}
26+
}
27+
]
28+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"typescript.tsdk": "node_modules/typescript/lib"
4+
}

README.md

Lines changed: 155 additions & 116 deletions
Large diffs are not rendered by default.

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ init:
1919

2020
install:
2121
- ps: Install-Product node $env:nodejs_version
22-
- npm install -g npm
22+
- npm install -g npm@3.10.8
2323
- ps: $env:path = $env:appdata + "\npm;" + $env:path
2424
- npm install && npm install karma-ie-launcher
2525

@@ -38,4 +38,4 @@ notifications:
3838
on_build_failure: true
3939
on_build_status_changed: true
4040

41-
cache: node_modules
41+
cache: node_modules -> package.json

gulpfile.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ gulp.task('serve.prod', (done: any) =>
124124
done));
125125

126126

127+
// --------------
128+
// Serve prod exp
129+
gulp.task('serve.prod.exp', (done: any) =>
130+
runSequence('build.prod.exp',
131+
'server.prod',
132+
done));
133+
127134
// --------------
128135
// Test.
129136
gulp.task('test', (done: any) =>

karma.conf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
'use strict';
44

55
var argv = require('yargs').argv;
6+
var minimatch = require("minimatch");
7+
68

79
module.exports = function (config) {
810
config.set({
@@ -20,6 +22,7 @@ module.exports = function (config) {
2022
files: [
2123
// Polyfills.
2224
'node_modules/core-js/client/shim.min.js',
25+
'node_modules/intl/dist/Intl.min.js',
2326

2427
'node_modules/traceur/bin/traceur.js',
2528

@@ -114,7 +117,7 @@ module.exports = function (config) {
114117

115118
// Passing command line arguments to tests
116119
client: {
117-
files: argv.files
120+
files: argv.files ? minimatch.makeRe(argv.files).source : null
118121
}
119122
});
120123

package.json

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
"url": "https://github.com/mgechev/angular-seed"
77
},
88
"scripts": {
9-
"build.dev": "gulp build.dev --color --env-config dev --config-env dev",
9+
"build.dev": "gulp build.dev --color --env-config dev",
1010
"build.dev.watch": "gulp build.dev.watch --color",
1111
"build.e2e": "gulp build.e2e --color",
12-
"build.prod": "gulp build.prod --color --env-config prod --config-env prod --build-type prod",
13-
"build.prod.exp": "gulp build.prod.exp --color --env-config prod --config-env prod --build-type prod",
12+
"build.prod": "gulp build.prod --color --env-config prod --build-type prod",
13+
"build.prod.exp": "gulp build.prod.exp --color --env-config prod --build-type prod",
1414
"build.test": "gulp build.test --color",
1515
"test.watch": "gulp test.watch --color",
1616
"generate.manifest": "gulp generate.manifest --color",
@@ -23,10 +23,11 @@
2323
"karma.start": "karma start",
2424
"postinstall": "gulp check.versions && gulp build.bundle.rxjs && npm prune && gulp webdriver && gulp print.banner",
2525
"reinstall": "npm cache clean && npm install",
26-
"serve.coverage": "remap-istanbul -b src/ -i coverage/coverage-final.json -o coverage -t html && npm run gulp -- serve.coverage --color",
27-
"serve.dev": "gulp serve.dev --color --env-config dev --config-env dev",
26+
"serve.coverage": "gulp serve.coverage --color",
27+
"serve.dev": "gulp serve.dev --color --env-config dev",
2828
"serve.e2e": "gulp serve.e2e --color",
29-
"serve.prod": "gulp serve.prod --color --env-config prod --config-env prod",
29+
"serve.prod": "gulp serve.prod --color --env-config prod",
30+
"serve.prod.exp": "gulp serve.prod.exp --color --env-config prod",
3031
"start": "gulp serve.dev --color",
3132
"start.deving": "gulp start.deving --color",
3233
"tasks.list": "gulp --tasks-simple --color",
@@ -39,14 +40,15 @@
3940
"author": "Minko Gechev <mgechev>",
4041
"license": "MIT",
4142
"devDependencies": {
42-
"@angular/compiler-cli": "^2.1.0",
43-
"@angular/platform-server": "^2.1.0",
44-
"@angular/tsc-wrapped": "^0.3.0",
43+
"@angular/compiler-cli": "~2.1.2",
44+
"@angular/platform-server": "~2.1.2",
45+
"@angular/tsc-wrapped": "0.3.0",
4546
"@types/async": "^2.0.32",
4647
"@types/browser-sync": "^0.0.34",
4748
"@types/core-js": "^0.9.34",
4849
"@types/express": "^4.0.33",
4950
"@types/gulp": "^3.8.32",
51+
"@types/gulp-filter": "^3.0.29",
5052
"@types/gulp-load-plugins": "^0.0.28",
5153
"@types/gulp-protractor": "^1.0.29",
5254
"@types/gulp-sass": "^0.0.29",
@@ -58,7 +60,7 @@
5860
"@types/run-sequence": "^0.0.28",
5961
"@types/selenium-webdriver": "2.44.*",
6062
"@types/systemjs": "^0.19.31",
61-
"@types/yargs": "^0.0.33",
63+
"@types/yargs": "^0.0.34",
6264
"@types/zone.js": "^0.0.27",
6365
"async": "^2.1.1",
6466
"autoprefixer": "^6.5.1",
@@ -76,15 +78,15 @@
7678
"gulp-concat-css": "^2.3.0",
7779
"gulp-filter": "^4.0.0",
7880
"gulp-inject": "^4.1.0",
79-
"gulp-inline-ng2-template": "^3.0.1",
81+
"gulp-inline-ng2-template": "^4.0.0",
8082
"gulp-load-plugins": "^1.3.0",
8183
"gulp-plumber": "~1.1.0",
8284
"gulp-postcss": "^6.2.0",
8385
"gulp-progeny": "^0.3.1",
8486
"gulp-protractor": "^3.0.0",
8587
"gulp-replace": "^0.5.4",
8688
"gulp-sass": "^2.3.2",
87-
"gulp-sourcemaps": "2.1.1",
89+
"gulp-sourcemaps": "2.2.0",
8890
"gulp-template": "^4.0.0",
8991
"gulp-tslint": "^6.1.2",
9092
"gulp-typescript": "^3.0.2",
@@ -110,7 +112,8 @@
110112
"semver": "^5.3.0",
111113
"serve-static": "^1.11.1",
112114
"slash": "~1.0.0",
113-
"systemjs-builder": "0.15.32",
115+
"supports-color": "^3.1.2",
116+
"systemjs-builder": "0.15.33",
114117
"tildify": "^1.2.0",
115118
"traceur": "^0.0.111",
116119
"ts-node": "^1.4.3",
@@ -120,18 +123,20 @@
120123
"yargs": "^6.0.0"
121124
},
122125
"dependencies": {
123-
"@angular/common": "^2.1.0",
124-
"@angular/compiler": "^2.1.0",
125-
"@angular/core": "^2.1.0",
126-
"@angular/forms": "^2.1.0",
127-
"@angular/http": "^2.1.0",
128-
"@angular/platform-browser": "^2.1.0",
129-
"@angular/platform-browser-dynamic": "^2.1.0",
130-
"@angular/router": "^3.1.0",
126+
"@angular/common": "~2.1.2",
127+
"@angular/compiler": "~2.1.2",
128+
"@angular/core": "~2.1.2",
129+
"@angular/forms": "~2.1.2",
130+
"@angular/http": "~2.1.2",
131+
"@angular/platform-browser": "~2.1.2",
132+
"@angular/platform-browser-dynamic": "~2.1.2",
133+
"@angular/router": "~3.1.2",
131134
"core-js": "^2.4.1",
135+
"intl": "^1.2.5",
136+
"minimatch": "^3.0.3",
132137
"reflect-metadata": "^0.1.8",
133138
"rxjs": "5.0.0-beta.12",
134-
"systemjs": "0.19.39",
139+
"systemjs": "0.19.40",
135140
"zone.js": "0.6.25"
136141
}
137142
}

src/client/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
<script>
3737
System.import('<%= BOOTSTRAP_MODULE %>')
3838
.catch(function (e) {
39-
console.error(e,
40-
'Report this error at https://github.com/mgechev/angular2-seed/issues');
39+
console.error(e.stack || e,
40+
'Not expecting this error? Report it at https://github.com/mgechev/angular2-seed/issues');
4141
});
4242
</script>
4343
<% } %>

0 commit comments

Comments
 (0)