Skip to content

Commit

Permalink
npm provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Jul 31, 2023
1 parent f0b7951 commit 097a0d9
Show file tree
Hide file tree
Showing 25 changed files with 65 additions and 304 deletions.
14 changes: 6 additions & 8 deletions hammer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ export async function test(testReporter = 'spec', filter = '') {
await shell(`node --test-reporter ${testReporter} --test ${pattern} target/test/index.js`)
}
// -------------------------------------------------------------------------------
// Serve
// -------------------------------------------------------------------------------
export async function serve() {
await shell('hammer serve example/index.html --dist target/example')
}
// -------------------------------------------------------------------------------
// Start
// -------------------------------------------------------------------------------
export async function start() {
Expand All @@ -33,6 +27,10 @@ export async function start() {
// -------------------------------------------------------------------------------
// Build
// -------------------------------------------------------------------------------
export async function build() {
await shell('tsc -p src/tsconfig.json --outDir target/build --declaration')
export async function build(target = 'target/build') {
await shell(`tsc -p src/tsconfig.json --outDir ${target} --declaration`)
await folder(target).add('package.json')
await folder(target).add('license')
await folder(target).add('readme.md')
await shell(`cd ${target} && npm pack`)
}
2 changes: 1 addition & 1 deletion license
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TypeBox-Transform: Code Generation Tools for TypeBox
@sinclair/typebox-codegen

The MIT License (MIT)

Expand Down
286 changes: 25 additions & 261 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 097a0d9

Please sign in to comment.