Skip to content

Commit b21b271

Browse files
committed
initial commit
0 parents  commit b21b271

File tree

150 files changed

+50252
-0
lines changed

Some content is hidden

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

150 files changed

+50252
-0
lines changed

.cz-config.js

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
module.exports = {
2+
types: [
3+
{ value: 'feat', name: 'feat: A new feature' },
4+
{ value: 'fix', name: 'fix: A bug fix' },
5+
{ value: 'docs', name: 'docs: Documentation only changes' },
6+
{
7+
value: 'style',
8+
name: 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)',
9+
},
10+
{
11+
value: 'refactor',
12+
name: 'refactor: A code change that neither fixes a bug nor adds a feature',
13+
},
14+
{
15+
value: 'perf',
16+
name: 'perf: A code change that improves performance',
17+
},
18+
{ value: 'test', name: 'test: Adding missing tests' },
19+
{
20+
value: 'chore',
21+
name: 'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation',
22+
},
23+
{ value: 'revert', name: 'revert: Revert to a commit' },
24+
{ value: 'WIP', name: 'WIP: Work in progress' },
25+
],
26+
27+
scopes: [{ name: 'accounts' }, { name: 'admin' }, { name: 'exampleScope' }, { name: 'changeMe' }],
28+
29+
usePreparedCommit: false, // to re-use commit from ./.git/COMMIT_EDITMSG
30+
allowTicketNumber: false,
31+
isTicketNumberRequired: false,
32+
ticketNumberPrefix: 'TICKET-',
33+
ticketNumberRegExp: '\\d{1,5}',
34+
35+
// it needs to match the value for field type. Eg.: 'fix'
36+
/*
37+
scopeOverrides: {
38+
fix: [
39+
40+
{name: 'merge'},
41+
{name: 'style'},
42+
{name: 'e2eTest'},
43+
{name: 'unitTest'}
44+
]
45+
},
46+
*/
47+
// override the messages, defaults are as follows
48+
messages: {
49+
type: "Select the type of change that you're committing:",
50+
scope: '\nDenote the SCOPE of this change (optional):',
51+
// used if allowCustomScopes is true
52+
customScope: 'Denote the SCOPE of this change:',
53+
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
54+
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
55+
breaking: 'List any BREAKING CHANGES (optional):\n',
56+
footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
57+
confirmCommit: 'Are you sure you want to proceed with the commit above?',
58+
},
59+
60+
allowCustomScopes: true,
61+
allowBreakingChanges: ['feat', 'fix'],
62+
// skip any questions you want
63+
// skipQuestions: ['scope', 'body'],
64+
65+
// limit subject length
66+
subjectLimit: 100,
67+
// breaklineChar: '|', // It is supported for fields body and footer.
68+
// footerPrefix : 'ISSUES CLOSED:'
69+
// askForBreakingChangeFirst : true, // default is false
70+
};

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 2
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml,vue}]
15+
indent_size = 2
16+
17+
[docker-compose.yml]
18+
indent_size = 4

.editorconfig copy

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml,vue}]
15+
indent_size = 2
16+
17+
[docker-compose.yml]
18+
indent_size = 4

.env.example

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
APP_NAME=Laravel
2+
APP_ENV=local
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_URL=http://localhost
6+
7+
LOG_CHANNEL=stack
8+
LOG_DEPRECATIONS_CHANNEL=null
9+
LOG_LEVEL=debug
10+
11+
DB_CONNECTION=mysql
12+
DB_HOST=127.0.0.1
13+
DB_PORT=3306
14+
DB_DATABASE=schema_maker
15+
DB_USERNAME=root
16+
DB_PASSWORD=
17+
18+
BROADCAST_DRIVER=log
19+
CACHE_DRIVER=file
20+
FILESYSTEM_DISK=local
21+
QUEUE_CONNECTION=sync
22+
SESSION_DRIVER=file
23+
SESSION_LIFETIME=120
24+
25+
MEMCACHED_HOST=127.0.0.1
26+
27+
REDIS_HOST=127.0.0.1
28+
REDIS_PASSWORD=null
29+
REDIS_PORT=6379
30+
31+
MAIL_MAILER=smtp
32+
MAIL_HOST=mailhog
33+
MAIL_PORT=1025
34+
MAIL_USERNAME=null
35+
MAIL_PASSWORD=null
36+
MAIL_ENCRYPTION=null
37+
MAIL_FROM_ADDRESS="hello@example.com"
38+
MAIL_FROM_NAME="${APP_NAME}"
39+
40+
AWS_ACCESS_KEY_ID=
41+
AWS_SECRET_ACCESS_KEY=
42+
AWS_DEFAULT_REGION=us-east-1
43+
AWS_BUCKET=
44+
AWS_USE_PATH_STYLE_ENDPOINT=false
45+
46+
PUSHER_APP_ID=
47+
PUSHER_APP_KEY=
48+
PUSHER_APP_SECRET=
49+
PUSHER_HOST=
50+
PUSHER_PORT=443
51+
PUSHER_SCHEME=https
52+
PUSHER_APP_CLUSTER=mt1
53+
54+
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
55+
VITE_PUSHER_HOST="${PUSHER_HOST}"
56+
VITE_PUSHER_PORT="${PUSHER_PORT}"
57+
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
58+
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

