tateru
v0.0.9
Published
Build your TypeScript projects with speed and ease~
Downloads
26
Maintainers
Readme
Tateru
Build your TypeScript projects with speed and ease.
Tateru is released under the MIT license & supports modern environments.
Global install
Use any of the following.
$ npm i -g tateru@latest
$ yarn global add tateru
$ pnpm install --global tateru
Note: add --save
if you are using npm < 5.0.0
You may also install via --save-dev and equivalent options. In those cases, make sure to invoke the executable via npx.
Set up your tateru toml:
- Create .taterurc
- Add your build config
- Run
$ tateru
You may also add tateru to your scripts object in package.json. From there, you can invoke the build via yarn build. For more details, see how we use it in hikidashi.
Example partial toml:
out_dir = 'dist'
cjs = true
[submodule]
modules = 'src/sub/**/*.ts'
out_dir = 'dist/sub'
ejs = true
mjs = true
[dist_bundle]
modules = 'src/index.ts'
[tests]
modules = 'tests/**/*.ts'
out_dir = 'tests/dist'
watch = true
Then, modify your package.json to use yarn build:src and yarn build:test.
{...
"scripts": {
"build:src": "tateru submodule dist_bundle",
"build:test": "tateru tests"
}
...}