Skip to content

Commit

Permalink
Update the NPM version, add some minor fixes and remove demo
Browse files Browse the repository at this point in the history
This is part of the effort to create an official TypeScript compiler:
Urigo/angular2-meteor#89
Urigo/angular2-meteor#90
Urigo/angular2-meteor#102
  • Loading branch information
barbatus committed Feb 15, 2016
1 parent 57e7023 commit 694d036
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 105 deletions.
12 changes: 0 additions & 12 deletions demo/.meteor/.finished-upgraders

This file was deleted.

7 changes: 0 additions & 7 deletions demo/.meteor/.id

This file was deleted.

23 changes: 0 additions & 23 deletions demo/.meteor/packages

This file was deleted.

2 changes: 0 additions & 2 deletions demo/.meteor/platforms

This file was deleted.

1 change: 0 additions & 1 deletion demo/.meteor/release

This file was deleted.

13 changes: 0 additions & 13 deletions demo/demo.ts

This file was deleted.

23 changes: 0 additions & 23 deletions demo/packages/compiler/package.js

This file was deleted.

6 changes: 0 additions & 6 deletions demo/packages/compiler/ts_handler.js

This file was deleted.

6 changes: 0 additions & 6 deletions demo/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Package.describe({
});

Npm.depends({
'meteor-typescript': '0.5.2',
'meteor-typescript': '0.5.7',
'async': '1.4.0'
});

Expand Down
16 changes: 5 additions & 11 deletions typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ TypeScript = {
validateOptions(options) {
if (! options) return;

meteorTS.convertOptionsOrThrow(options);
meteorTS.validateAndConvertOptions(options);
},

// Extra options are the same compiler options
// but passed in the compiler constructor.
validateExtraOptions(options) {
if (! options) return;

meteorTS.convertOptionsOrThrow({
meteorTS.validateAndConvertOptions({
compilerOptions: options
});
},
Expand All @@ -24,15 +24,9 @@ TypeScript = {
getCompilerOptions(options, extraOptions) {
let compilerOptions = options ||
meteorTS.getDefaultOptions().compilerOptions;
compilerOptions = _.clone(options);

if (extraOptions) {
for (let option in extraOptions) {
if (extraOptions.hasOwnProperty(option)) {
compilerOptions[option] = extraOptions[option];
}
}
}
compilerOptions = _.clone(compilerOptions);

_.extend(compilerOptions, extraOptions);

return compilerOptions;
},
Expand Down

0 comments on commit 694d036

Please sign in to comment.