Skip to content

pangolinjs/core

Repository files navigation

Pangolin.js Core

NPM version Dependencies JavaScript Standard Style

Framework for design system development with Nunjucks, Sass, and JavaScript.

Requires Node.js v12.10 or higher.

Installation

npm install -g @pangolinjs/cli

Project Creation

mkdir new-project
cd new-project
pangolin init

Usage

Start dev server

npm run dev

Build files for production

npm run build

Build for static file servers

npm run build:dev

Lint CSS and JavaScript

npm run lint:css
npm run lint:js

For more information take a look at the Pangolin.js docs.

Contribute

# Build UI
npm run prepare

# Testing
npm run test:unit

# Linting
npm run lint:css
npm run lint:js

Docker test

# Build image
docker build -t pangolinjs:dev .

# Start dev server
docker run -it -p 8080:8080 --entrypoint npm pangolinjs:dev run dev

# Build files
docker run -it --entrypoint npm pangolinjs:dev run build
docker run -it --entrypoint npm pangolinjs:dev run build:dev