-
-
Notifications
You must be signed in to change notification settings - Fork 441
Expand file tree
/
Copy pathdevelop.js
More file actions
22 lines (18 loc) · 718 Bytes
/
Copy pathdevelop.js
File metadata and controls
22 lines (18 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const chokidar = require( 'chokidar' );
const { buildJs, buildRenderer } = require( './build-script' );
const { buildCss } = require( './build-css' );
chokidar.watch( [ './src/js/**/*.ts', '!*.test.ts', '!./src/js/renderer/**/*.ts' ] ).on( 'change', async () => {
console.log( 'Building Script...' );
await buildJs()
console.log( 'Finished' );
} );
chokidar.watch( [ './src/js/renderer/**/*.ts', '!*.test.ts' ] ).on( 'change', async () => {
console.log( 'Building Renderer Script...' );
await buildRenderer()
console.log( 'Finished' );
} );
chokidar.watch( [ './src/css/**/*.scss' ] ).on( 'change', async () => {
console.log( 'Building CSS...' );
await buildCss()
console.log( 'Finished' );
} );