grumbler-scripts

v6.0.0
Javascript module template.
template

setup

npm install && npm run flow-typed

lint

eslint --ext js,jsx config/ test/ *.js

flow-typed

flow-typed install

flow

flow

karma

cross-env NODE_ENV=test babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/karma start

babel

babel ./config --ignore=node_modules --ignore=./config/types.js --out-dir ./config

webpack

babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/webpack --progress

test

npm run lint && npm run flow && npm run test-babel && npm run test-webpack && npm run find-eslint-rules

build

npm run test && npm run babel && npm run webpack

release

./publish.sh

release:patch

./publish.sh patch

release:minor

./publish.sh minor

release:major

./publish.sh major

clean

rimraf dist coverage

reinstall

rimraf flow-typed && rimraf node_modules && npm install && flow-typed install

debug

cross-env NODE_ENV=debug

prepublishOnly

npm run babel

postpublish

git checkout config

find-eslint-rules

eslint-find-rules --unused --no-error ./config/.eslintrc.js

test-babel

babel --config-file ./config/.babelrc-node test/* > /dev/null && babel --config-file ./config/.babelrc-browser test/* > /dev/null

test-webpack

babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/webpack --progress

check-updates

npm-check-updates
npm i grumbler-scripts

Metadata

  • Unknown
  • Whatever
  • Unknown
  • released 2/17/2022

Downloads