1.0.5 • Published 2 years ago
@dfreerksen/frontsteps v1.0.5
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/frontstepsor via yarn withyarn add @dfreerksen/frontsteps - Include assets
- Non-min:
@dfreerksen/frontsteps/dist/js/frontstepsand@dfreerksen/frontsteps/dist/css/frontsteps - Min:
@dfreerksen/frontsteps/dist/js/frontsteps.minand@dfreerksen/frontsteps/dist/css/frontsteps.min
- Non-min:
Developer
Getting Started
- Install dependencies with
yarn
Scripts
yarn run buildbuilds the project - this builds assets, HTML, JS, and CSS intodistyarn run build:assetscopies the files in thesrc/assets/directory intodistyarn run build:pugcompiles the Pug located in thesrc/pug/directory intodistyarn run build:scriptscompiles the Javascript files located in thesrc/js/directory intodistyarn run build:scsscompiles the SCSS files located in thesrc/scss/directory intodistyarn run cleandeletes thedistdirectory to prepare for rebuilding the projectyarn run start:debugruns the project in debug modeyarn startoryarn run startruns 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