Permalink
Browse files

wip: basic project structure - tests

  • Loading branch information...
1 parent 2f8398e commit 29d7815b558a44d63eb6e7f6b3fb343ecd836a0d @mseemann committed Sep 12, 2016
Showing with 58 additions and 2 deletions.
  1. +10 −0 gulpfile.js
  2. +10 −2 package.json
  3. +1 −0 tools/gulp/gulpfile.ts
  4. +12 −0 tools/gulp/tasks/test.ts
  5. +25 −0 tools/gulp/tsconfig.json
View
@@ -0,0 +1,10 @@
+'use strict';
+
+const path = require('path');
+
+// Register TS compilation.
+require('ts-node').register({
+ project: path.join(__dirname, 'tools/gulp')
+});
+
+require('./tools/gulp/gulpfile');
View
@@ -3,7 +3,7 @@
"version": "0.0.0",
"description": "Additional components for angular2-mdl that are not part of material design lite",
"scripts": {
- "test": "test"
+ "test": "gulp test"
},
"repository": {
"type": "git",
@@ -19,10 +19,18 @@
"angular2-mdl": "1.5.2"
},
"devDependencies": {
+ "@types/node": "^6.0.34",
+ "@types/gulp": "^3.8.29",
+ "gulp": "^3.9.1",
+ "gulp-typescript": "^2.13.6",
"zone.js": "0.6.17",
"rxjs": "5.0.0-beta.11",
"systemjs": "0.19.38",
- "typings": "1.3.3"
+ "typings": "1.3.3",
+ "ts-node": "0.7.3",
+ "tslint": "3.13.0",
+ "typescript": "2.0.0",
+ "typings": "1.3.1"
},
"keywords": [
"angular2",
@@ -0,0 +1 @@
+import './tasks/test';
@@ -0,0 +1,12 @@
+import * as gulp from 'gulp';
+//const karma = require('karma');
+import * as path from 'path';
+
+gulp.task('test', [], (done: () => void) => {
+ // new karma.Server({
+ // configFile: path.join(PROJECT_ROOT, 'test/karma.conf.js')
+ // }, done).start();
+
+
+ done();
+});
@@ -0,0 +1,25 @@
+{
+ "compilerOptions": {
+ "declaration": true,
+ "emitDecoratorMetadata": true,
+ "experimentalDecorators": true,
+ "lib": ["es6", "es2015"],
+ "module": "commonjs",
+ "moduleResolution": "node",
+ "noEmitOnError": true,
+ "noImplicitAny": true,
+ "outDir": "../../dist/gulp",
+ "rootDir": ".",
+ "sourceMap": true,
+ "target": "es5",
+ "inlineSources": true,
+ "stripInternal": true,
+ "baseUrl": "",
+ "typeRoots": [
+ "../../node_modules/@types"
+ ],
+ "types": [
+ "node"
+ ]
+ }
+}

0 comments on commit 29d7815

Please sign in to comment.