Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
chore: add TypeScript build step (#675)
Browse files Browse the repository at this point in the history
* feat: setup typescript

* feat: emit into "dist" directory

* feat: make tests green again

* feat: rename first test to use typescript

* feat: add prepack instructions

* feat: migrate first src file

* feat: please formatter

* feat: please prettier

* feat: build before linting

* feat: use WIP eslint config, ignore fixtures

* feat: don't need to build before linting w/ new eslint

* Revert "feat: don't need to build before linting w/ new eslint"

This reverts commit 949f862.

* feat: make dist/bin.js executable

* chore: exec dist file

* feat: correct order for stubbing

* feat: upgrade target to es6

* feat: remove @ava/typescript and run tests against dist folder

* chore: make prettier happy

* feat: support linting README.md

* chore: use npm prerelease of @netlify/eslint-config-node

as recommended in #675 (comment)

* feat: make prepush hook run tsc, too

* feat: don't forget to run "build" in CI

* chore: update eslint-config to release

* chore: extend linting and formatting to TS files

* refactor: convert export type

* chore: dont emit sourcemaps

* chore: omit tsbuildinfo from dist files

* chore: remove tsbuildinfo from .gitignore, only ship .js and .d.ts

Co-authored-by: Netlify Team Account 1 <netlify-team-account-1@users.noreply.github.com>
Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com>
  • Loading branch information
3 people committed Oct 6, 2021
1 parent 9eb9ea6 commit 1e3ac5a
Show file tree
Hide file tree
Showing 9 changed files with 443 additions and 54 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ node_modules
benchmarks/fixtures/*/package*.json
benchmarks/output
.delta-t.json
/dist
1 change: 1 addition & 0 deletions benchmarks/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
npm ci --prefix benchmarks/fixtures
npm run build
node benchmarks/zisi.js > .delta.largeDepsZisi
node benchmarks/esbuild.js > .delta.largeDepsEsbuild

1 comment on commit 1e3ac5a

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⏱ Benchmark results

largeDepsEsbuild: 11.6s

largeDepsZisi: 57.8s

Please sign in to comment.