Skip to content

Commit 657b828

Browse files
committed
Update example config
1 parent a04b8f2 commit 657b828

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

example/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
"pebble-app"
77
],
88
"private": true,
9-
"dependencies": {},
9+
"dependencies": {
10+
"pkts": "^0.2.0"
11+
},
12+
"scripts": {
13+
"build": "pkts build"
14+
},
1015
"pebble": {
1116
"displayName": "pebblekit-ts-example",
1217
"uuid": "31e52c0a-4745-492b-8b86-9e5b6353e2a0",
@@ -29,4 +34,4 @@
2934
"media": []
3035
}
3136
}
32-
}
37+
}

example/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "pkts/config/tsconfig.json",
3+
"include": ["src/ts/**/*", "node_modules/pkts/lib/**/*"]
4+
}

example/wscript

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ def configure(ctx):
2424

2525

2626
def build(ctx):
27+
ctx.exec_command('npm run build')
28+
2729
ctx.load('pebble_sdk')
2830

2931
build_worker = os.path.exists('worker_src')
@@ -48,7 +50,7 @@ def build(ctx):
4850

4951
ctx.set_group('bundle')
5052
ctx.pbl_bundle(binaries=binaries,
51-
js=ctx.path.ant_glob(['src/pkjs/**/*.js',
53+
js=ctx.path.ant_glob(['src/ts-build/**/*.js',
5254
'src/pkjs/**/*.json',
5355
'src/common/**/*.js']),
54-
js_entry_file='src/pkjs/index.js')
56+
js_entry_file='src/ts-build/index.js')

0 commit comments

Comments
 (0)