Skip to content

Commit

Permalink
Merge pull request #23 from zalando-incubator/21-typescript2
Browse files Browse the repository at this point in the history
chore(project): upgrade to typescript2
  • Loading branch information
ISO50 committed Oct 25, 2016
2 parents bcd9af6 + b88536c commit eb71a39
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 70 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# EditorConfig is awesome: http://EditorConfig.org

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ lib/
.vscode
.idea
**/npm-debug.log
typings/
graviton-typings/
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,14 @@ cleanMock();
* clone this repo
* `npm install`
* `typings install`
* `npm run setup-dev`
* to build: `tsc`
* to lint: `npm run tslint`
## Testing
Both commands require a global installed mocha (`npm install -g mocha`) and ts-node (`npm install -g ts-node`).
* `npm test` - runs unit tests
* `npm test` - runs all tests
* `npm run unit-test` - runs unit tests
* `npm run integration-test` - runs integration tests
Expand Down
2 changes: 0 additions & 2 deletions integration-test/mocha.opts

This file was deleted.

32 changes: 20 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "lib-oauth-tooling",
"version": "0.23.0",
"version": "0.25.0",
"description": "A simple typescript based oauth tooling library",
"main": "./lib/index.js",
"typings": "./lib/index.d.ts",
"main": "./lib/src/index.js",
"typings": "./lib/src/index.d.ts",
"license": "MIT",
"keywords": [
"zalando",
Expand All @@ -24,28 +24,36 @@
"btoa": "^1.1.2",
"form-urlencoded": "^1.2.0",
"http-status": "^0.2.0",
"nock": "^7.5.0",
"nock": "^8.0.0",
"node-fetch": "^1.3.3",
"node-uuid": "^1.4.7",
"q": "^1.4.1"
},
"devDependencies": {
"@graviton/graviton-typings": "1.0.0",
"@types/body-parser": "0.0.33",
"@types/chai": "^3.4.33",
"@types/chai-as-promised": "0.0.29",
"@types/express": "^4.0.33",
"@types/http-status": "^0.2.29",
"@types/mocha": "^2.2.32",
"@types/nock": "^8.0.33",
"@types/node-uuid": "0.0.28",
"@types/q": "0.0.32",
"@types/http-status": "^0.2.29",
"chai": "^3.4.1",
"chai-as-promised": "^5.1.0",
"express": "^4.13.3",
"mocha": "^3.0.2",
"nock": "^7.2.2",
"ts-node": "^1.3.0",
"tslint": "^3.5.0",
"typescript": "^1.8.10",
"typings": "^1.3.3"
"typescript": "^2.0.3"
},
"scripts": {
"setup-dev": "rm -rf graviton-typings; git clone git@github.bus.zalan.do:graviton/graviton-typings.git ./graviton-typings",
"test": "mocha --opts test/mocha.opts",
"integration-test": "mocha --opts integration-test/mocha.opts --harmony_default_parameters",
"test": "tsc && mocha lib/test lib/integration-test --recursive",
"unit-test": "tsc && mocha lib/test --recursive",
"integration-test": "tsc && mocha lib/integration-test --recursive",
"tslint": "tslint src/**/*.ts test/**/*.ts integration-test/**/*.ts",
"prepublish": "npm run tslint && npm run test && npm run integration-test && rm -rf lib && tsc"
"prepublish": "npm run tslint && npm run test && rm -rf lib && tsc"
},
"repository": {
"type": "git",
Expand Down
2 changes: 0 additions & 2 deletions test/mocha.opts

This file was deleted.

32 changes: 9 additions & 23 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,14 @@
"sourceMap": true,
"outDir": "./lib"
},
"buildOnSave": true,
"compileOnSave": false,
"formatCodeOptions": {
"indentSize": 2,
"tabSize": 2,
"newLineCharacter": "\n",
"convertTabsToSpaces": true,
"insertSpaceAfterCommaDelimiter": true,
"insertSpaceAfterSemicolonInForStatements": true,
"insertSpaceBeforeAndAfterBinaryOperators": true,
"insertSpaceAfterKeywordsInControlFlowStatements": true,
"insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
"placeOpenBraceOnNewLineForFunctions": false,
"placeOpenBraceOnNewLineForControlBlocks": false
},
"exclude": [
"lib",
"node_modules",
"graviton-typings",
"test",
"integration-test",
"dist"
"files": [
"node_modules/@graviton/graviton-typings/typings/node-fetch/node-fetch.d.ts",
"node_modules/@graviton/graviton-typings/typings/btoa/btoa.d.ts",
"node_modules/@graviton/graviton-typings/typings/form-urlencoded/form-urlencoded.d.ts"
],
"include": [
"src/**/*",
"test/**/*",
"integration-test/**/*"
]
}
24 changes: 0 additions & 24 deletions typings.json

This file was deleted.

0 comments on commit eb71a39

Please sign in to comment.