Skip to content

Commit

Permalink
Convert to TypeScript (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Jun 10, 2019
1 parent d654956 commit 6a2f414
Show file tree
Hide file tree
Showing 8 changed files with 548 additions and 305 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -7,3 +7,6 @@ Thumbs.db
*.bak
*.log
logs
*.map
index.js
index.d.ts
1 change: 1 addition & 0 deletions .npmrc
@@ -0,0 +1 @@
package-lock=false
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,3 +1,3 @@
language: node_js
node_js:
- '7'
- stable
106 changes: 0 additions & 106 deletions index.d.ts

This file was deleted.

41 changes: 30 additions & 11 deletions package.json
Expand Up @@ -14,29 +14,48 @@
"chrome",
"firefox"
],
"main": "webext-options-sync.js",
"files": [
"webext-options-sync.js",
"index.js",
"index.d.ts"
],
"scripts": {
"watch": "onchange '*.js' --initial -- xo --fix",
"test": "xo"
"test": "xo && tsc",
"prepublish-only": "run-p --silent build",
"build:comment": "echo '// https://github.com/bfred-it/webext-options-sync\n'",
"build:standalone": "browserify source/index.ts --standalone OptionsSync -p tsify -p browser-pack-flat",
"build": "tsc --emitDeclarationOnly && run-s build:* --silent > webext-options-sync.js",
"watch": "tsc --watch"
},
"xo": {
"ignores": [
"webext-options-sync.js"
],
"extensions": [
"ts"
],
"envs": [
"browser",
"webextensions"
],
"rules": {
"comma-dangle": [
0,
"only-multiline"
]
}
"overrides": [
{
"files": "**/*.ts",
"extends": "xo-typescript"
}
]
},
"devDependencies": {
"onchange": "^3.3.0",
"@sindresorhus/tsconfig": "^0.4.0",
"@types/chrome": "0.0.86",
"@types/dom-inputevent": "^1.0.4",
"@typescript-eslint/eslint-plugin": "^1.9.0",
"@typescript-eslint/parser": "^1.10.2",
"browser-pack-flat": "^3.4.2",
"browserify": "^16.2.3",
"eslint-config-xo-typescript": "^0.14.0",
"npm-run-all": "^4.1.5",
"tsify": "^4.0.1",
"typescript": "^3.5.1",
"xo": "*"
}
}

0 comments on commit 6a2f414

Please sign in to comment.