Skip to content

Commit

Permalink
chore: update build and test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Nov 7, 2022
1 parent 9ffaeb9 commit 6f738e2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ jobs:
- *restore-cache
- *install-deps
- *build-packages
- *run-unit-tests
- run:
name: Test (coverage)
command: npm run test:cov
- run:
name: Collect coverage
command: npm run coverage
Expand Down
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,23 @@
"author": "Kamil Mysliwiec",
"scripts": {
"build": "tsc -b -v packages",
"build:dev": "tsc -b -v packages --watch",
"postbuild": "npm run move:node_modules",
"changelog": "lerna-changelog",
"clean": "tsc -b --clean packages",
"build:dev": "tsc -b -v packages --watch",
"prebuild:prod": "npm run clean",
"build:prod": "tsc -b -v packages",
"changelog": "lerna-changelog",
"clean": "tsc -b --clean packages",
"move:samples": "gulp move:samples",
"move:node_modules": "gulp move:node_modules",
"build:samples": "gulp install:samples && npm run build && npm run move:samples && gulp build:samples && gulp test:samples && gulp test:e2e:samples",
"codechecks:benchmarks": "codechecks ./tools/benchmarks/check-benchmarks.ts",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"format": "prettier \"**/*.ts\" \"packages/**/*.json\" --ignore-path ./.prettierignore --write && git status",
"postinstall": "opencollective",
"test": "nyc mocha packages/**/*.spec.ts --reporter spec",
"test:integration": "mocha \"integration/*/{,!(node_modules)/**/}/*.spec.ts\" --reporter spec",
"test": "mocha packages/**/*.spec.ts",
"pretest:cov": "npm run clean",
"test:cov": "nyc mocha packages/**/*.spec.ts --reporter spec",
"test:integration": "mocha \"integration/*/{,!(node_modules)/**/}/*.spec.ts\"",
"test:docker:up": "docker-compose -f integration/docker-compose.yml up -d",
"test:docker:down": "docker-compose -f integration/docker-compose.yml down",
"lint": "concurrently 'npm run lint:packages' 'npm run lint:integration' 'npm run lint:spec'",
Expand Down Expand Up @@ -200,7 +202,9 @@
"packages/**/*.ts"
],
"exclude": [
"packages/**/*.spec.ts",
"**/*.js",
"**/*.d.ts",
"**/*.spec.ts",
"packages/**/adapters/*.ts",
"packages/**/nest-*.ts",
"packages/**/test/**/*.ts",
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"noUnusedLocals": false,
"removeComments": true,
Expand All @@ -11,7 +10,7 @@
"useUnknownInCatchVariables": false,
"target": "es6",
"sourceMap": true,
"allowJs": true,
"allowJs": false,
"outDir": "dist",
"lib": ["es7"],
"paths": {
Expand Down
5 changes: 0 additions & 5 deletions tsconfig.spec.json

This file was deleted.

0 comments on commit 6f738e2

Please sign in to comment.