-
ES6
-
Stylus
-
Pug
- Clone this repo
npm install
| Command | Effect |
|---|---|
npm run dev |
start development server |
npm start |
build & start production server |
brunch b |
build once |
First, read this: now.sh index page
Then, run now in this repo and choose Docker image, and your website is online!
Just compile this directory as an docker image.
For people who prefer to host the website somewhere else:
- Delete
public/ - Run
brunch b -p - Copy
public/to the place where the website is served
| File | Description |
|---|---|
app/app.js |
user-defined script |
app/app.styl |
user-defined stylesheet |
app/assets/ |
static assets |
app/layouts/ |
pug templates & includes |
public/ |
generated build |
The generated website can only be hosted at the root of a domain/subdomain, for example:
example.com/*abc.example.com/*four.three.example.com/*user.github.io/*
This template does not work with the following URLs.
Changes to <a>, <link>, <script> targets/links are required.
user.github.io/project/*example.com/subwebsite/*