0.4.1 • Published 10 months ago

@paulmillr/jsbt v0.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@paulmillr/jsbt

Typescript configs, build tools and templates for JS projects.

  • jsbt.js calls esbuild to produce single-file package output
  • .github/workflows contains GitHub CI configs for testing & publishing JS packages:
    • test-js.yml runs tests on LTS node.js, bun, deno, linter, and calculates coverage
      • submodules: true / false (default) option determines whether to clone submodules
    • test-ts.yml is same, but runs typescript instead of js on supported node.js (v22+)
    • release.yml publishes package on NPM, JSR and creates single-file output if it exists
      • build-path: string - path to build directory, which contains out dir, from which files would be uploaded to github releases
      • slow-types: true / false (default) - whether to allow slow types on JSR.io
  • tsconfig.json and tsconfig.cjs.json allow inheritance with a few useful options:
    • Overall they are quite strict
    • isolatedDeclarations ensures types are "fast" and friendly to JSR.io
    • verbatimModuleSyntax - ensures files are friendly to "type erasure" / "type ignore" node.js and others
    • tsconfig.test.json is for typescript tests, with looser checks
  • repo-template contains project skeleton, which can be used to create a new package
    • Replace EDIT_ME with proper value

License

MIT License

0.3.0

1 year ago

0.4.1

10 months ago

0.3.2

1 year ago

0.4.0

10 months ago

0.3.1

1 year ago

0.3.4

10 months ago

0.3.3

1 year ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago