Skip to content

Commit 1e2a9b7

Browse files
committed
feat: profile and bouncer added
0 parents  commit 1e2a9b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+9343
-0
lines changed

.adonisrc.json

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"typescript": true,
3+
"commands": [
4+
"./commands",
5+
"@adonisjs/core/build/commands/index.js",
6+
"@adonisjs/repl/build/commands",
7+
"@adonisjs/lucid/build/commands",
8+
"@adonisjs/bouncer/build/commands"
9+
],
10+
"exceptionHandlerNamespace": "App/Exceptions/Handler",
11+
"aliases": {
12+
"App": "app",
13+
"Config": "config",
14+
"Database": "database",
15+
"Contracts": "contracts"
16+
},
17+
"preloads": [
18+
"./start/routes",
19+
"./start/kernel",
20+
"./start/bouncer"
21+
],
22+
"providers": [
23+
"./providers/AppProvider",
24+
"@adonisjs/core",
25+
"@adonisjs/lucid",
26+
"@adonisjs/auth",
27+
"@adonisjs/bouncer"
28+
],
29+
"aceProviders": [
30+
"@adonisjs/repl"
31+
],
32+
"tests": {
33+
"suites": [
34+
{
35+
"name": "functional",
36+
"files": [
37+
"tests/functional/**/*.spec.ts"
38+
],
39+
"timeout": 60000
40+
}
41+
]
42+
},
43+
"testProviders": [
44+
"@japa/preset-adonis/TestsProvider"
45+
]
46+
}

.editorconfig

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
[*]
3+
indent_style = space
4+
indent_size = 2
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.json]
11+
insert_final_newline = ignore
12+
13+
[*.md]
14+
trim_trailing_whitespace = false

.env.example

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
PORT=3333
2+
HOST=0.0.0.0
3+
NODE_ENV=development
4+
APP_KEY=OLwae1m7ZvTR_YWgSnJGbU9lzqwjfkL1
5+
DRIVE_DISK=local
6+
DB_CONNECTION=pg # sqlite, pg
7+
PG_HOST=localhost
8+
PG_PORT=5432
9+
PG_USER=lucid
10+
PG_PASSWORD=
11+
PG_DB_NAME=lucid

.env.test

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
NODE_ENV=test
2+
DB_CONNECTION=sqlite

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
node_modules
3+
build
4+
coverage
5+
.vscode
6+
.env
7+
tmp

.nycrc.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"all": true,
3+
"reporter": ["lcov", "text"],
4+
"reporterOptions": { "mochaFile": "coverage/junit-report.xml" },
5+
"temp-dir": "tests/coverage/.nyc_output",
6+
"include": [
7+
"app/Controllers/**/*.*",
8+
"app/Exceptions/**/*.*",
9+
"app/Models/**/*.*",
10+
"app/Services/**/*.*",
11+
"app/Validators/**/*.*",
12+
"start/routes.ts"
13+
]
14+
}

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build
2+
coverage
3+
node_modules

ace

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
|--------------------------------------------------------------------------
3+
| Ace Commands
4+
|--------------------------------------------------------------------------
5+
|
6+
| This file is the entry point for running ace commands.
7+
|
8+
*/
9+
10+
require('reflect-metadata')
11+
require('source-map-support').install({ handleUncaughtExceptions: false })
12+
13+
const { Ignitor } = require('@adonisjs/core/build/standalone')
14+
new Ignitor(__dirname)
15+
.ace()
16+
.handle(process.argv.slice(2))

0 commit comments

Comments
 (0)