A simple boilerplate for Pug and Bootstrap.
Make sure you have run the below packages globally.
npm install --global gulp-cli
oryarn global add gulp-cli
npm i serve -g
oryarn global add serve
(serve)npm i concurrently -g
oryarn global add concurrently
(concurrently)
git clone https://github.com/fecoderchinh/pug-bootstrap-boilerplate.git dpb
npm install
oryarn
npm run serve
oryarn serve
- enjoy.
Step 1: Run npm i
or yarn
at your local directory.
Step 2: Run docker compose up --build
Step 1: Run docker build -t dpb_image .
or docker compose up --build
then press Ctrl + C
to stop docker-compose
Step 2: Run docker run -p 4000:8888 dpb_image
Step 3: Goto localhost:4000 and check for the final works.
Copy all of assets into demo
directory and publish them on your server.
.
├── assets/ # The assets directory before compiling
├── bundles/ # The main directory that will include all of the compiled html
│ ├── pages/ # All html pages that compiled
├── js/ # Main folder for JS files
├── demo/ # Production mode directory
├── css/ # Main folder for cascade style files
├── node_modules/ # Store third party modules and initializers (e.g.: gulp, pug, etc)
├── templates/ # Main folder for pug template files
│ ├── pages/ # All pug pages
│ ├── partials/ # The elements of partial
│ ├── wrapper.pug # The root wrapper which will be extended within pages/
├── .dockerignore # Ignore the specifics in docker container
├── .gitignore # Ignore the specifics in github
├── docker-compose.yml # To run multi-container
├── Dockerfile # The task commands to run Docker
├── gulpfile.js # Setup Gulp tasks
├── package.json # The pakages list for this repo
├── serve.json # The configuration for serving