Use this Template to quickly build UI snippets.
- TypeScript (compiling directly to ES5)
- postCSS with several plugins:
- Webpack
- EditorConfig
- Linting
- VS Code Extensions
- Clone repository
git clone https://github.com/tamino-martinius/ui-snippets-template
- or go to GitHub and download as zip
- Rename and enter folder
- install packages
npm install
Node.js>= 8.10
suggested for module syntax andasync
/await
without TypeScript
Tip for VS Code Users:
Add code
command to your Terminal by pressing cmd + shift + p and search for Shell Command: Install 'code' command to PATH
.
Now you can open the project using this command:
code .
Rename /src/index.ts
to /src/index.js
before starting the Server.
Just don't use the additional postCSS features.
npm run start
npm run build
npm run deploy