Skip to content

Commit

Permalink
ts work
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 15, 2017
1 parent 9e6f44d commit 34a76f7
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
tmp
node_modules
/lib
/node_modules
/tmp
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"commands": "./lib/commands",
"userPlugins": true,
"hooks": {
"init": "./lib/hooks/init"
"init": "./lib/hooks/init",
"plugins:parse": "./lib/hooks/plugins/parse/legacy"
},
"s3": {
"host": "cli-assets.heroku.com"
Expand All @@ -26,7 +27,9 @@
"cli-engine-example-plugin": "^2.1.4"
},
"devDependencies": {
"jest": "20.0.4"
"@types/node": "8.5.1",
"jest": "20.0.4",
"typescript": "2.6.2"
},
"jest": {
"testEnvironment": "node",
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions src/hooks/plugins/parse/legacy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = (...opts: any[]) => {
console.dir(opts)
}
14 changes: 14 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"compilerOptions": {
"strict": true,
"alwaysStrict": true,
"module": "commonjs",
"outDir": "./lib",
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "esnext"
},
"include": [
"./src/**/*"
]
}
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# yarn lockfile v1


"@types/[email protected]":
version "8.5.1"
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.5.1.tgz#4ec3020bcdfe2abffeef9ba3fbf26fca097514b5"

abab@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.3.tgz#b81de5f7274ec4e756d797cd834f303642724e5d"
Expand Down Expand Up @@ -2343,6 +2347,10 @@ type-check@~0.3.2:
dependencies:
prelude-ls "~1.1.2"

[email protected]:
version "2.6.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.6.2.tgz#3c5b6fd7f6de0914269027f03c0946758f7673a4"

uglify-js@^2.6:
version "2.8.14"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.14.tgz#25b15d1af39b21752ee33703adbf432e8bc8f77d"
Expand Down

0 comments on commit 34a76f7

Please sign in to comment.