Files
frontend-component-footer/Makefile
David Joy 9df6e12174 refactor: dev server, config, and babel the build
BREAKING CHANGE: Defensive breaking change as this drastically changes the repo and how it gets consumed.
2019-07-03 11:10:59 -04:00

17 lines
510 B
Makefile
Executable File

requirements:
npm install
# This target is used by Travis.
validate-no-uncommitted-package-lock-changes:
# Checking for package-lock.json changes...
git diff --exit-code package-lock.json
build:
rm -rf ./dist
./node_modules/.bin/babel src --out-dir dist --source-maps --ignore **/*.test.jsx,**/*.stories.jsx,**/__mocks__,**/__snapshots__,**/setupTest.js --copy-files
rm -rf ./dist/example
rm -rf dist/**/*.test.jsx
rm -rf dist/**/__snapshots__
rm -rf dist/**/__mocks__
rm -rf dist/lib/setupTest.js