Frontsteps
Bootstrap 5 theme for Frontsteps
Requirements
- Node >=16.14.0 (see
package.json
)- Install NVM using Homebrew with
brew install nvm
- Install using NVM with
nvm install && nvm use
- Install NVM using Homebrew with
- Yarn >= 1.16.0 (see
package.json
)- Install using Homebrew with
brew install yarn
- Install using Homebrew with
Usage
- Install via npm with
npm i @dfreerksen/frontsteps
or via yarn withyarn add @dfreerksen/frontsteps
- Include assets
- Non-min:
@dfreerksen/frontsteps/dist/js/frontsteps
and@dfreerksen/frontsteps/dist/css/frontsteps
- Min:
@dfreerksen/frontsteps/dist/js/frontsteps.min
and@dfreerksen/frontsteps/dist/css/frontsteps.min
- Non-min:
Developer
Getting Started
- Install dependencies with
yarn
Scripts
-
yarn run build
builds the project - this builds assets, HTML, JS, and CSS intodist
-
yarn run build:assets
copies the files in thesrc/assets/
directory intodist
-
yarn run build:pug
compiles the Pug located in thesrc/pug/
directory intodist
-
yarn run build:scripts
compiles the Javascript files located in thesrc/js/
directory intodist
-
yarn run build:scss
compiles the SCSS files located in thesrc/scss/
directory intodist
-
yarn run clean
deletes thedist
directory to prepare for rebuilding the project -
yarn run start:debug
runs the project in debug mode -
yarn start
oryarn run start
runs the project, launches a live preview in your default browser, and watches for changes made to files insrc
Linting
Several tools are used to ensure code is styled, linted and formatted correctly.
ESLint
ESLint is for Javascript linting. ESLint is installed with Yarn.
Manually run ESLint for the repo
$ yarn run eslint .
Stylelint
Stylelint is for SASS and SCSS linting. Stylelint is installed with Yarn.
Manually run Stylelint for the repo
$ yarn run stylelint "**/*.scss"
pug-lint
pug-lint is a linter and style checker for Pug. pug-lint is installed with Yarn.
Manually run pug-lint for the repo
$ yarn run pug-lint ./src/pug/
Publishing
Publish a new version
- Note all changes in
CHANGELOG.md
- Change version in
package.json
- Make sure the version change gets added to the compiled asset files with
yarn run build
- Dry run to see the content changes
npm publish --dry-run
- Publish new version to NPM with
npm publish