forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
24 lines (19 loc) · 705 Bytes
/
gulpfile.js
File metadata and controls
24 lines (19 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
'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 projectDir = __dirname;
const tsconfigPath = path.join(projectDir, 'tools/gulp/tsconfig.json');
const tsconfig = require(tsconfigPath);
if (projectDir.includes(' ')) {
console.error('Error: Cannot run the Angular Material build tasks if the project is ' +
'located in a directory with spaces in between. Please rename your project directory.');
process.exit(1);
}
// Register TS compilation.
require('ts-node').register({
project: tsconfigPath
});
require('./tools/gulp/gulpfile');