Skip to content

pangolinjs/core

Repository files navigation

Front End Styleguide

NPM version Dependencies JavaScript Standard Style

Pattern library framework for styleguide driven development with Sass, ES6+ and Nunjucks.

Installation

# Yarn
yarn global add front-end-styleguide-cli

# npm
npm install -g front-end-styleguide-cli

Project Creation

mkdir new-project
cd new-project
front-end-styleguide init

Usage

# Start dev server
yarn dev
# or
npm run dev

# Build files for production
yarn build
# or
npm run build

# Create static styleguide
yarn build:dev
# or
npm run build:dev

# Run linting
yarn lint
# or
npm run lint

# Run unit and e2e tests
yarn test
# or
npm run test

For more information take a look at the templates of the init package.

Test the core package

# Linting
yarn lint
# or
npm run lint

# Automated testing
yarn test
# or
npm run test

# Dev server testing
yarn test:dev
# or
npm run test:dev