Created
July 14, 2020 10:24
-
-
Save velotiotech/f7ea28602aec64ce1e6cc9b708684898 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fsE = require('fs-extra'); | |
const childProcess = require('child_process'); | |
// Remove current build | |
fsE.removeSync('./dist/'); | |
// Copy front-end files | |
fsE.copySync('./src/public', './dist/public'); | |
fsE.copySync('./src/views', './dist/views'); | |
// Transpile the typescript files | |
childProcess.execSync('tsc --build tsconfig.prod.json'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment