Skip to content

Commit

Permalink
feat(example): update example code
Browse files Browse the repository at this point in the history
  • Loading branch information
vvakame committed Aug 19, 2016
1 parent b858991 commit 3b365be
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 40 deletions.
23 changes: 0 additions & 23 deletions example/dtsm.json

This file was deleted.

1 change: 1 addition & 0 deletions example/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ tsfmt
dryRun: true,
replace: false,
verify: false,
tsconfig: true,
tslint: true,
editorconfig: true,
tsfmt: true
Expand Down
34 changes: 18 additions & 16 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
"name": "use-typescript-formatter-api-sample",
"private": true,
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"setup": "dtsm install",
"build": "tsc -p ./",
"exec": "node index",
"test": "npm run setup && npm run build && npm run exec"
},
"author": "vvakame+dev@gmail.com",
"license": "MIT",
"dependencies": {
"typescript-formatter": "^1.0.0"
}
"name": "use-typescript-formatter-api-sample",
"private": true,
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"build": "tsc -p ./",
"exec": "node index",
"test": "npm run build && npm run exec"
},
"author": "vvakame+dev@gmail.com",
"license": "MIT",
"dependencies": {
"typescript-formatter": "^3.0.0"
},
"devDependencies": {
"typescript": "^2.0.0"
}
}
10 changes: 9 additions & 1 deletion example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"lib": [
"es2015"
],
"noImplicitAny": true,
"rootDir": ".",
"strictNullChecks": true,
"noEmitOnError": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"sourceMap": false,
"listFiles": true
},
Expand Down

0 comments on commit 3b365be

Please sign in to comment.