Skip to content

Commit d1c71bd

Browse files
authored
Merge pull request #34 from GoogleChromeLabs/TypeScript
Set up for TypeScript conversion.
2 parents 343d429 + f99ee24 commit d1c71bd

31 files changed

Lines changed: 36 additions & 6 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ node_modules
33
._jdk8u232-b09
44
jdk8u232-b09
55
android_sdk
6+
dist
67

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Clone the Llama Pack repository:
3636
git clone https://github.com/GoogleChromeLabs/llama-pack.git
3737
cd llama-pack
3838
npm install
39+
npm run build
3940
```
4041

4142
### Get the Java Development Kit (JDK) 8.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"spec_dir": "spec",
2+
"spec_dir": "dist/spec",
33
"spec_files": [
44
"**/*[sS]pec.js"
55
],

package-lock.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
"version": "0.1.0",
44
"description": "CLI tool to Generate TWA projects from a Web Manifest",
55
"bin": {
6-
"outside": "bin/llama-pack"
6+
"outside": "dist/bin/llama-pack"
77
},
88
"scripts": {
9+
"build": "tsc",
910
"lint": "eslint .",
10-
"test": "jasmine"
11+
"test": "jasmine --config=jasmine.json"
1112
},
12-
"main": "index.js",
13+
"main": "dist/index.js",
1314
"keywords": [
1415
"twa",
1516
"trusted-web-activities",
@@ -32,8 +33,10 @@
3233
"valid-url": "^1.0.9"
3334
},
3435
"devDependencies": {
36+
"@types/node": "^12.12.12",
3537
"eslint": "^6.6.0",
3638
"eslint-config-google": "^0.14.0",
37-
"jasmine": "^3.5.0"
39+
"jasmine": "^3.5.0",
40+
"typescript": "^3.7.2"
3841
}
3942
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)