Skip to content

Commit

Permalink
chore: setup adonisjs instructions and publish files
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Mar 24, 2020
1 parent 8ed7679 commit b721a21
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
38 changes: 31 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@
"name": "@adonisjs/auth",
"version": "3.1.0",
"description": "Offical authentication provider for Adonis framework",
"main": "build/providers/AuthProvider.js",
"files": [
"build/adonis-typings",
"build/providers",
"build/src",
"build/templates"
],
"types": "build/adonis-typings/index.d.ts",
"scripts": {
"mrm": "mrm --preset=@adonisjs/mrm-preset",
"pretest": "npm run lint",
"test": "node japaFile.js",
"lint": "tslint --project tsconfig.json",
"clean": "del build",
"copyfiles": "copyfiles \"templates/**/*.txt\" build",
"compile": "npm run lint && npm run clean && tsc",
"build": "npm run compile",
"build": "npm run compile && npm run copyfiles",
"commit": "git-cz",
"release": "np",
"version": "npm run build"
Expand Down Expand Up @@ -43,6 +52,7 @@
"@poppinss/dev-utils": "^1.0.4",
"@types/node": "^13.9.2",
"commitizen": "^4.0.3",
"copyfiles": "^2.2.0",
"cz-conventional-changelog": "^3.1.0",
"del-cli": "^3.0.0",
"doctoc": "^1.4.0",
Expand All @@ -68,12 +78,6 @@
".ts"
]
},
"main": "build/index.js",
"files": [
"build/src",
"build/index.d.ts",
"build/index.js"
],
"husky": {
"hooks": {
"pre-commit": "doctoc README.md --title='## Table of contents' && git add README.md",
Expand All @@ -94,5 +98,25 @@
"@poppinss/utils": "^2.1.2",
"array-to-sentence": "^2.0.0",
"jose": "^1.25.0"
},
"adonisjs": {
"templates": {
"config": [
{
"src": "config.txt",
"dest": "auth"
}
],
"contracts": [
{
"src": "contract.txt",
"dest": "auth"
}
]
},
"types": "@adonisjs/auth",
"providers": [
"@adonisjs/auth"
]
}
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
],
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true
"emitDecoratorMetadata": true,
"skipLibCheck": true
}
}

0 comments on commit b721a21

Please sign in to comment.