.eslintrc.cjs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// eslint-disable-next-line no-undef
2+
module.exports = {
3+
'env': {
4+
'browser': true,
5+
'es2021': true
6+
},
7+
'extends': [
8+
'eslint:recommended',
9+
'plugin:vue/essential'
10+
],
11+
'parserOptions': {
12+
'ecmaVersion': 'latest',
13+
'sourceType': 'module'
14+
},
15+
'plugins': [
16+
'vue'
17+
],
18+
'rules': {
19+
'indent': [
20+
'error',
21+
2
22+
],
23+
'linebreak-style': [
24+
'error',
25+
'unix'
26+
],
27+
'quotes': [
28+
'error',
29+
'single'
30+
],
31+
'semi': [
32+
'error',
33+
'never'
34+
]
35+
}
36+
}

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* text=auto
2+
3+
*.blade.php diff=html
4+
*.css diff=css
5+
*.html diff=html
6+
*.md diff=markdown
7+
*.php diff=php
8+
9+
/.github export-ignore
10+
CHANGELOG.md export-ignore
11+
.styleci.yml export-ignore

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/node_modules
2+
/public/build
3+
/public/hot
4+
/public/storage
5+
/storage/*.key
6+
/vendor
7+
.env
8+
.env.backup
9+
.env.production
10+
.phpunit.result.cache
11+
Homestead.json
12+
Homestead.yaml
13+
auth.json
14+
npm-debug.log
15+
yarn-error.log
16+
/.fleet
17+
/.idea
18+
/.vscode

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit "$1"

.php-cs-fixer.php

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?php declare(strict_types=1);
2+
3+
require_once __DIR__.'/vendor/autoload.php';
4+
5+
use Zvive\Fixer\SharedConfig;
6+
use Zvive\Fixer\Rulesets\ZviveRuleset;
7+
use Zvive\Fixer\Finders\LaravelProjectFinder;
8+
9+
$finder = LaravelProjectFinder::create(__DIR__)->notName('*.stub');
10+
$rules = [
11+
// '@PSR12' => true,
12+
'ordered_class_elements' => [
13+
'order' => [
14+
'use_trait',
15+
'case',
16+
'constant',
17+
'property',
18+
'construct',
19+
'destruct',
20+
'magic',
21+
'phpunit',
22+
'method_abstract',
23+
'method',
24+
],
25+
'sort_algorithm' => 'none',
26+
],
27+
'general_phpdoc_annotation_remove' => [],
28+
'phpdoc_to_comment' => ['ignored_tags' => ['internal', 'var', 'mixin', 'todo']],
29+
'comment_to_phpdoc' => ['ignored_tags' => ['todo']],
30+
'no_superfluous_phpdoc_tags' => false,
31+
'ordered_imports' => [
32+
'sort_algorithm' => 'length',
33+
],
34+
'use_arrow_functions' => false,
35+
'native_function_invocation' => [
36+
'exclude' => ['beforeAll', 'afterAll', 'beforeEach', 'afterEach', 'it', 'test', 'uses', 'usesBeforeAll', 'usesBeforeEach', 'dd', 'dump', 'before', 'after', 'config', 'env', 'factory', 'artisan', 'cache', 'app_path', 'base_path', 'database_path'],
37+
'include' => ['@compiler_optimized'],
38+
'scope' => 'namespaced',
39+
'strict' => true,
40+
],
41+
// 'no_extra_blank_lines' => [
42+
// 'tokens' => [
43+
// 'attribute',
44+
// 'curly_brace_block',
45+
// 'parenthesis_brace_block',
46+
// 'default',
47+
// 'square_brace_block',
48+
// 'extra',
49+
// 'use',
50+
// 'use_trait',
51+
// ],
52+
// ],
53+
54+
'binary_operator_spaces' => [
55+
'default' => 'align_single_space_minimal',
56+
'operators' => [
57+
'=>' => 'align_single_space_minimal',
58+
// '->' => 'align_single_space_minimal',
59+
'=' => 'align_single_space_minimal',
60+
// '?' => 'align_single_space_minimal',
61+
'??' => 'align_single_space_minimal',
62+
// '?:' => 'align_single_space_minimal',
63+
],
64+
],
65+
66+
'method_argument_space' => [
67+
'on_multiline' => 'ensure_fully_multiline',
68+
],
69+
];
70+
71+
return SharedConfig::create($finder, new ZviveRuleset($rules));

0 commit comments

Comments
 (0)