Repository URL to install this package:
|
Version:
2.1.0 ▾
|
@skava/ui-presets
/
Makefile
|
|---|
dev:
yarn storybook
# todo - to yarn link, we need to output somewherre else
# that means we need to update aliases since they go to dist
# otherwise make dev outputs ui-component-library storybook only code
# overwriting the build
#
# babel:
# NODE_ENV=development BABEL_ENV=development npx babel dist/src --out-dir dist/src || true
babel:
NODE_ENV=development BABEL_ENV=development npx babel dist --out-dir dist || true
precompile:
rm -fr dist
# && $(MAKE) esnext && $(MAKE) es6
compile:
$(MAKE) precompile && $(MAKE) commonjs
commonjs:
npx tsc --project tsconfig.base.json --module commonjs || true
esnext:
npx tsc --project tsconfig.base.json --module esnext --outDir dist/esnext || true
es6:
npx tsc --project tsconfig.base.json --module es6 --outDir dist/module || true
# --allowJS=false
types:
npx tsc --declaration --declarationDir dist/typings || true
JENKINS:
yarn install
publish:
$(MAKE) compile && $(MAKE) babel
babel_windows:
NODE_ENV=development BABEL_ENV=development npx babel dist --out-dir dist
compile_windows:
npx tsc --project tsconfig.base.json
publish_windows:
$(MAKE) compile_windows && $(MAKE) babel_windows
# @todo add prepush
lint:
yarn tslint --project tsconfig.json --format stylish