Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Switch from tsd to typings
Browse files Browse the repository at this point in the history
  • Loading branch information
lepus2589 committed Feb 7, 2016
1 parent 7c5b9a6 commit b06c292
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 86 deletions.
12 changes: 7 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,14 @@ dist/

### Cordova ###
# The hooks directory is deprecated
hooks/**
platforms/**
plugins/**
hooks
platforms
plugins


### Project ###
# This directory will be built from typescript
src/typings/tsd/**
src/typings/browser
src/typings/main
src/typings/browser.d.ts
src/typings/main.d.ts
src/modules/config/registration-info.json
2 changes: 2 additions & 0 deletions src/app/app.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference path='./app.d.ts' />

import {Test} from './main/main';
import can from 'canjs';
import cordova from 'cordova';
Expand Down
26 changes: 26 additions & 0 deletions src/typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"ambientDependencies": {
"BatteryStatus": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/BatteryStatus.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"Camera": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/Camera.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"Contacts": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/Contacts.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"Device": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/Device.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"DeviceMotion": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/DeviceMotion.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"DeviceOrientation": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/DeviceOrientation.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"Dialogs": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/Dialogs.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"FileSystem": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/FileSystem.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"FileTransfer": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/FileTransfer.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"Globalization": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/Globalization.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"InAppBrowser": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/InAppBrowser.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"Keyboard": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/Keyboard.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"Media": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/Media.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"MediaCapture": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/MediaCapture.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"NetworkInformation": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/NetworkInformation.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"Push": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/Push.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"Splashscreen": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/Splashscreen.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"StatusBar": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/StatusBar.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"Vibration": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/Vibration.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"WebSQL": "github:DefinitelyTyped/DefinitelyTyped/cordova/plugins/WebSQL.d.ts#f29bf726a60674dbf24bab06a26403a3871c3f21",
"cordova": "github:DefinitelyTyped/DefinitelyTyped/cordova/cordova.d.ts#ac7f83bdcf1dfd70e70acf7a87cf8e83719dacd6",
"jquery": "github:DefinitelyTyped/DefinitelyTyped/jquery/jquery.d.ts#cf2a968f0edd7d30773f7d23fe3708fa029d5ab7"
}
}
1 change: 1 addition & 0 deletions src/typings/own.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference path='./own/canjs/canjs.d.ts' />
1 change: 0 additions & 1 deletion src/typings/own/own.d.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/typings/typings.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/// <reference path='own/own.d.ts' />
/// <reference path='tsd/tsd.d.ts' />
/// <reference path='./browser.d.ts' />
/// <reference path='./own.d.ts' />
13 changes: 10 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@
"allowSyntheticDefaultImports": true,
"noImplicitAny": true
},
"files": [
"./src/app/app.ts",
"./src/app/app.d.ts"
"exclude": [
"node_modules",
"platforms",
"plugins",
"src/cordova-hooks",
"src/themes",
"src/typings/main",
"src/typings/main.d.ts",
"src/webpack-loaders",
"www"
],
"compileOnSave": false,
"atom": {
Expand Down
75 changes: 0 additions & 75 deletions tsd.json

This file was deleted.

0 comments on commit b06c292

Please sign in to comment.