From 1d2e76132df64a70412359131c3e26639a681644 Mon Sep 17 00:00:00 2001 From: sockenklaus Date: Fri, 30 Jun 2023 01:32:47 +0200 Subject: [PATCH] second commit --- .adonisrc.json | 61 +++++++++++++++++++++++ .editorconfig | 15 ++++++ .env.example | 7 +++ .env.test | 3 ++ .gitignore | 130 ++++++++++++++++++++++++++++++++++++++++++++++++ .prettierignore | 1 + 6 files changed, 217 insertions(+) create mode 100644 .adonisrc.json create mode 100644 .editorconfig create mode 100644 .env.example create mode 100644 .env.test create mode 100644 .gitignore create mode 100644 .prettierignore diff --git a/.adonisrc.json b/.adonisrc.json new file mode 100644 index 0000000..22e5ad4 --- /dev/null +++ b/.adonisrc.json @@ -0,0 +1,61 @@ +{ + "typescript": true, + "commands": [ + "./commands", + "@adonisjs/core/build/commands/index.js", + "@adonisjs/repl/build/commands", + "@eidellev/inertia-adonisjs/build/commands" + ], + "exceptionHandlerNamespace": "App/Exceptions/Handler", + "aliases": { + "App": "app", + "Config": "config", + "Database": "database", + "Contracts": "contracts" + }, + "preloads": [ + "./start/routes", + "./start/kernel", + { + "file": "./start/inertia", + "environment": [ + "web" + ] + } + ], + "providers": [ + "./providers/AppProvider", + "@adonisjs/core", + "@adonisjs/session", + "@adonisjs/view", + "@adonisjs/shield", + "@eidellev/inertia-adonisjs" + ], + "metaFiles": [ + { + "pattern": "public/**", + "reloadServer": false + }, + { + "pattern": "resources/views/**/*.edge", + "reloadServer": false + } + ], + "aceProviders": [ + "@adonisjs/repl" + ], + "tests": { + "suites": [ + { + "name": "functional", + "files": [ + "tests/functional/**/*.spec(.ts|.js)" + ], + "timeout": 60000 + } + ] + }, + "testProviders": [ + "@japa/preset-adonis/TestsProvider" + ] +} diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5ea5f4e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.json] +insert_final_newline = false + +[*.md] +trim_trailing_whitespace = false diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..4730669 --- /dev/null +++ b/.env.example @@ -0,0 +1,7 @@ +PORT=3333 +HOST=0.0.0.0 +NODE_ENV=development +APP_KEY=7iS_XxaUsVuan9GQZgo3PJ4g2C8q_tDP +DRIVE_DISK=local +SESSION_DRIVER=cookie +CACHE_VIEWS=false diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..6d08265 --- /dev/null +++ b/.env.test @@ -0,0 +1,3 @@ +NODE_ENV=test +ASSETS_DRIVER=fake +SESSION_DRIVER=memory diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6a7d6d8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,130 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variable files +.env +.env.development.local +.env.test.local +.env.production.local +.env.local + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# vuepress v2.x temp and cache directory +.temp +.cache + +# Docusaurus cache and generated files +.docusaurus + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* \ No newline at end of file diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..378eac2 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +build