Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: initialize dev config #3

Merged
merged 10 commits into from
Sep 19, 2024
7 changes: 2 additions & 5 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,9 @@ RUN apt-get update \
&& pecl install swoole-5.1.2 \
&& echo "extension=swoole.so" > /etc/php/8.3/cli/conf.d/20-swoole.ini \
&& curl -sLS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer \
&& apt-get install -y nodejs \
&& npm install -g bun \
&& corepack install -g yarn \
&& corepack install -g pnpm \
&& corepack enable pnpm \
&& apt-get install -y postgresql-client-$POSTGRES_VERSION \
&& apt-get install -y nodejs \
&& npm install -g npm bun yarn pnpm \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Expand Down
46 changes: 23 additions & 23 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
// https://aka.ms/devcontainer.json
{
"name": "Existing Docker Compose (Extend)",
"dockerComposeFile": [
"../docker-compose.yml"
],
"service": "laravel.test",
"workspaceFolder": "/var/www/html",
"customizations": {
"vscode": {
"extensions": [
// "mikestead.dotenv",
// "amiralizadeh9480.laravel-extra-intellisense",
// "ryannaddy.laravel-artisan",
// "onecentlin.laravel5-snippets",
// "onecentlin.laravel-blade"
],
"settings": {}
}
},
"remoteUser": "sail",
"postCreateCommand": "chown -R 1000:1000 /var/www/html 2>/dev/null || true"
// "forwardPorts": [],
// "runServices": [],
// "shutdownAction": "none",
"name": "Dummy App",
"dockerComposeFile": [
"../docker-compose.yml"
],
"service": "laravel.test",
"workspaceFolder": "/var/www/html",
"customizations": {
"vscode": {
"extensions": [
// "mikestead.dotenv",
// "amiralizadeh9480.laravel-extra-intellisense",
// "ryannaddy.laravel-artisan",
// "onecentlin.laravel5-snippets",
// "onecentlin.laravel-blade"
],
"settings": {}
}
},
"remoteUser": "sail",
"postCreateCommand": "chown -R 1000:1000 /var/www/html 2>/dev/null || true"
// "forwardPorts": [],
// "runServices": [],
// "shutdownAction": "none",
}
15 changes: 15 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Ignored directories
.devcontainer/
.github/
.vscode/
node_modules/
vendor/

# Ignored files
.dockerignore
.editorconfig
.gitattributes
.gitignore
#.env
.env.*
docker-compose.yml
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @feryardiant
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ vendor

# Node.js lock files
.pnpm-store
package-lock.json
# pnpm-lock.yaml
#package-lock.json
pnpm-lock.yaml
yarn.lock

# But Keep these
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) Fery Wardiyanto <ferywardiyanto@gmail.com>

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.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "laravel/laravel",
"name": "feryardiant/test-deploy",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"description": "Dummy Laravel app to learn how to deploy.",
"keywords": [
"laravel",
"framework"
Expand All @@ -14,6 +14,7 @@
},
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel/breeze": "^2.2",
"laravel/pint": "^1.13",
"laravel/sail": "^1.26",
"mockery/mockery": "^1.6",
Expand Down
62 changes: 61 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'use strict'

import antfu from '@antfu/eslint-config'

export default antfu(
{
ignores: ['tests/reports/**'],
},
{
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
)
29 changes: 29 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"include": ["resources/client/**/*", "resources/js/**/*"],
"exclude": ["public/build", "node_modules"],
"compilerOptions": {
"baseUrl": ".",
"outDir": "public",
"module": "esnext",
"target": "esnext",
"jsx": "preserve",
"strict": true,
"noEmit": true,
"sourceMap": true,
"moduleResolution": "node",
"skipLibCheck": true,
"declaration": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"useDefineForClassFields": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"lib": ["ESNext", "DOM"],
"typeRoots": ["resources/client"],
"types": ["vite/client"],
"paths": {
"~/*": ["resources/client/*"],
"@/*": ["resources/js/*"]
}
}
}
Loading