Added initial Mocha testing setup
All checks were successful
continuous-integration/drone the build was successful
All checks were successful
continuous-integration/drone the build was successful
This commit is contained in:
parent
d381b636c8
commit
d557d45862
7 changed files with 474 additions and 34 deletions
12
Makefile
12
Makefile
|
|
@ -62,7 +62,7 @@ run: venv
|
|||
## node_modules
|
||||
### Install dependencies
|
||||
$(WEB_DIR)/node_modules: $(WEB_DIR)/package.json $(WEB_DIR)/yarn.lock
|
||||
@ cd web && yarn install
|
||||
@ yarn --cwd '$(WEB_DIR)' install
|
||||
|
||||
# Convenient alias
|
||||
node_modules: | $(WEB_DIR)/node_modules
|
||||
|
|
@ -71,19 +71,19 @@ node_modules: | $(WEB_DIR)/node_modules
|
|||
|
||||
## Formatting & linting
|
||||
flint: node_modules
|
||||
@ cd web && yarn run lint
|
||||
@ yarn --cwd '$(WEB_DIR)' run lint
|
||||
.PHONY: flint
|
||||
|
||||
fformat: node_modules
|
||||
@ cd web && yarn run format
|
||||
@ yarn --cwd '$(WEB_DIR)' run format
|
||||
.PHONY: fformat
|
||||
|
||||
|
||||
## Testing
|
||||
# TODO add testing command
|
||||
|
||||
ftest: node_modules
|
||||
@ yarn --cwd '$(WEB_DIR)' test
|
||||
|
||||
## Building
|
||||
fbuild: node_modules
|
||||
@ cd web && yarn build
|
||||
@ yarn --cwd '$(WEB_DIR)' build
|
||||
.PHONY: fbuild
|
||||
|
|
|
|||
Reference in a new issue