UNPKG

ipsos-components

Version:

Material Design components for Angular

48 lines (20 loc) 908 B
'use strict'; /** * Load the TypeScript compiler, then load the TypeScript gulpfile which simply loads all * the tasks. The tasks are really inside tools/gulp/tasks. */ 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');