Skip to content

Commit

Permalink
typescript 2; no fix requirement for a reflect shim
Browse files Browse the repository at this point in the history
  • Loading branch information
mseemann committed Sep 29, 2016
1 parent 954955f commit 9ea2e71
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 64 deletions.
37 changes: 23 additions & 14 deletions package.json
Expand Up @@ -5,11 +5,10 @@
"main": "src/js-restful-express.js",
"typings": "./src/js-restful-express.d.ts",
"scripts": {
"install_typings": "typings install",
"pretest": "typings install && tsc",
"test": "istanbul cover node_modules/mocha/bin/_mocha --report lcov -x '*.spec.*' -- -c --check-leaks --require ts-node/register --recursive --reporter spec src/**/*.spec.ts",
"pretest": "tsc",
"test": "istanbul cover node_modules/mocha/bin/_mocha --report lcov -x '*.spec.*' -- -c --check-leaks --require ts-node/register --require core-js --recursive --reporter spec src/**/*.spec.ts",
"quicktest": "mocha -c --check-leaks --require ts-node/register --recursive --reporter spec src/**/*.spec.ts",
"prepublish": "typings install && tsc",
"prepublish": "tsc",
"docs": "jsdoc -c config/jsdoc-conf.json -r src"
},
"repository": {
Expand All @@ -30,29 +29,39 @@
],
"author": "Michael Seemann",
"license": "MIT",
"peerDependencies": {
"reflect-metadata": "0.1.2"
},
"peerDependencies": {},
"dependencies": {
"es6-promise": "^3.1.2",
"express": "^4.13.4",
"js-restful": "^1.1.7",
"winston": "^2.2.0",
"reflect-metadata": "0.1.2"
"js-restful": "^2.0.0",
"winston": "^2.2.0"
},
"devDependencies": {
"@types/body-parser": "0.0.33",
"@types/chai": "^3.4.34",
"@types/express": "^4.0.33",
"@types/express-serve-static-core": "^4.0.36",
"@types/method-override": "0.0.28",
"@types/mime": "0.0.29",
"@types/mocha": "^2.2.32",
"@types/node": "^6.0.41",
"@types/reflect-metadata": "0.0.4",
"@types/serve-static": "^1.7.31",
"@types/superagent": "^2.0.34",
"@types/supertest": "^1.1.31",
"@types/winston": "0.0.28",
"chai": "^3.5.0",
"codeclimate-test-reporter": "^0.3.1",
"core-js": "^2.4.1",
"istanbul": "^0.4.3",
"jsdoc": "^3.4.0",
"mocha": "^2.4.5",
"mocha-lcov-reporter": "^1.2.0",
"pug": "^2.0.0-alpha6",
"supertest": "^1.2.0",
"ts-node": "^0.7.2",
"tslint": "3.8.1",
"typescript": "1.8.10",
"typings": "0.8.1"
"tslint": "3.15.1",
"typescript": "2.0.3",
"typings": "1.4.0"
},
"bugs": {
"url": "https://github.com/mseemann/js-restful-express/issues"
Expand Down
1 change: 0 additions & 1 deletion src/express/decorators.ts
@@ -1,5 +1,4 @@
import * as namings from './namings';
import 'reflect-metadata';
import { ExpressContextType } from './descriptions';
import { DecoratorUtil } from 'js-restful';

Expand Down
1 change: 0 additions & 1 deletion src/express/registry-promis.spec.ts
Expand Up @@ -4,7 +4,6 @@ import {expect} from 'chai';
import * as request from 'supertest';
import { Path, GET } from 'js-restful';
import * as util from './test-util.spec';
import {Promise} from 'es6-promise';

let anyBook = {a:'b'};

Expand Down
1 change: 0 additions & 1 deletion src/express/renderers.ts
@@ -1,5 +1,4 @@
import * as express from 'express';
import 'reflect-metadata';
import * as namings from './namings';
import { MethodDescription, ParamDescription, ContextTypes } from 'js-restful';

Expand Down
36 changes: 10 additions & 26 deletions tsconfig.json
Expand Up @@ -3,35 +3,19 @@
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"lib": ["es6", "dom"],
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"declaration": true
},
"files":[
"typings/main.d.ts",
"src/js-restful-express.ts",
"src/express/decorators.spec.ts",
"src/express/decorators.ts",
"src/express/descriptions.ts",
"src/express/namings.ts",
"src/express/path-util.ts",
"src/express/path-util.spec.ts",
"src/express/registry-context.spec.ts",
"src/express/registry-delete.spec.ts",
"src/express/registry-get.spec.ts",
"src/express/registry-post.spec.ts",
"src/express/registry-promis.spec.ts",
"src/express/registry-put.spec.ts",
"src/express/registry-sec.spec.ts",
"src/express/registry.spec.ts",
"src/express/registry.ts",
"src/express/renderers.spec.ts",
"src/express/renderers.ts",
"src/express/service-registry.spec.ts",
"src/express/service-registry.ts",
"src/express/test-util.spec.ts"
]
"declaration": true,
"typeRoots": [
"../node_modules/@types"
],
"types": [
"mocha",
"reflect-metadata" // the typings for core-js are limited - es7.reflect is missing :( use reflect-metadata typings insted
]
}
}
21 changes: 0 additions & 21 deletions typings.json

This file was deleted.

0 comments on commit 9ea2e71

Please sign in to comment.