build-ts v13.0.5
build-ts
An opinionated tool for building a Node.js app and library written in TypeScript.
Features
- Builder / Bundler (
rollup
wrapper)build-ts app
- Bundle TypeScript code as Node.js application
build-ts functions
- Bundle TypeScript code as GCP/Firebase Functions
- Generate optimized
package.json
for Functions
build-ts lib
- Bundle TypeScript code as Node.js / Pure JavaScript / React Library
- Remove
console.log
automatically
- Executor (
ts-node
wrapper)build-ts run <TypeScript file>
- Run TypeScript code as Node.js script
Node.js Application
npx build-ts app [project path]
, e.g.,
npx build-ts app test-fixtures/app-node
# or
cd test-fixtures/app-node && npx build-ts app
Firebase Functions
npx build-ts functions [project path]
, e.g.,
npx build-ts app test-fixtures/functions
# or
cd test-fixtures/functions && npx build-ts app
Node.js / Browser Library
npx build-ts lib [project path]
, e.g.,
npx build-ts lib test-fixtures/lib
# or
cd test-fixtures/lib && npx build-ts lib
React Library
npx build-ts lib [project path]
, e.g.,
npx build-ts lib test-fixtures/lib-react
# or
cd test-fixtures/lib-react && npx build-ts lib
Run TypeScript code with arguments
echo "console.log(process.argv)" > example.ts
npx build-ts run example.ts -- --foo bar
The output is like this:
[ '/path/to/node',
'/path/to/build-ts/dist/bin/run.js',
'--foo',
'bar' ]
6 days ago
26 days ago
27 days ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
8 months ago
7 months ago
7 months ago
7 months ago
9 months ago
6 months ago
6 months ago
5 months ago
6 months ago
6 months ago
9 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
10 months ago
10 months ago
10 months ago
9 months ago
9 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
8 months ago
8 months ago
7 months ago
7 months ago
7 months ago
7 months ago
10 months ago
10 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
11 months ago
12 months ago
12 months ago
11 months ago
12 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago