Skip to content

Commit

Permalink
Meteor 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mizzao committed Nov 9, 2019
1 parent 8e288f4 commit 4ae5627
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ before_install:
env:
# barbatus:typescript requires ecmascript and modules from 1.6.x, so we just
# use that to run the test
- CXX=g++-4.8 METEOR_RELEASE=1.6.1.4
- CXX=g++-4.8 METEOR_RELEASE=1.8.2-rc.7
addons:
apt:
sources:
Expand Down
12 changes: 3 additions & 9 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@ Npm.depends({
});

Package.onUse(function(api) {
api.versionsFrom("1.4.4.6");
api.versionsFrom("1.8.2-rc.7");

// TypeScript support
// Modules: https://docs.meteor.com/v1.4/packages/modules.html
api.use("modules");
api.use("ecmascript");
// Should be replaced with straight up built-in 'typescript' in Meteor 1.8.2
// adornis:typescript from [1.4, 1.8)
// api.use("adornis:[email protected]");
api.use("barbatus:[email protected]");
api.use("typescript");

// Client-only deps
api.use(["session", "ui", "templating", "reactive-var"], "client");
Expand Down Expand Up @@ -146,10 +143,7 @@ Package.onTest(function(api) {
// Need these specific versions for tests to agree to run
api.use("modules");
api.use("ecmascript");

// For compiling TS
api.use("barbatus:typescript");
// api.use("adornis:typescript");
api.use("typescript");

api.use([
"accounts-base",
Expand Down
20 changes: 15 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@
{
"compilerOptions": {
"target": "es2015",
/* Basic Options */
"target": "es2018",
"module": "esNext",
"lib": ["esnext", "dom"],
"allowJs": true,
"checkJs": false,
"jsx": "preserve",
"incremental": true,
"noEmit": true,

/* Strict Type-Checking Options */
"strict": false,
"noImplicitAny": false,
"strictNullChecks": false,
"noImplicitAny": false, // TODO flip to true when ready
"strictNullChecks": false, // TODO flip to true when ready

/* Additional Checks */
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": false,
"noFallthroughCasesInSwitch": false,

/* Module Resolution Options */
"baseUrl": ".",
"paths": {
/* Support absolute /imports/* with a leading '/' */
"/*": ["*"]
},
"moduleResolution": "node",
"resolveJsonModule": true,
"types": ["node"],
"typeRoots": ["types/", "node_modules/@types"]
}
"typeRoots": ["types/", "node_modules/@types"],
"esModuleInterop": true,
"preserveSymlinks": true
},
"exclude": ["./.meteor/**", "./packages/**"]
}

0 comments on commit 4ae5627

Please sign in to comment.