Skip to content

Commit

Permalink
Add package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Aug 17, 2018
1 parent 4e27d05 commit 9d8f778
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 0 deletions.
89 changes: 89 additions & 0 deletions package.json
@@ -0,0 +1,89 @@
{
"name": "casbin-sequelize-adapter",
"version": "1.0.0",
"description": "Sequelize adapter for Node-Casbin",
"main": "lib/adapter.js",
"typings": "lib/adapter.d.ts",
"scripts": {
"precommit": "lint-staged",
"prepublish": "yarn run lint && yarn run test && yarn build",
"build": "rimraf lib && tsc",
"lint": "tslint \"src/**/*.ts\"",
"fix": "tslint \"src/**/*.ts\" --fix",
"test": "jest"
},
"devDependencies": {
"@types/jest": "^23.3.1",
"@types/lodash": "^4.14.113",
"@types/node": "^10.5.3",
"husky": "^0.14.3",
"jest": "^23.4.2",
"lint-staged": "^7.2.0",
"rimraf": "^2.6.2",
"ts-jest": "22.4.6",
"tslint": "^5.11.0",
"typescript": "^2.9.2",
"coveralls": "^3.0.2"
},
"dependencies": {
"casbin": "^1.1.0",
"sequelize": "^4.38.0",
"lodash": "^4.17.10"
},
"files": [
"lib",
"examples"
],
"homepage": "https://casbin.org",
"repository": {
"type": "git",
"url": "https://github.com/node-casbin/casbin-sequelize-adapter.git"
},
"keywords": [
"casbin",
"node-casbin",
"adapter",
"sequelize",
"access-control",
"authorization",
"auth",
"authz",
"acl",
"rbac",
"abac",
"orm"
],
"author": "Node-Casbin",
"licenses": [
{
"type": "Apache-2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0"
}
],
"bugs": {
"url": "https://github.com/node-casbin/sequelize-adapter/issues"
},
"lint-staged": {
"*.{ts,js}": [
"tslint --fix",
"git add"
]
},
"jest": {
"testURL": "http://localhost",
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
"testMatch": [
"**/test/*.+(ts|tsx)"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}
}
13 changes: 13 additions & 0 deletions tsconfig.json
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
"declarationDir": "lib",
"strict": true,
"outDir": "lib",
"strictPropertyInitialization": false
},
"include": ["src/**/*.ts"]
}
21 changes: 21 additions & 0 deletions tslint.json
@@ -0,0 +1,21 @@
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rules": {
"max-classes-per-file": false,
"interface-name": false,
"no-console": [false],
"arrow-parens": false,
"member-ordering": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"no-empty": false,
"quotemark": [true, "single"],
"trailing-comma": false,
"max-line-length": false
},
"rulesDirectory": []
}

0 comments on commit 9d8f778

Please sign in to comment.