Skip to content

Commit

Permalink
Clean up project structure and bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjrv committed Feb 28, 2018
1 parent de40569 commit 2673605
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
node_modules/
typings/
*.js
*.d.ts
dist/
package-lock.json
*.lock
*.log.*
*.log
*.tgz
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
node_modules/
typings/
test/
src/
package-lock.json
.travis.yml
*.lock
*.log.*
*.log
*.tgz
3 changes: 3 additions & 0 deletions bin/docts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

require('../dist/cli.js');
3 changes: 0 additions & 3 deletions docts-cli.js

This file was deleted.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"name": "docts",
"version": "0.1.0",
"version": "0.2.0",
"description": "README.md API section autogenerator for TypeScript projects",
"main": "dist/docts.js",
"typings": "dist/docts.d.ts",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"bin": {
"docts": "docts-cli.js"
"docts": "bin/docts"
},
"scripts": {
"tsc": "tsc",
"docts": "node docts-cli.js",
"typings": "typings",
"prepublish": "typings install && tsc",
"docts": "node bin/docts",
"prepublish": "tsc",
"test": "npm link docts && docts --help"
},
"author": "Juha Järvi",
Expand All @@ -25,12 +24,13 @@
},
"homepage": "https://github.com/charto/docts#readme",
"dependencies": {
"bluebird": "^3.4.0",
"readts": "~0.1.0",
"bluebird": "^3.5.1",
"readts": "~0.2.0",
"ts-git": "~0.1.0"
},
"devDependencies": {
"typescript": "^1.8.10",
"typings": "~0.8.1"
"@types/bluebird": "^3.5.20",
"@types/node": "^8.9.4",
"typescript": "^2.7.2"
}
}
6 changes: 0 additions & 6 deletions src/docts.ts

This file was deleted.

6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// This file is part of docts, copyright (c) 2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

export { Section, Markdown } from './Markdown';
export { DocBuilder } from './DocBuilder';
export { patchReadme } from './Patcher';
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"declaration": true,
"experimentalDecorators": true,
"lib": [ "es5", "es2015.collection" ],
"module": "commonjs",
"moduleResolution": "node",
"noImplicitAny": true,
Expand All @@ -10,9 +11,7 @@
"target": "es5"
},
"files": [
"typings/main.d.ts",

"src/docts.ts",
"src/index.ts",
"src/cli.ts"
]
}

0 comments on commit 2673605

Please sign in to comment.