Skip to content

Instantly share code, notes, and snippets.

Created Jul 14, 2020
What would you like to do?
const fsE = require('fs-extra');
const childProcess = require('child_process');
// Remove current build
// Copy front-end files
fsE.copySync('./src/public', './dist/public');
fsE.copySync('./src/views', './dist/views');
// Transpile the typescript files
childProcess.execSync('tsc --build');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment