build: image build and global install targets
This commit is contained in:
parent
ef2a9c9cf2
commit
8368271a1c
15
Makefile
15
Makefile
|
@ -79,17 +79,23 @@ todo:
|
|||
|
||||
# build targets
|
||||
build: ## builds, bundles, and tests the application
|
||||
build: bundle
|
||||
build: build-bundle
|
||||
|
||||
bundle: node_modules
|
||||
build-bundle: node_modules
|
||||
$(NODE_BIN)/rollup --config $(CONFIG_PATH)/rollup.js
|
||||
|
||||
test: bundle
|
||||
build-image: build-bundle
|
||||
docker build $(ROOT_PATH)
|
||||
|
||||
test: build-bundle
|
||||
$(NODE_BIN)/mocha $(TARGET_PATH)/test.js
|
||||
|
||||
yarn-install: ## install dependencies from package and lock file
|
||||
yarn
|
||||
|
||||
yarn-global: ## install bundle as a global tool
|
||||
yarn global add file:$(ROOT_PATH)
|
||||
|
||||
yarn-update: ## check yarn for outdated packages
|
||||
yarn upgrade-interactive --latest
|
||||
|
||||
|
@ -122,6 +128,9 @@ upload-codecov:
|
|||
codecov --disable=gcov --file=$(TARGET_PATH)/coverage/lcov.info --token=$(shell echo "${CODECOV_SECRET}" | base64 -d)
|
||||
|
||||
# run targets
|
||||
run-help: ## print the help
|
||||
@node out/index.js --help
|
||||
|
||||
run-rules: ## validate the rules directory
|
||||
find $(ROOT_PATH)/rules -maxdepth 1 -name '*.yml' | while read file; \
|
||||
do \
|
||||
|
|
|
@ -60,5 +60,6 @@
|
|||
"standard-version": "6.0.1",
|
||||
"typescript": "3.5.2",
|
||||
"yargs": "13.2.4"
|
||||
}
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue