@brudi-toolbox/next
v2.0.8
Published
brudi Toolbox for NextJS
Downloads
263
Readme
brudi Toolbox NextJS Helper
Helper library for brudi Mesh next developers.
Issues
There is currently an issue with css-loader
> 1.0.1. We therefore have to
install 1.0.1 explicitly for now.
See https://github.com/zeit/next-plugins/issues/392
Installation
Install the package with
yarn add -D @brudi-toolbox/next
or
npm install --save-dev @brudi-toolbox/next
Development
Quickstart
To install dependencies with Yarn, run:
$ yarn install
Linting
NOTE: The linter will run against everything in the lib
directory.
JavaScript Linting
This assumes you have eslint and eslint-watch installed. If you don't, run the following:
$ yarn global add eslint eslint-watch
To run the linter once:
$ yarn lint:js
To run the watch task:
$ yarn lint:js:watch
Build
NOTE: When you run build
, Babel will create a build
directory. This is what users
will interact with when they use the brudi Toolbox React NextJS Helper library. Nothing in lib
gets shipped with the
published module.
Run once:
$ yarn build
Run the watch script:
$ yarn build:watch