Skip to content

Commit 29d7815

Browse files
committed
wip: basic project structure - tests
1 parent 2f8398e commit 29d7815

File tree

5 files changed

+58
-2
lines changed

5 files changed

+58
-2
lines changed

gulpfile.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict';
2+
3+
const path = require('path');
4+
5+
// Register TS compilation.
6+
require('ts-node').register({
7+
project: path.join(__dirname, 'tools/gulp')
8+
});
9+
10+
require('./tools/gulp/gulpfile');

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"description": "Additional components for angular2-mdl that are not part of material design lite",
55
"scripts": {
6-
"test": "test"
6+
"test": "gulp test"
77
},
88
"repository": {
99
"type": "git",
@@ -19,10 +19,18 @@
1919
"angular2-mdl": "1.5.2"
2020
},
2121
"devDependencies": {
22+
"@types/node": "^6.0.34",
23+
"@types/gulp": "^3.8.29",
24+
"gulp": "^3.9.1",
25+
"gulp-typescript": "^2.13.6",
2226
"zone.js": "0.6.17",
2327
"rxjs": "5.0.0-beta.11",
2428
"systemjs": "0.19.38",
25-
"typings": "1.3.3"
29+
"typings": "1.3.3",
30+
"ts-node": "0.7.3",
31+
"tslint": "3.13.0",
32+
"typescript": "2.0.0",
33+
"typings": "1.3.1"
2634
},
2735
"keywords": [
2836
"angular2",

tools/gulp/gulpfile.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import './tasks/test';

tools/gulp/tasks/test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import * as gulp from 'gulp';
2+
//const karma = require('karma');
3+
import * as path from 'path';
4+
5+
gulp.task('test', [], (done: () => void) => {
6+
// new karma.Server({
7+
// configFile: path.join(PROJECT_ROOT, 'test/karma.conf.js')
8+
// }, done).start();
9+
10+
11+
done();
12+
});

tools/gulp/tsconfig.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"compilerOptions": {
3+
"declaration": true,
4+
"emitDecoratorMetadata": true,
5+
"experimentalDecorators": true,
6+
"lib": ["es6", "es2015"],
7+
"module": "commonjs",
8+
"moduleResolution": "node",
9+
"noEmitOnError": true,
10+
"noImplicitAny": true,
11+
"outDir": "../../dist/gulp",
12+
"rootDir": ".",
13+
"sourceMap": true,
14+
"target": "es5",
15+
"inlineSources": true,
16+
"stripInternal": true,
17+
"baseUrl": "",
18+
"typeRoots": [
19+
"../../node_modules/@types"
20+
],
21+
"types": [
22+
"node"
23+
]
24+
}
25+
}

0 commit comments

Comments
 (0)