Skip to content

Commit 6fbb4b8

Browse files
committed
cleanup dev dependencies
1 parent b38850a commit 6fbb4b8

6 files changed

+8
-424
lines changed

karma.conf.js

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,5 @@
11
'use strict';
2-
let path = require('path');
32

4-
let npmLifecycleEvent = process.env.npm_lifecycle_event || '';
5-
let isSingleRun = npmLifecycleEvent === 'test';
6-
7-
module.exports = function(config) {
8-
config.set({
9-
basePath: '',
10-
11-
frameworks: ['jasmine'],
12-
13-
files: [
14-
{ pattern: 'src/app/test.ts' }
15-
],
16-
17-
preprocessors: {
18-
'src/app/test.ts': ['webpack', 'sourcemap']
19-
},
20-
21-
reporters: ['dots'],
22-
23-
webpack: require('./webpack.config'),
24-
webpackServer: { noInfo: true },
25-
26-
port: 9876,
27-
28-
colors: true,
29-
30-
logLevel: config.LOG_INFO,
31-
32-
browsers: ['PhantomJS'],
33-
34-
autoWatch: !isSingleRun,
35-
singleRun: isSingleRun
36-
});
37-
};
3+
module.exports = require('angular2-config-generator').karma(
4+
require('./webpack.config')
5+
);

package.json

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
"name": "angular2-phonecat",
33
"version": "1.0.0",
44
"description": "Angular 2 port of the original Angular Phonecat application with Webpack",
5-
"main": "client/app/main.js",
5+
"main": "src/app/main.js",
66
"scripts": {
7-
"aot": "ngc -p ./tsconfig.aot.json",
87
"build": "webpack",
98
"deploy": "gh-pages -d dist",
109
"lint": "tslint \"src/**/*.ts\"",
@@ -46,33 +45,7 @@
4645
"zone.js": "0.6.25"
4746
},
4847
"devDependencies": {
49-
"@types/core-js": "0.9.34",
50-
"@types/jasmine": "2.2.34",
51-
"@types/node": "6.0.41",
52-
"angular2-template-loader": "0.5.0",
53-
"awesome-typescript-loader": "2.2.4",
54-
"codelyzer": "1.0.0-beta.0",
55-
"copy-webpack-plugin": "3.0.1",
56-
"css-loader": "0.25.0",
57-
"extract-text-webpack-plugin": "2.0.0-beta.4",
58-
"file-loader": "0.9.0",
59-
"gh-pages": "0.11.0",
60-
"html-loader": "0.4.4",
61-
"http-server": "0.9.0",
62-
"jasmine-core": "2.5.2",
63-
"karma": "1.3.0",
64-
"karma-jasmine": "1.0.2",
65-
"karma-phantomjs-launcher": "1.0.2",
66-
"karma-sourcemap-loader": "0.3.7",
67-
"karma-webpack": "1.8.0",
68-
"source-map-loader": "0.1.5",
69-
"style-loader": "0.13.1",
70-
"tslint": "3.15.1",
71-
"tslint-loader": "2.1.5",
72-
"typescript": "2.0.3",
73-
"url-loader": "0.5.7",
74-
"webpack": "2.1.0-beta.25",
75-
"webpack-dev-server": "2.1.0-beta.7",
76-
"webpack-merge": "0.14.1"
48+
"angular2-config-generator": "github:blacksonic/angular2-config-generator",
49+
"http-server": "0.9.0"
7750
}
7851
}

tsconfig.aot.json

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

tslint.json

Lines changed: 1 addition & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -1,139 +1,3 @@
11
{
2-
"extends": "tslint:recommended",
3-
"rulesDirectory": [
4-
"node_modules/codelyzer"
5-
],
6-
"rules": {
7-
"member-access": false,
8-
"member-ordering": [
9-
true,
10-
"public-before-private",
11-
"static-before-instance",
12-
"variables-before-functions"
13-
],
14-
"no-any": false,
15-
"no-inferrable-types": false,
16-
"no-internal-module": true,
17-
"no-var-requires": false,
18-
"typedef": false,
19-
"typedef-whitespace": [
20-
true,
21-
{
22-
"call-signature": "nospace",
23-
"index-signature": "nospace",
24-
"parameter": "nospace",
25-
"property-declaration": "nospace",
26-
"variable-declaration": "nospace"
27-
},
28-
{
29-
"call-signature": "space",
30-
"index-signature": "space",
31-
"parameter": "space",
32-
"property-declaration": "space",
33-
"variable-declaration": "space"
34-
}
35-
],
36-
37-
"ban": false,
38-
"curly": false,
39-
"forin": true,
40-
"label-position": true,
41-
"label-undefined": true,
42-
"no-arg": true,
43-
"no-bitwise": true,
44-
"no-conditional-assignment": true,
45-
"no-console": [
46-
true,
47-
"debug",
48-
"info",
49-
"time",
50-
"timeEnd",
51-
"trace"
52-
],
53-
"no-construct": true,
54-
"no-debugger": true,
55-
"no-duplicate-key": true,
56-
"no-duplicate-variable": true,
57-
"no-empty": false,
58-
"no-eval": true,
59-
"no-null-keyword": false,
60-
"no-shadowed-variable": true,
61-
"no-string-literal": false,
62-
"no-switch-case-fall-through": true,
63-
"no-unreachable": true,
64-
"no-unused-expression": true,
65-
"no-unused-variable": false,
66-
"no-use-before-declare": true,
67-
"no-var-keyword": true,
68-
"radix": true,
69-
"switch-default": true,
70-
"triple-equals": [
71-
true,
72-
"allow-null-check"
73-
],
74-
"use-strict": [
75-
true,
76-
"check-module"
77-
],
78-
79-
"eofline": true,
80-
"indent": [
81-
true,
82-
"spaces"
83-
],
84-
"max-line-length": [
85-
true,
86-
120
87-
],
88-
"no-require-imports": false,
89-
"no-trailing-whitespace": true,
90-
"object-literal-sort-keys": false,
91-
"trailing-comma": [
92-
true,
93-
{
94-
"multiline": false,
95-
"singleline": "never"
96-
}
97-
],
98-
99-
"align": false,
100-
"class-name": true,
101-
"comment-format": [
102-
true,
103-
"check-space"
104-
],
105-
"interface-name": false,
106-
"jsdoc-format": true,
107-
"no-consecutive-blank-lines": false,
108-
"no-constructor-vars": false,
109-
"one-line": [
110-
true,
111-
"check-open-brace",
112-
"check-catch",
113-
"check-else",
114-
"check-finally",
115-
"check-whitespace"
116-
],
117-
"quotemark": [
118-
true,
119-
"single",
120-
"avoid-escape"
121-
],
122-
"semicolon": [true, "always"],
123-
"variable-name": [
124-
true,
125-
"check-format",
126-
"allow-leading-underscore",
127-
"ban-keywords"
128-
],
129-
"whitespace": [
130-
true,
131-
"check-branch",
132-
"check-decl",
133-
"check-operator",
134-
"check-separator",
135-
"check-type"
136-
],
137-
"import-destructuring-spacing": true
138-
}
2+
"extends": "angular2-config-generator"
1393
}

webpack.common.config.js

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

0 commit comments

Comments
 (0)