Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / @skava/ui   js

Repository URL to install this package:

Version: 4.2.0-a11y.0 

/ 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

BUILD_DOCKER:
	yarn run storybook:build


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

# copy & mv, but can copy with rename as per below
# cp -f package.build.json dist;
# mv dist/package.build.json dist/package.json;
cleanup:
	pwd;\
	rm -rf ./dist/node_modules;\
	rm -rf ./dist/config;\
	rm -rf ./dist/stories;\
	rm -rf ./dist/typings/stories;\
	rm -rf ./dist/typings/node_modules;\
	pwd;\
	cp -f package.build.json dist/package.json;\
	pwd;\
	@echo 'done cleanup';\

# @todo rimraf dist/src & typings => it is exporting old files!!!
# @todo rimraf dist/node_modules & .git
# git commit --ammend "build";
automated:
	make publish;\
	cp -R package.json dist;\
	cd dist;\
	rm -f node_modules;\
	rm -f config;\
	git init;\
	git remote add origin https://bitbucket.org/skava-admin/ui-component-library.git;\
	git checkout -b branch_name_here;\
	git add -A
	git commit -m "build 0.4.0";\
	git push origin HEAD:branch_name_here;\

# @todo add prepush
lint:
	yarn tslint --project tsconfig.json --format stylish