Skip to content
Merged
Show file tree
Hide file tree
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
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ import * as toolbox from 'https://raw.githubusercontent.com/fullstacksjs/toolbox

### Browser

This package is ESM-only.

```html
<script src="https://unpkg.com/@fullstacksjs/toolbox"></script>
<script>
console.log(window.Toolbox);
<script type="module">
import * as toolbox from 'https://www.unpkg.com/@fullstacksjs/toolbox@<VERSION>/dist/index.mjs';
</script>
```

Expand All @@ -65,6 +66,7 @@ Development of toolbox happens in GitHub, and we appreciate contributions.

- [bash][bash]
- Node.JS>=20
- pnpm (or Vite+ / `vp`)

### Pull Request

Expand All @@ -73,15 +75,16 @@ review your pull request as soon as possible.

Before submitting a pull request, please make sure the following is done:

- Fork the repository and create your feature branch from dev.
- Run `npm install` to have all dependencies.
- To start development run `npm run test:watch`.
- Fork the repository and create your feature branch from main.
- Run `pnpm install` or `vp install` to have all dependencies.
- Run `vp test` while developing.
- Write tests in `src/<scope>/<name>.spec.ts` and implementation in
`src/<scope>/<name>.ts`.
- Add JSDoc for you function with signature and examples.
- Add the documentation using [doc template](./docs/DOC-TEMPLATE.mdx) page to
the `docs/<scope>/<function>.mdx` and update `docs/<scope>/_meta.json` file.
- Ensure everything is ok `npm run verify`.
the `docs/content/<scope>/<function>.mdx` and update
`docs/content/<scope>/_meta.ts` file.
- Ensure everything is ok with `vp check`.

## Code of Conduct

Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"postbuild": "pagefind --site .next/server/app --output-path out/_pagefind && touch out/.nojekyll",
"postbuild": "pagefind --site out && touch out/.nojekyll",
"start": "next start"
},
"dependencies": {
Expand Down