Skip to content

Instantly share code, notes, and snippets.

@i5okie
Created July 7, 2016 20:13
Show Gist options
  • Save i5okie/9c2fb83d86b1abb27b39a8cbfc0fa405 to your computer and use it in GitHub Desktop.
Save i5okie/9c2fb83d86b1abb27b39a8cbfc0fa405 to your computer and use it in GitHub Desktop.
TSD to Typings (Electron with TypeScript, React)
///<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