Commit 91d6096e authored by Mickaël Bourgier's avatar Mickaël Bourgier
Browse files

👷 Add typescript build check to CI

parent 3abe3b48
Pipeline #1772 passed with stage
in 1 minute and 39 seconds
...@@ -6,6 +6,7 @@ test: ...@@ -6,6 +6,7 @@ test:
before_script: before_script:
- yarn install - yarn install
script: script:
- yarn build:check
- yarn test --coverage - yarn test --coverage
- yarn lint - yarn lint
- yarn prettier:check - yarn prettier:check
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
"module": "dist/es/index.js", "module": "dist/es/index.js",
"scripts": { "scripts": {
"build": "rm -rf dist && tsc --rootDir ./src --outDir ./dist --declaration", "build": "rm -rf dist && tsc --rootDir ./src --outDir ./dist --declaration",
"build:check": "tsc --noEmit",
"dev": "WEBPACK_TARGET=docs yarn docs:dev", "dev": "WEBPACK_TARGET=docs yarn docs:dev",
"docs:build": "rm -rf docs/dist && NODE_ENV=production WEBPACK_TARGET=docs webpack", "docs:build": "rm -rf docs/dist && NODE_ENV=production WEBPACK_TARGET=docs webpack",
"docs:dev": "webpack-dev-server --hot", "docs:dev": "webpack-dev-server --hot",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment