Skip to content

Commit

Permalink
Simpler builds (ampproject#630)
Browse files Browse the repository at this point in the history

* 0.16.0

* 0.17.0

* Tell Ava to use ESM for running tests, reduce the chain required to build code and allows for incremental typescript compilation since the targets are the same always

* formatting for package.json
  • Loading branch information
kristoferbaxter authored Aug 25, 2019
1 parent 6cb6ed3 commit cbc2316
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 44 deletions.
6 changes: 0 additions & 6 deletions config/tsconfig.build.main-thread.json

This file was deleted.

6 changes: 0 additions & 6 deletions config/tsconfig.build.worker-thread.json

This file was deleted.

6 changes: 0 additions & 6 deletions config/tsconfig.test.main-thread.json

This file was deleted.

6 changes: 0 additions & 6 deletions config/tsconfig.test.worker-thread.json

This file was deleted.

6 changes: 0 additions & 6 deletions config/tsconfig.tests.json

This file was deleted.

6 changes: 0 additions & 6 deletions config/tsconfig.tests.main-thread.json

This file was deleted.

18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@
"author": "The AMP HTML Authors",
"license": "Apache-2.0",
"scripts": {
"tsc:test:worker": "tsc -p config/tsconfig.test.worker-thread.json",
"tsc:test:main": "tsc -p config/tsconfig.test.main-thread.json",
"tsc:test:tests": "tsc -p config/tsconfig.tests.json",
"tsc:test:tests-main": "tsc -p config/tsconfig.tests.main-thread.json",
"tsc:build:worker": "tsc -p config/tsconfig.build.worker-thread.json",
"tsc:build:main": "tsc -p config/tsconfig.build.main-thread.json",
"tsc:worker": "tsc -p src/worker-thread/tsconfig.json",
"tsc:main": "tsc -p src/main-thread/tsconfig.json",
"tsc:tests": "tsc -p src/test/tsconfig.json",
"tsc:tests-main": "tsc -p src/test/main-thread/tsconfig.json",
"clean": "rimraf output dist",
"pretest": "npm-run-all --parallel tsc:test:*",
"pretest": "npm-run-all --parallel tsc:*",
"test": "ava -v",
"pre~rollup": "npm-run-all --parallel tsc:build:*",
"pre~rollup": "npm-run-all --parallel tsc:worker tsc:main",
"~rollup": "rollup --config config/rollup.config.js",
"lint:worker": "tslint -c config/tslint.json -p src/worker-thread/",
"lint:main": "tslint -c config/tslint.json -p src/main-thread/",
Expand Down Expand Up @@ -116,6 +114,10 @@
"cjs": true
},
"ava": {
"require": [
"esm"
],
"babel": false,
"files": [
"output/test/**/*.test.js"
]
Expand Down

0 comments on commit cbc2316

Please sign in to comment.