Skip to content

Commit 9513b07

Browse files
committed
Curriculum: Testing
1 parent 64bdf56 commit 9513b07

File tree

85 files changed

+36880
-0
lines changed

Some content is hidden

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

85 files changed

+36880
-0
lines changed

63-testing-setup/.editorconfig

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
9+
# Change these settings to your own preference
10+
indent_style = space
11+
indent_size = 2
12+
13+
# We recommend you to keep these unchanged
14+
end_of_line = lf
15+
charset = utf-8
16+
trim_trailing_whitespace = true
17+
insert_final_newline = true
18+
19+
[*.md]
20+
trim_trailing_whitespace = false

63-testing-setup/.gitignore

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Project
2+
.idea
3+
4+
# Node
5+
node_modules
6+
7+
# macOS
8+
.DS_Store
9+
.AppleDouble
10+
.LSOverride
11+
Icon
12+
._*
13+
.Spotlight-V100
14+
.Trashes
15+
16+
## Windows
17+
Thumbs.db
18+
ehthumbs.db
19+
Desktop.ini
20+
$RECYCLE.BIN/
21+
22+
# Package Managers
23+
yarn-error.log
24+
npm-debug.log
25+
26+
# Cache
27+
.awcache

63-testing-setup/karma.conf.js

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
const webpack = require('webpack');
2+
3+
module.exports = (config) => {
4+
config.set({
5+
browsers: ['Chrome'],
6+
files: [
7+
'node_modules/reflect-metadata/Reflect.js',
8+
'node_modules/zone.js/dist/zone.js',
9+
'node_modules/zone.js/dist/proxy.js',
10+
'node_modules/zone.js/dist/sync-test.js',
11+
'node_modules/zone.js/dist/async-test.js',
12+
'node_modules/zone.js/dist/jasmine-patch.js',
13+
'node_modules/zone.js/dist/long-stack-trace-zone.js',
14+
{ pattern: __dirname + '/**/*.spec.ts', watched: false }
15+
],
16+
frameworks: ['jasmine'],
17+
mime: { 'text/x-typescript': ['ts'] },
18+
preprocessors: {
19+
'*.js': ['sourcemap'],
20+
'**/*.spec.ts': ['sourcemap', 'webpack']
21+
},
22+
reporters: ['spec'],
23+
webpack: {
24+
context: __dirname,
25+
devtool: 'sourcemap',
26+
module: {
27+
rules: [
28+
{
29+
test: /\.html$/,
30+
loaders: ['raw-loader']
31+
},
32+
{
33+
test: /\.scss$/,
34+
loaders: ['raw-loader', 'sass-loader']
35+
},
36+
{
37+
test: /\.ts$/,
38+
loaders: ['awesome-typescript-loader', 'angular2-template-loader']
39+
}
40+
]
41+
},
42+
plugins: [
43+
new webpack.NamedModulesPlugin(),
44+
new webpack.SourceMapDevToolPlugin({
45+
filename: null,
46+
test: /\.(ts|js)($|\?)/i
47+
})
48+
],
49+
resolve: {
50+
extensions: ['.ts', '.js']
51+
}
52+
}
53+
});
54+
};

63-testing-setup/package.json

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"name": "angular-pro-src",
3+
"version": "0.1.0",
4+
"description": "Ultimate Angular: Angular Pro Source",
5+
"repository": {
6+
"url": "[email protected]:UltimateAngular/angular-pro-src.git",
7+
"type": "git"
8+
},
9+
"license": "MIT",
10+
"author": "Ultimate Angular",
11+
"dependencies": {
12+
"@angular/common": "4.0.0",
13+
"@angular/compiler": "4.0.0",
14+
"@angular/core": "4.0.0",
15+
"@angular/forms": "4.0.0",
16+
"@angular/http": "4.0.0",
17+
"@angular/platform-browser": "4.0.0",
18+
"@angular/platform-browser-dynamic": "4.0.0",
19+
"@angular/router": "4.0.0",
20+
"reflect-metadata": "0.1.10",
21+
"rxjs": "5.2.0",
22+
"ts-helpers": "1.1.2",
23+
"tslib": "1.6.0",
24+
"zone.js": "0.8.5"
25+
},
26+
"scripts": {
27+
"prestart": "webpack --config vendor/webpack.config.js",
28+
"start": "webpack-dev-server",
29+
"test": "karma start"
30+
},
31+
"devDependencies": {
32+
"@angular/compiler-cli": "4.0.0",
33+
"@types/core-js": "0.9.39",
34+
"@types/jasmine": "2.5.46",
35+
"@types/karma": "0.13.34",
36+
"@types/node": "7.0.11",
37+
"@ultimate/aot-loader": "0.1.15",
38+
"angular2-template-loader": "0.6.2",
39+
"awesome-typescript-loader": "3.1.2",
40+
"chalk": "1.1.3",
41+
"core-js": "2.4.1",
42+
"jasmine-core": "2.5.2",
43+
"json-server": "0.9.6",
44+
"karma": "1.5.0",
45+
"karma-chrome-launcher": "2.0.0",
46+
"karma-jasmine": "1.1.0",
47+
"karma-sourcemap-loader": "0.3.7",
48+
"karma-spec-reporter": "0.0.30",
49+
"karma-webpack": "2.0.3",
50+
"node-sass": "4.5.1",
51+
"progress-bar-webpack-plugin": "1.9.3",
52+
"raw-loader": "0.5.1",
53+
"resolve-url-loader": "2.0.2",
54+
"sass-loader": "6.0.3",
55+
"typescript": "2.2.1",
56+
"webpack": "2.3.2",
57+
"webpack-dev-server": "2.4.2"
58+
}
59+
}

63-testing-setup/tsconfig.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"angularCompilerOptions": {
3+
"entryModule": "app/app.module#AppModule",
4+
"genDir": "./ngfactory"
5+
},
6+
"compilerOptions": {
7+
"importHelpers": true,
8+
"target": "es5",
9+
"module": "es2015",
10+
"moduleResolution": "node",
11+
"emitDecoratorMetadata": true,
12+
"experimentalDecorators": true,
13+
"noEmitHelpers": true,
14+
"pretty": true,
15+
"sourceMap": true,
16+
"lib": ["es5", "es2015", "dom"],
17+
"strictNullChecks": false
18+
}
19+
}

0 commit comments

Comments
 (0)