Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
leizongmin committed Sep 3, 2018
1 parent 7950d82 commit babcab0
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@ typings/

# next.js build output
.next

dist
5 changes: 5 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// .prettierrc.js
module.exports = {
printWidth: 120,
trailingComma: "all",
};
41 changes: 40 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,41 @@
# schema-manager
# @tuzhanai/schema-manager

数据Schema管理器

## 安装

```bash
npm i @tuzhanai/schema-manager -S
```

## 使用方法

```typescript

```

## License

```text
MIT License
Copyright (c) 2018 兔展
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
40 changes: 40 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "@tuzhanai/schema-manager",
"version": "1.0.0",
"description": "数据Schema管理器",
"main": "dist/lib/index.js",
"typings": "dist/lib/index.d.ts",
"files": [
"dist/lib"
],
"scripts": {
"test": "mocha --require ts-node/register src/test/**/*.spec.ts",
"prepublish": "npm test && rm -rf dist && tsc"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tuzhanai/schema-manager.git"
},
"keywords": [
"schema",
"manager"
],
"author": "Zongmin Lei <leizongmin@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/tuzhanai/schema-manager/issues"
},
"homepage": "https://github.com/tuzhanai/schema-manager#readme",
"devDependencies": {
"@types/chai": "^4.1.4",
"@types/mocha": "^5.2.5",
"chai": "^4.1.2",
"mocha": "^5.2.0",
"ts-node": "^7.0.1",
"typescript": "^3.0.3"
},
"dependencies": {
"@tuzhanai/value-type-manager": "^1.0.1",
"@types/node": "^10.9.4"
}
}
15 changes: 15 additions & 0 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* @tuzhanai/schema-manager
*
* @author Zongmin Lei <leizongmin@gmail.com>
*/

import ValueTypeManager from "@tuzhanai/value-type-manager";

export interface SchemaManagerOptions {}

export class SchemaManager {
constructor(protected readonly options: SchemaManagerOptions = {}) {}
}

export default SchemaManager;
16 changes: 16 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
"rootDir": "src",
"outDir": "dist",
"strict": true,
"noUnusedLocals": true,
"pretty": true,
"experimentalDecorators": true,
"sourceMap": false,
"declaration": true
}
}

0 comments on commit babcab0

Please sign in to comment.