-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathhammer.mjs
More file actions
20 lines (18 loc) · 728 Bytes
/
Copy pathhammer.mjs
File metadata and controls
20 lines (18 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/** Runs the example script in watch mode. */
export async function test() {
await shell('tsc-bundle ./spec/tsconfig.json --outFile ./spec.js')
await shell('node spec').exec()
}
/** Runs the example script in watch mode. */
export async function example() {
await shell('hammer run example/index.ts --dist target/example')
}
/** Builds redistributable in the 'dist' directory. */
export async function build() {
await folder('target/build').delete()
await shell('tsc -p ./src/tsconfig.json --outDir dist')
await folder('target/build').add('license')
await folder('target/build').add('package.json')
await folder('target/build').add('readme.md')
await shell('cd target/build && npm pack')
}