This repository was archived by the owner on Jul 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Original commit messages: * initial version of TypeScript support * added typescript as a transpiler to karma.conf * add typescript dependency to package.json * allow TypeScript options to be set from the outside * updated README.md * added typescript to .travis.yml * set CompilerOptions.target if it was not assigned before * reverted changes in dist * do not inline source file contents by default
- Loading branch information
1 parent
2bb4023
commit 466616a
Showing
11 changed files
with
113 additions
and
27 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
'use strict'; | ||
|
||
global.expect = require('expect.js'); | ||
|
||
require('./_helper'); | ||
|
||
global.System = require('../index').System; | ||
global.ts = require('typescript'); | ||
global.System.transpiler = 'typescript'; | ||
|
||
require('./system.spec'); | ||
|
||
require('./custom-loader'); | ||
require('./custom-loader.spec'); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
importScripts("../../node_modules/when/es6-shim/Promise.js", | ||
"../../dist/es6-module-loader-dev.src.js"); | ||
System.paths['typescript'] = "../../node_modules/typescript/bin/typescript.js"; | ||
System.transpiler = 'typescript'; | ||
System['import']('es6.js').then(function(m) { | ||
postMessage(m.p); | ||
}, function(err) { | ||
console.error(err, err.stack); | ||
}); |