Use this template through the GitHub "Use this template" function, or:
set project=my-new-project
git clone --depth=1 https://github.com/lukesrw/template.git %project%
rmdir /S /Q %project%\.git
git init %project%
- Installs the "Packages (global)" listed below
- Installs the "Packages (local)" listed below
- Clones the "Init Folder" listed below from Full Template
node tools/init <feature1> <feature2> ...
- Compiles to the "Compile Folder"
- Watches and compiles any changes in the "Init Folder"
node tools/build
Other node scripts can also optionally require the build script and execute it manually:
const build = require("../tools/build");
build();| Feature | Init Folder | Compile Folder | Packages (global) | Packages (local) |
|---|---|---|---|---|
| TypeScript ("ts") | ts | js | typescript |
@types/node |
| Vue | vue | dist | @vue/cli-servicevue-template-compiler |
vuevue-router |
| Scss | scss | dist/css/scss public/css/scss |
sass |
|
| Prettier | prettier* | |||
| Eslint | eslint* | |||
| Git | git* | |||
| Electron | electron* | js | electron@electron-forge/clielectron-settings |
|
| Extensions | extensions* |
*files cloned into root without folder