Static website using npm scripts (cli version) to build assets. pug/jade, semantic-ui are used as front-end. A docker container will be provided for local development.
assets dir contains your source code.
assets/scripts/main.js is the entrypoint
Static files will be served from
- nvm/ruby installed on your OS.
- install npm dependencies.
npm run ruby:configto install the
- install gems from your
Gemfilefor scss (sass) with the bundler,
npm run install:gems- gem dependencies will be available in your
- expose a
token.jsfile at the root with a
Install and using the project locally (without Docker)
npm run dev, opens on port
:9090 and live-reload on port 9091.
npm run build.
jonlazarini/buildit-website docker image is available on Dockerhub.
running the container
exposes port :3030 from container to the client which maps http-server (:9090) for live reload
docker run -p 3030:9090 -itd jonlazarini/buildit-website npm run serve
spinning up a container
docker run -i -t <container ID | NAME> /bin/bash
- Refactor npm scripts to make them more readable
- Refactor scripts for CI/CD: prepush linting, code-coverage/test when deploying
- CI/CD integration
- Tasks for deploying
- Optimisations (images, builds)
npm run sass-convert can be used if you wish to convert scss files from
Build process inspired by [how to use NPM as a build tool][post] from Keith Cirkel. **