Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add links to top with jump2header #723

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

Despite all the recent hype, setting up a new TypeScript (x React) library can be tough. Between [Rollup](https://github.com/rollup/rollup), [Jest](https://github.com/facebook/jest), `tsconfig`, [Yarn resolutions](https://yarnpkg.com/en/docs/selective-version-resolutions), ESLint, and getting VSCode to play nicely....there is just a whole lot of stuff to do (and things to screw up). TSDX is a zero-config CLI that helps you develop, test, and publish modern TypeScript packages with ease--so you can focus on your awesome new library and not waste another afternoon on the configuration.

<a name="toc"></a>

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

Expand Down Expand Up @@ -58,6 +60,8 @@ TSDX comes with the "battery-pack included" and is part of a complete TypeScript
- Jest test runner setup with sensible defaults via `tsdx test`
- Zero-config, single dependency

[🔝](#toc)<!-- Link generated with jump2header -->
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
[🔝](#toc)<!-- Link generated with jump2header -->
[🔝 Back to Top 🔝](#toc)<!-- Link generated with jump2header -->

Symbols are not the most accessible and this could be missed easily, so should add some text to each of these.


## Quick Start

```bash
Expand Down Expand Up @@ -102,6 +106,8 @@ If you want to customize eslint you can add an `eslint` block to your package.js
Bundles and packages to the `dist` folder.
Runs automatically when you run either `npm publish` or `yarn publish`. The `prepare` script will run the equivalent of `npm run build` or `yarn build`. It will also be run if your module is installed as a git dependency (ie: `"mymodule": "github:myuser/mymodule#some-branch"`) so it can be depended on without checking the transpiled code into git.

[🔝](#toc)<!-- Link generated with jump2header -->

## Optimizations

Aside from just bundling your module into different formats, TSDX comes with some optimizations for your convenience. They yield objectively better code and smaller bundle sizes.
Expand Down Expand Up @@ -300,6 +306,8 @@ Note: We don't provide this function for you, it is up to you how you want it to

_TODO: Simple guide to host error codes to be completed_

[🔝](#toc)<!-- Link generated with jump2header -->

## Customization

### Rollup
Expand Down Expand Up @@ -385,6 +393,8 @@ You can add your own `jest.config.js` to the root of your project and TSDX will

You can add your own `.eslintrc.js` to the root of your project and TSDX will **deep merge** it with [its own ESLint config](./src/createEslintConfig.ts).

[🔝](#toc)<!-- Link generated with jump2header -->

## Inspiration

TSDX is ripped out of [Formik's](https://github.com/jaredpalmer/formik) build tooling. TSDX is very similar to [@developit/microbundle](https://github.com/developit/microbundle), but that is because Formik's Rollup configuration and Microbundle's internals have converged around similar plugins over the last year or so.
Expand All @@ -396,6 +406,8 @@ TSDX is ripped out of [Formik's](https://github.com/jaredpalmer/formik) build to
- TSDX is 100% TypeScript focused
- TSDX outputs distinct development and production builds (like React does) for CJS and UMD builds. This means you can include rich error messages and other dev-friendly goodies without sacrificing final bundle size.

[🔝](#toc)<!-- Link generated with jump2header -->

## API Reference

### `tsdx watch`
Expand Down Expand Up @@ -501,6 +513,8 @@ Examples
$ tsdx lint src --report-file report.json
```

[🔝](#toc)<!-- Link generated with jump2header -->

## Contributing

Please see the [Contributing Guidelines](./CONTRIBUTING.md).
Expand Down Expand Up @@ -621,3 +635,6 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!


[🔝](#toc)<!-- Link generated with jump2header -->