https://github.com/zebrajaeger/gulp-template-static-site
https://github.com/zebrajaeger/gulp-template-static-site
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zebrajaeger/gulp-template-static-site
- Owner: zebrajaeger
- Created: 2021-11-17T09:30:58.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-17T09:32:11.000Z (over 4 years ago)
- Last Synced: 2025-02-07T23:43:00.621Z (over 1 year ago)
- Language: JavaScript
- Size: 175 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic Frontend Build
## Prerequisite
- Needs nodejs >=16: https://nodejs.org/en/download/
- Global installed yarn
npm i -g yarn
## Install
yarn
## Build project
Unminified:
yarn run build-dev
Minified:
yarn run build
Develop/Serve:
yarn run serve
## Use Project
Start with
yarn run serve
- 'src' folder is for project specific code
- html entrypoint are all files like '_*.hbs'. These are [Handlebars templates](https://handlebarsjs.com/guide/).
Partials like '*
.hbs'. [Layouts are supported](https://github.com/shannonmoeller/handlebars-layouts).
- 'src/js' all javascript files concatenated, ordered by filename. So a numeric prefix like 050_hello.js is
recommended.
- 'src/css' all css/scss/sass files that starts with '_' are entry points. Other files are ignored and have to be
included from entry files. The leading underscore char will be removed from filename.
- 'src-vendor' is fpr 3rd party stuff like jquery
- same as 'src' folder except one thing: no hbs templates are available