First you'll need a recent version of Node.js to work with Remixer-js.
Once node is installed, simply clone our repo (or your fork of it) and
run npm install
.
git clone git@github.com:material-foundation/material-remixer-js.git
cd material-remixer-js && npm install
The source code for Remixer-js is written in Typescript, and compiled to es5 javascript for distribution.
Use any of the following npm scripts to build dev or prod versions of Remixer-js.
# Builds an unminified version of Remixer-js within the build folder.
npm run build:dev
# Builds a minified version.
npm run build:prod
# Builds both unminified and minified versions.
npm run build
We use weback dev server for hosting and live-reloading of any code changes.
npm run dev
open http://localhost:8080
# Lint both CSS/LESS using lesshint.
npm run lint:css
# Lint typescript using tslint.
npm run lint:ts
# Lints both css and ts.
npm run lint
Testing uses the karma test runner with mocha flavored testing framework. Code coverage is reported by istanbul.
# Run tests and code coverage once.
npm run test
# Run with auto-watch indefinitely.
npm run test:watch