Created
July 7, 2016 20:13
-
-
Save i5okie/9c2fb83d86b1abb27b39a8cbfc0fa405 to your computer and use it in GitHub Desktop.
TSD to Typings (Electron with TypeScript, React)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///<package.json> | |
... | |
"devDependencies": { | |
... | |
"typings": "^1.3.1" | |
... | |
///<Makefile> | |
build: node_modules typings | |
./node_modules/.bin/typings | |
typings: | |
./node_modules/.bin/typings install | |
./node_modules/.bin/typings prune | |
touch typings | |
... | |
///<tsconfig.json> | |
... | |
"filesGlob": [ | |
"src/**/*.ts" | |
], | |
"files": [ | |
"typings/index.d.ts" | |
], | |
... | |
///<typings.json> | |
{ | |
"globalDependencies": { | |
"github-electron": "registry:dt/github-electron#1.2.5+20160624085047", | |
"node": "registry:dt/node#6.0.0+20160621231320", | |
"react": "registry:dt/react#0.14.0+20160630100702" | |
} | |
} | |
run make clean, then make. | |
and ur good to go. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment