Skip to content

Commit 03ad5b6

Browse files
author
lewis617
committed
change all
1 parent c21ccea commit 03ad5b6

File tree

165 files changed

+2931
-200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+2931
-200
lines changed

componnets/.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# @AngularClass
2+
# http://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
indent_style = space
9+
indent_size = 2
10+
end_of_line = lf
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
insert_final_newline = false
16+
trim_trailing_whitespace = false

componnets/.gitignore

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# @AngularClass
2+
3+
# Logs
4+
logs
5+
*.log
6+
7+
# Runtime data
8+
pids
9+
*.pid
10+
*.seed
11+
12+
# Directory for instrumented libs generated by jscoverage/JSCover
13+
lib-cov
14+
15+
# Coverage directory used by tools like istanbul
16+
coverage
17+
18+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
19+
.grunt
20+
21+
# Compiled binary addons (http://nodejs.org/api/addons.html)
22+
build/Release
23+
24+
# Users Environment Variables
25+
.lock-wscript
26+
27+
# OS generated files #
28+
.DS_Store
29+
ehthumbs.db
30+
Icon?
31+
Thumbs.db
32+
33+
# Node Files #
34+
/node_modules
35+
/bower_components
36+
npm-debug.log
37+
38+
# Coverage #
39+
/coverage/
40+
41+
# Typing #
42+
/src/typings/tsd/
43+
/typings/
44+
/tsd_typings/
45+
46+
# Dist #
47+
/dist
48+
/public/__build__/
49+
/src/*/__build__/
50+
/__build__/**
51+
/public/dist/
52+
/src/*/dist/
53+
/dist/**
54+
.webpack.json
55+
56+
# Doc #
57+
/doc/
58+
59+
# IDE #
60+
.idea/
61+
*.swp

componnets/LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015-2016 AngularClass LLC
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

componnets/README.md

Lines changed: 32 additions & 5 deletions

componnets/TODO.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

componnets/helpers.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
var path = require('path');
2+
var zlib = require('zlib');
3+
var validateWebpackConfig = require('webpack-validator');
4+
5+
// Helper functions
6+
7+
exports.validateWebpackConfig = validateWebpackConfig;
8+
exports.validate = validateWebpackConfig;
9+
10+
function gzipMaxLevel(buffer, callback) {
11+
return zlib['gzip'](buffer, {level: 9}, callback)
12+
}
13+
exports.gzipMaxLevel = gzipMaxLevel;
14+
15+
function root(args) {
16+
args = Array.prototype.slice.call(arguments, 0);
17+
return path.join.apply(path, [__dirname].concat(args));
18+
}
19+
exports.root = root;
20+
21+
function rootNode(args) {
22+
args = Array.prototype.slice.call(arguments, 0);
23+
return root.apply(path, ['node_modules'].concat(args));
24+
}
25+
exports.rootNode = rootNode;
26+
27+
function prependExt(extensions, args) {
28+
args = args || [];
29+
if (!Array.isArray(args)) { args = [args] }
30+
return extensions.reduce(function(memo, val) {
31+
return memo.concat(val, args.map(function(prefix) {
32+
return prefix + val
33+
}));
34+
}, ['']);
35+
}
36+
exports.prependExt = prependExt;
37+
exports.prepend = prependExt;

componnets/index.html

Lines changed: 0 additions & 15 deletions
This file was deleted.

componnets/package.json

Lines changed: 81 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,89 @@
11
{
2-
"name": "ng-webpack-play",
2+
"name": "angular2-webpack-starter",
3+
"version": "3.0.0",
4+
"description": "An Angular 2 Webpack Starter kit featuring Angular 2 (Router, Http, Forms, Services, Tests, E2E, Coverage), Karma, Protractor, Jasmine, Istanbul, TypeScript, and Webpack by AngularClass",
5+
"author": "Patrick Stapleton <[email protected]>",
6+
"homepage": "https://github.com/angularclass/angular2-webpack-starter",
7+
"license": "MIT",
8+
"scripts": {
9+
"clean": "npm cache clean && rimraf node_modules doc typings coverage dist",
10+
"clean:dist": "rimraf dist",
11+
"preclean:install": "npm run clean",
12+
"clean:install": "npm set progress=false && npm install",
13+
"preclean:start": "npm run clean",
14+
"clean:start": "npm start",
15+
"watch": "npm run watch:dev",
16+
"watch:dev": "webpack --watch --progress --profile --colors --display-error-details --display-cached",
17+
"watch:prod": "webpack --watch --config webpack.prod.config.js --progress --profile --colors --display-error-details --display-cached",
18+
"build": "npm run build:dev",
19+
"prebuild:dev": "npm run clean:dist",
20+
"build:dev": "webpack --progress --profile --colors --display-error-details --display-cached",
21+
"prebuild:prod": "npm run clean:dist",
22+
"build:prod": "webpack --config webpack.prod.config.js --progress --profile --colors --display-error-details --display-cached --bail",
23+
"server": "npm run server:dev:hmr",
24+
"server:dev": "webpack-dev-server --inline --progress --profile --colors --watch --display-error-details --display-cached --content-base src/",
25+
"server:dev:hmr": "npm run server:dev -- --hot",
26+
"server:prod": "http-server dist --cors",
27+
"lint": "tsconfig-lint",
28+
"docs": "typedoc --options typedoc.json --exclude **/*.spec.ts ./src/",
29+
"start": "npm run server",
30+
"typings-install": "typings install",
31+
"postinstall": "npm run typings-install",
32+
"version": "npm run build",
33+
"postversion": "git push && git push --tags"
34+
},
335
"dependencies": {
4-
"angular2": "2.0.0-beta.2",
5-
"es6-promise": "^3.0.2",
36+
"angular2": "2.0.0-beta.7",
37+
"es6-promise": "^3.1.2",
638
"es6-shim": "^0.33.3",
7-
"reflect-metadata": "0.1.2",
8-
"rxjs": "5.0.0-beta.0",
9-
"zone.js": "0.5.10"
39+
"es7-reflect-metadata": "^1.6.0",
40+
"rxjs": "5.0.0-beta.2",
41+
"zone.js": "0.5.15"
1042
},
1143
"devDependencies": {
12-
"raw-loader": "^0.5.1",
13-
"ts-loader": "^0.7.2",
14-
"typescript": "^1.7.3",
15-
"webpack": "^1.12.2",
16-
"webpack-dev-server": "^1.12.1"
44+
"compression-webpack-plugin": "^0.3.0",
45+
"copy-webpack-plugin": "^1.1.1",
46+
"css-loader": "^0.23.1",
47+
"es6-promise-loader": "^1.0.1",
48+
"exports-loader": "^0.6.3",
49+
"expose-loader": "^0.7.1",
50+
"file-loader": "^0.8.5",
51+
"html-webpack-plugin": "^2.9.0",
52+
"http-server": "^0.9.0",
53+
"ie-shim": "^0.1.0",
54+
"imports-loader": "^0.6.5",
55+
"istanbul-instrumenter-loader": "^0.2.0",
56+
"json-loader": "^0.5.4",
57+
"raw-loader": "0.5.1",
58+
"remap-istanbul": "^0.5.1",
59+
"rimraf": "^2.5.2",
60+
"source-map-loader": "^0.1.5",
61+
"style-loader": "^0.13.0",
62+
"ts-helper": "0.0.1",
63+
"ts-loader": "^0.8.1",
64+
"ts-node": "^0.5.5",
65+
"tsconfig-lint": "^0.6.0",
66+
"tslint": "^3.3.0",
67+
"tslint-loader": "^2.1.0",
68+
"typedoc": "^0.3.12",
69+
"typescript": "1.8.2",
70+
"typings": "^0.6.8",
71+
"url-loader": "^0.5.7",
72+
"webpack": "^1.12.14",
73+
"webpack-dev-server": "^1.14.1",
74+
"webpack-load-plugins": "^0.1.2",
75+
"webpack-md5-hash": "^0.0.5",
76+
"webpack-validator": "^1.0.0-beta.4"
1777
},
18-
"scripts": {
19-
"build": "webpack",
20-
"play": "webpack-dev-server"
78+
"repository": {
79+
"type": "git",
80+
"url": "https://github.com/angularclass/angular2-webpack-starter.git"
81+
},
82+
"bugs": {
83+
"url": "https://github.com/angularclass/angular2-webpack-starter/issues"
84+
},
85+
"engines": {
86+
"node": ">= 4.2.1",
87+
"npm": ">= 3"
2188
}
2289
}

componnets/src/app.ts renamed to componnets/src/app/app.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {Component} from 'angular2/core';
2-
import {bootstrap} from 'angular2/platform/browser';
32
import {Navbar} from './navbar';
43

54
@Component({
@@ -15,7 +14,5 @@ export class App {
1514
}
1615
}
1716

18-
bootstrap(App, [])
19-
.catch(err => console.error(err));
2017

2118

File renamed without changes.

0 commit comments

Comments
 (0)