Skip to content

Commit

Permalink
v1.1.3
Browse files Browse the repository at this point in the history
- Modified VSC extensions
    - Commented out Alpine Intellisense until fix
    - Added PHP Contstructor and its keybinding
    - Added Laravel Goto Env
- Moved Prettier config to a file
- Disabled blade snippet suggestion
- Written about using Expose
  • Loading branch information
GoodM4ven committed Jun 6, 2023
1 parent 14f885b commit 1c6c3b8
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ This way, I don't have to worry about the things I've mentioned, plus I gain the
- MinIO
- Active Services
- Expose
- Use `expose share https://[site-name].test` to work properly

</p>
</details>
Expand Down Expand Up @@ -153,7 +154,7 @@ This way, I don't have to worry about the things I've mentioned, plus I gain the
That's it. You'll have your first project accessible in the end (displaying the site's URL too). JUST be PATIENT! `:)`
> **Warning**
> Please remember to install the "recommended extensions" after opening the VSC Workspace as prompted to, or "Show Recommended Extensions" from the command palette if not.
> Please remember to install the "recommended extensions" after opening the VSC Workspace as prompted to, or "Show Recommended Extensions" from the command palette if not. I found the best way to deal with this is to add them to your VSC profile's extensions, but then disable them, and every time you open a new workspace (project), you enable them for the workspace only.

> **Note**
> You're free to take a look at and apply the VSC [settings](./files/.opinionated/settings.json) I'm using locally, as well as their complete [extension list](./files/.opinionated/extensions.md). (You can also set up both in their own "tall" VSC profile or something)
Expand All @@ -166,6 +167,7 @@ That's it. You'll have your first project accessible in the end (displaying the
## Todos For Development:
- [ ] Allow html attribute suggestion without endless blade snippets then enable blade snippet suggestions again
- [ ] Add the rest of the laravel stacks
- [ ] Link to the repos of all the packages in the stack list
- [ ] Auto-complete or suggestion mechanism while deleting the project
Expand Down
5 changes: 5 additions & 0 deletions files/.opinionated/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"proseWrap": "always",
"singleQuote": true,
"tabWidth": 4
}
3 changes: 2 additions & 1 deletion files/.opinionated/extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
> **Note**: Some are workspace-level extensions; you find them in the workspace [settings](../.shared/tall.code-workspace) file.
- [patbenatar.advanced-new-file](https://github.com/patbenatar/vscode-advanced-new-file)
- [pcbowers.alpine-intellisense](https://github.com/pcbowers/alpine-intellisense)
- [formulahendry.auto-rename-tag](https://github.com/formulahendry/vscode-auto-rename-tag)
- [chouzz.vscode-better-align](https://github.com/chouzz/vscode-better-align)
- [aaron-bond.better-comments](https://github.com/aaron-bond/better-comments)
Expand All @@ -15,6 +14,7 @@
- [Equinusocio.vsc-community-material-theme](https://github.com/material-theme/vsc-community-material-theme) (Darker High Contrast)
- [moshfeu.compare-folders](https://github.com/moshfeu/vscode-compare-folders)
- [cshum.convert-newline-list-to-array](https://github.com/colinshum/vsc-newline-to-array)
- [ctf0.env-symbol-provider](https://github.com/ctf0/env-symbol-provider.git)
- [sleistner.vscode-fileutils](https://github.com/sleistner/vscode-fileutils)
- [prantlf.fold-on-open](https://github.com/prantlf/vscode-fold-on-open)
- [eamodio.gitlens](https://github.com/gitkraken/vscode-gitlens)
Expand All @@ -32,6 +32,7 @@
- [PKief.material-icon-theme](https://github.com/PKief/vscode-material-icon-theme)
- [ryuta46.multi-command](https://github.com/ryuta46/vscode-multi-command)
- [ctf0.php-array-symbols](https://github.com/ctf0/vscode-php-array-symbol-provider)
- [MehediDracula.php-constructor](https://github.com/MehediDracula/PHP-Constructor)
- [xdebug.php-debug](https://github.com/xdebug/vscode-php-debug)
- [bmewburn.vscode-intelephense-client](https://github.com/bmewburn/vscode-intelephense)
- [ctf0.php-namespace-resolver](https://github.com/ctf0/php-namespace-resolver)
Expand Down
5 changes: 5 additions & 0 deletions files/.opinionated/keybindings.json
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,11 @@
"command": "wrap.with",
"when": "editorHasSelection"
},
// [PHP Constructor]
{
"key": "shift+alt+i",
"command": "phpConstructor.insert"
},
// [PHP Namespace Resolver]
{
"key": "ctrl+alt+e",
Expand Down
10 changes: 4 additions & 6 deletions files/.opinionated/project.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"recommendations": [
"pcbowers.alpine-intellisense",
"ctf0.laravel-goto-config",
"ctf0.laravel-goto-env",
"ctf0.laravel-goto-lang",
"ctf0.laravel-goto-view",
"porifa.laravel-intelephense",
Expand All @@ -19,8 +20,8 @@
}
],
"settings": {
// [Alpine.js IntelliSense]
"alpine-intellisense.settings.languageScopes": "blade",
// // [Alpine.js IntelliSense]
// "alpine-intellisense.settings.languageScopes": "blade", // TODO until intellisense is limited to html tags
// [Laravel Goto View]
"laravelGotoView.showCodeLens": false,
// [PHP Resolver]
Expand All @@ -30,10 +31,7 @@
"phpResolver.phpStandards": "PSR2,<projectsDirectory>/.shared/phpcs.xml",
// [Prettier - Code formatter]
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.requireConfig": false,
"prettier.tabWidth": 4,
"prettier.singleQuote": true,
"prettier.proseWrap": "always",
"prettier.requireConfig": true,
// [Tailwind CSS IntelliSense]
"files.associations": {
"*.css": "tailwindcss"
Expand Down
3 changes: 2 additions & 1 deletion files/.opinionated/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@
// [Laravel Blade formatter]
"[blade]": {
"editor.defaultFormatter": "shufo.vscode-blade-formatter",
"editor.autoClosingBrackets": "always"
"editor.autoClosingBrackets": "always",
"editor.suggest.showSnippets": false
},
"bladeFormatter.format.wrapAttributes": "force-expand-multiline",
"bladeFormatter.format.sortHtmlAttributes": "none",
Expand Down
5 changes: 5 additions & 0 deletions scripts/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,11 @@ php artisan db:seed --quiet

echo -e "\nAdded an environment-user for quick generation."

# Prettier config
sudo cp $TALL_STACKER_DIRECTORY/files/.opinionated/.prettierrc ./.prettierrc

echo -e "\nCopied Prettier configuration file."

# Updated .gitignore file
sudo cp $TALL_STACKER_DIRECTORY/files/.gitignore ./

Expand Down

0 comments on commit 1c6c3b8

Please sign in to comment.