build: publish build tools on github (#5458)

* Publishes the material2-build-tools on Github.
This commit is contained in:
Paul Gschwendtner
2017-07-06 01:29:52 +02:00
committed by mmalerba
parent 45624077c6
commit 0675568d03
8 changed files with 137 additions and 189 deletions
-9
View File
@@ -7,19 +7,10 @@
const path = require('path');
const tsconfigPath = path.join(__dirname, 'tools/gulp/tsconfig.json');
const tsconfig = require(tsconfigPath);
// Register TS compilation.
require('ts-node').register({
project: tsconfigPath
});
// The gulp tsconfig file maps specific imports to relative paths. In combination with ts-node
// this doesn't work because the JavaScript output will still refer to the imports instead of
// to the relative path. Tsconfig-paths can be used to support path mapping inside of Node.
require("tsconfig-paths").register({
baseUrl: path.dirname(tsconfigPath),
paths: tsconfig.compilerOptions.paths
});
require('./tools/gulp/gulpfile');