Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris committed Apr 19, 2021
1 parent cab8782 commit b7f742f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ yarn esbuild-node:dev
yarn esbuild-node:watch
```

You can generate a full build with both `tsc` and `esbuild` with `yarn build-all`.
You can generate a full clean build with `yarn build-all` (which uses both `tsc` and `esbuild`).

* The `package.json` includes `scripts` for various esbuild commands: [see here](https://github.com/metachris/typescript-boilerplate/blob/master/package.json#L23)
* `package.json` includes `scripts` for various esbuild commands: [see here](https://github.com/metachris/typescript-boilerplate/blob/master/package.json#L23)
* `esbuild` has a `--global-name=xyz` flag, to store the exports from the entry point in a global variable. See also the [esbuild "Global name" docs](https://esbuild.github.io/api/#global-name).
* Read more about the esbuild setup [here](https://www.metachris.com/2021/04/starting-a-typescript-project-in-2021/#esbuild).
* esbuild for the browser uses the IIFE (immediately-invoked function expression) format, which executes the bundled code on load (see also https://github.com/evanw/esbuild/issues/29)


## Tests with Jest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "typescript-boilerplate-2021",
"version": "0.4.1",
"description": "Boilerplate for a TypeScript library",
"description": "Boilerplate for TypeScript projects (Node.js and browser modules)",
"author": "Chris Hager <[email protected]>",
"repository": "https://github.com/metachris/typescript-boilerplate",
"license": "MIT",
Expand Down

0 comments on commit b7f742f

Please sign in to comment.