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

Commit

Permalink
Update to typescript 1.8.0-dev
Browse files Browse the repository at this point in the history
Add new compiler option concerning synthetic default imports
Fix library imports to rely on new compiler option
Update typings and dependencies
  • Loading branch information
lepus2589 committed Jan 26, 2016
1 parent 6bb65de commit 6cf7114
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 49 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"dependencies": {},
"devDependencies": {
"babel-core": "^6.3.13",
"babel-loader": "^6.2.0",
"babel-core": "^6.4.5",
"babel-loader": "^6.2.1",
"babel-preset-es2015": "^6.3.13",
"base64-loader": "^1.0.0",
"grunt": "^0.4.5",
Expand All @@ -25,8 +25,8 @@
"lodash": "^3.10.1",
"raw-loader": "^0.5.1",
"ts-loader": "^0.7.2",
"typescript": "^1.7.3",
"webpack": "^1.12.9",
"webpack-dev-server": "^1.14.0"
"typescript": "^1.8.0-dev || ^1.8.0",
"webpack": "^1.12.12",
"webpack-dev-server": "^1.14.1"
}
}
6 changes: 3 additions & 3 deletions src/app/app.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Test} from './main/main';
import * as can from 'canjs';
import * as cordova from 'cordova';
import * as $ from 'jquery';
import can from 'canjs';
import cordova from 'cordova';
import $ from 'jquery';
import config from 'config';

module PocketCombineApp {
Expand Down
4 changes: 0 additions & 4 deletions src/libs/canjs/canjs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
define(['can'], function (can) {
// Set the __esModule flag. This lets babel return the exports object
// directly instead of writing it into the 'default' property of the
// returned object.
can.__esModule = true;
return can;
});
6 changes: 0 additions & 6 deletions src/libs/cordova/cordova.js

This file was deleted.

3 changes: 3 additions & 0 deletions src/libs/cordova/cordova.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
let cordova: Cordova = <Cordova> window.cordova;

export default cordova;
7 changes: 1 addition & 6 deletions src/libs/jquery/jquery.js
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
var $ = require('./jquery-2.1.4');
// Set the __esModule flag. This lets babel return the exports object
// directly instead of writing it into the 'default' property of the
// returned object.
$.__esModule = true;
module.exports = $;
module.exports = require('./jquery-2.1.4');
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"target": "es6",
"sourceMap": false,
"module": "commonjs",
"allowSyntheticDefaultImports": true,
"noImplicitAny": true
},
"files": [
Expand Down
44 changes: 22 additions & 22 deletions tsd.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,70 +6,70 @@
"bundle": "src/typings/tsd/tsd.d.ts",
"installed": {
"cordova/cordova.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/BatteryStatus.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/DeviceMotion.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/Device.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/DeviceOrientation.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/Dialogs.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/FileSystem.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/FileTransfer.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/Globalization.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/Media.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/InAppBrowser.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/MediaCapture.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/NetworkInformation.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/Push.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/Splashscreen.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/StatusBar.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/Vibration.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/WebSQL.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/Keyboard.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/Camera.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"cordova/plugins/Contacts.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
},
"jquery/jquery.d.ts": {
"commit": "e5a27ea95e47b95333784f1f0d590127b4e39a89"
"commit": "f29bf726a60674dbf24bab06a26403a3871c3f21"
}
}
}
3 changes: 0 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ module.exports = {
filename: 'app.js',
},
resolve: {
// alias: {
// jquery: 'jquery-es6'
// },
root: [path.resolve('./src/app')]
.concat(getSubDirectories('./src/libs'))
.concat(getSubDirectories('./src/modules')),
Expand Down

0 comments on commit 6cf7114

Please sign in to comment.