Skip to content
Snippets Groups Projects
Commit dc921b3c65e8 authored by Arnaud Vergnet's avatar Arnaud Vergnet :sun_with_face:
Browse files

feat: add js templates

parent 2d3936f272f6
No related branches found
No related tags found
1 merge request!32feat: add js templates
Pipeline #124561 passed
js-build:
stage: build
image: node:14-alpine
needs:
- js-install
script:
- '[ -e yarn.lock ] && yarn build || npm run build'
js-install:
stage: install
image: node:14-alpine
script:
- '[ -e yarn.lock ] && yarn || npm i'
artifacts:
expire_in: 1 day
paths:
- node_modules
eslint:
js-lint:
stage: lint
image: node:14-alpine
......@@ -2,6 +2,6 @@
stage: lint
image: node:14-alpine
before_script:
- '[ -e yarn.lock ] && yarn || npm i'
needs:
- js-install
script:
- '[ -e yarn.lock ] && yarn lint || npm run lint'
js-test:
stage: test
image: node:14-alpine
needs:
- js-install
script:
- '[ -e yarn.lock ] && yarn test || npm run test'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment