Skip to content

Commit

Permalink
v2.1.6
Browse files Browse the repository at this point in the history
- Added AutoAnimate awesome package from FormKit
- Reworked my opinionated VSC settings
    - The snippets not showing in blade templates issue is gone
- Restored the separate change-log Github action
- Added missing migration for translation package during creation
- Fixed migration indentation for translation package during creation
- Commented on extensions for VSX unavailability
    - Issues were issued on their repositories to remind them all!
- Fixed the keybinding replacement when not using opinionated Pest
- Modified the the translation-manager filament package config
    - Disabled the flags display feature
    - Hidden quick-translation page from the side-panel
- Updated [README.md]
    - Added a TODO for considering phpredis instead of predis by default
  • Loading branch information
GoodM4ven committed Sep 24, 2023
1 parent 3e3890b commit f0a594d
Show file tree
Hide file tree
Showing 7 changed files with 122 additions and 103 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Update Changelog"

on:
release:
types: [released]

permissions:
contents: write

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: master

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: master
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ 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
- [ ] Run PHPUnit tests with the keybinding (ctrl+shift+r) if in PHPUnit class, and BetterPest's otherwise
- [ ] Consider `phpredis` extension instead of `predis` for both setup and creation scripts
- [ ] Turn the main skeleton scripter into a NativePHP app
- [ ] Selective installation process as a self-deleting Composer package
- [ ] Laravel Prompts
- [ ] Add laravel Vue stack (VILT) with/without SSR
Expand Down
54 changes: 28 additions & 26 deletions files/.opinionated/extensions.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
## VSC Extensions

> **Warning**: Open Source Only
> [!NOTE]<br>Open Source Only
> [!WARNING]<br>Manual updates are required for the extensions that aren't published yet on [Open VSX](https://open-vsx.org)
- [patbenatar.advanced-new-file](https://github.com/patbenatar/vscode-advanced-new-file)
- [pcbowers.alpine-intellisense](https://github.com/pcbowers/alpine-intellisense)
- [pcbowers.alpine-intellisense](https://github.com/pcbowers/alpine-intellisense) [Not on VSX yet]
- [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)
- [m1guelpf.better-pest](https://github.com/m1guelpf/better-pest)
- [calebporzio.better-phpunit](https://github.com/calebporzio/better-phpunit)
- [m1guelpf.better-pest](https://github.com/m1guelpf/better-pest) [Not on VSX yet]
- [calebporzio.better-phpunit](https://github.com/calebporzio/better-phpunit) [Not on VSX yet]
- [wmaurer.change-case](https://github.com/wmaurer/vscode-change-case)
- [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)
- [cshum.convert-newline-list-to-array](https://github.com/colinshum/vsc-newline-to-array) [Not on VSX yet]
- [ctf0.env-symbol-provider](https://github.com/ctf0/env-symbol-provider.git) [Not on VSX yet]
- [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 @@ -22,36 +24,36 @@
- [porifa.laravel-intelephense](https://github.com/porifa/vscode-laraphense)
- [shufo.vscode-blade-formatter](https://github.com/shufo/vscode-blade-formatter)
- [onecentlin.laravel-blade](https://github.com/onecentlin/laravel-blade-snippets-vscode)
- [IHunte.laravel-blade-wrapper](https://github.com/IHunte/Laravel-Blade-Wrapper)
- [austenc.laravel-docs](https://github.com/austenc/vscode-laravel-docs)
- [ctf0.laravel-goto-config](https://github.com/ctf0/laravel-goto-config)
- [ctf0.laravel-goto-env](https://github.com/ctf0/laravel-goto-env)
- [ctf0.laravel-goto-lang](https://github.com/ctf0/laravel-goto-lang)
- [ctf0.laravel-goto-view](https://github.com/ctf0/laravel-goto-view)
- [naoray.laravel-goto-components](https://github.com/Naoray/laravel-goto-components)
- [austenc.livewire-docs](https://github.com/austenc/vscode-livewire-docs)
- [lennardv.livewire-goto-updated](https://github.com/lennardv2/vscode-livewire-goto)
- [cierra.livewire-vscode](https://github.com/cierrateam/vscode-livewire)
- [bierner.markdown-checkbox](https://github.com/mjbvz/vscode-markdown-checkboxes)
- [bierner.markdown-emoji](https://github.com/mjbvz/vscode-markdown-emoji)
- [IHunte.laravel-blade-wrapper](https://github.com/IHunte/Laravel-Blade-Wrapper) [Not on VSX yet]
- [austenc.laravel-docs](https://github.com/austenc/vscode-laravel-docs) [Not on VSX yet]
- [ctf0.laravel-goto-config](https://github.com/ctf0/laravel-goto-config) [Not on VSX yet]
- [ctf0.laravel-goto-env](https://github.com/ctf0/laravel-goto-env) [Not on VSX yet]
- [ctf0.laravel-goto-lang](https://github.com/ctf0/laravel-goto-lang) [Not on VSX yet]
- [ctf0.laravel-goto-view](https://github.com/ctf0/laravel-goto-view) [Not on VSX yet]
- [naoray.laravel-goto-components](https://github.com/Naoray/laravel-goto-components) [Not on VSX yet]
- [austenc.livewire-docs](https://github.com/austenc/vscode-livewire-docs) [Not on VSX yet]
- [lennardv.livewire-goto-updated](https://github.com/lennardv2/vscode-livewire-goto) [Not on VSX yet]
- [cierra.livewire-vscode](https://github.com/cierrateam/vscode-livewire) [Not on VSX yet]
- [bierner.markdown-checkbox](https://github.com/mjbvz/vscode-markdown-checkboxes) [Not on VSX yet]
- [bierner.markdown-emoji](https://github.com/mjbvz/vscode-markdown-emoji) [Not on VSX yet]
- [bierner.markdown-preview-github-styles](https://github.com/mjbvz/vscode-github-markdown-preview-style)
- [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)
- [ctf0.php-array-symbols](https://github.com/ctf0/vscode-php-array-symbol-provider) [Not on VSX yet]
- [MehediDracula.php-constructor](https://github.com/MehediDracula/PHP-Constructor) [Not on VSX yet]
- [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)
- [jeff-hykin.polacode-2019](https://github.com/jeff-hykin/polacode)
- [jeff-hykin.polacode-2019](https://github.com/jeff-hykin/polacode) [Not on VSX yet]
- [csstools.postcss](https://github.com/csstools/postcss-language)
- [esbenp.prettier-vscode](https://github.com/prettier/prettier-vscode)
- [sainoba.px-to-rem](https://github.com/sainoba/vscode-px-to-rem)
- [dbankier.vscode-quick-select](https://github.com/dbankier/vscode-quick-select)
- [sainoba.px-to-rem](https://github.com/sainoba/vscode-px-to-rem) [Not on VSX yet]
- [dbankier.vscode-quick-select](https://github.com/dbankier/vscode-quick-select) [Not on VSX yet]
- [jock.svg](https://github.com/lishu/vscode-svg2)
- [albert.TabOut](https://github.com/albertromkes/tabout)
- [bradlc.vscode-tailwindcss](https://github.com/tailwindlabs/tailwindcss-intellisense)
- [austenc.tailwind-docs](https://github.com/austenc/vscode-tailwind-docs)
- [bourhaouta.tailwindshades](https://github.com/bourhaouta/vscode-tailwindshades)
- [jkjustjoshing.vscode-text-pastry](https://github.com/jkjustjoshing/vscode-text-pastry)
- [austenc.tailwind-docs](https://github.com/austenc/vscode-tailwind-docs) [Not on VSX yet]
- [bourhaouta.tailwindshades](https://github.com/bourhaouta/vscode-tailwindshades) [Not on VSX yet]
- [jkjustjoshing.vscode-text-pastry](https://github.com/jkjustjoshing/vscode-text-pastry) [Not on VSX yet]
- [Gruntfuggly.todo-tree](https://github.com/Gruntfuggly/todo-tree)
- [hideoo.trailing](https://github.com/HiDeoo/trailing)
111 changes: 42 additions & 69 deletions files/.opinionated/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,57 +2,44 @@
// * =========
// * Original
// * =======
// * UI
"workbench.activityBar.visible": false,
"window.zoomLevel": 0.8,
"explorer.autoReveal": false,
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"editor.unicodeHighlight.ambiguousCharacters": false,
"editor.unicodeHighlight.nonBasicASCII": false,
"editor.hover.above": false,
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 130,
"editor.formatOnPaste": false,
"editor.minimap.showSlider": "always",
"editor.scrollbar.vertical": "hidden",
"editor.scrollbar.verticalScrollbarSize": 0,
"editor.guides.bracketPairs": true,
"editor.hover.above": false,
// * Font
"editor.fontFamily": "'Fira Code', 'Droid Sans Mono', 'monospace', monospace",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"editor.lineHeight": 2,
"editor.guides.bracketPairs": true,
"workbench.activityBar.visible": false,
"workbench.localHistory.maxFileEntries": 500,
"workbench.editor.untitled.hint": "hidden",
"editor.fontLigatures": true,
// * Behavior
"workbench.startupEditor": "none",
"workbench.editor.enablePreview": true,
"workbench.editor.untitled.hint": "hidden",
"explorer.autoReveal": false,
"workbench.editor.enablePreviewFromQuickOpen": true,
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"diffEditor.ignoreTrimWhitespace": false,
"workbench.localHistory.maxFileEntries": 500,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
"**/storage/framework/**": true
},
"javascript.updateImportsOnFileMove.enabled": "always",
// * Format
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 130,
// * Built-in Extensions
"git.autofetch": true,
"git.confirmSync": false,
"git.enableSmartCommit": true,
"diffEditor.ignoreTrimWhitespace": false,
"emmet.triggerExpansionOnTab": true,
"emmet.showExpandedAbbreviation": "always",
"html.suggest.html5": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"json.validate.enable": false,
// * ===========
// * Extensions
// * =========
// [GitLens]
"gitlens.codeLens.enabled": false,
"gitlens.currentLine.enabled": false,
"gitlens.hovers.enabled": false,
"gitlens.statusBar.enabled": true,
"gitlens.telemetry.enabled": false,
// [Material Theme]
// [UI - Material Theme]
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Community Material Theme Darker High Contrast",
"workbench.colorCustomizations": {
Expand All @@ -62,17 +49,20 @@
"editor.wordHighlightBackground": "#66666699"
}
},
// [Todo Tree]
// [UI - SVG]
"svg.preview.mode": "svg",
// [Behavior - GitLens]
"gitlens.telemetry.enabled": false,
"gitlens.codeLens.enabled": false,
"gitlens.currentLine.enabled": false,
"gitlens.hovers.enabled": false,
"gitlens.statusBar.enabled": true,
// [Behavior - Todo Tree]
"todo-tree.tree.showBadges": true,
"todo-tree.tree.showCountsInTree": true,
"todo-tree.general.tags": ["BUG", "HACK", "TODO", "[ ]"],
"todo-tree.filtering.excludeGlobs": [
"**/node_modules",
"**/vendor"
],
// [SVG]
"svg.preview.mode": "svg",
// [shell-format]
"todo-tree.filtering.excludeGlobs": ["**/node_modules", "**/vendor"],
// [INTEL - shell-format]
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
Expand All @@ -89,39 +79,20 @@
// [PHP Intelephense]
"editor.defaultFormatter": "bmewburn.vscode-intelephense-client"
},
// [Laravel Blade formatter]
// [Format - Laravel Blade formatter]
"[blade]": {
"editor.defaultFormatter": "shufo.vscode-blade-formatter",
"editor.autoClosingBrackets": "always",
"editor.suggest.showSnippets": false
"editor.defaultFormatter": "shufo.vscode-blade-formatter"
},
"bladeFormatter.format.wrapAttributes": "force-expand-multiline",
"bladeFormatter.format.sortHtmlAttributes": "none",
"bladeFormatter.format.sortTailwindcssClasses": true,
"bladeFormatter.format.noMultipleEmptyLines": true,
"bladeFormatter.format.enabled": true,
"bladeFormatter.format.indentSize": 4,
"bladeFormatter.format.wrapAttributes": "force-expand-multiline",
"bladeFormatter.format.wrapLineLength": 120,
"bladeFormatter.format.useTabs": false,
"bladeFormatter.format.noPhpSyntaxCheck": false,
"bladeFormatter.format.customHtmlAttributesOrder": "",
"bladeFormatter.misc.dontShowNewVersionMessage": false,
// [Alpine.js IntelliSense]
"alpine-intellisense.settings.languageScopes": "blade", // TODO until intellisense is limited to html tags
// [Laravel Goto View]
"laravelGotoView.showCodeLens": false,
// [Laraphense]
"Laraphense.disableBladeCompletion": true,
// [Prettier - Code formatter]
"bladeFormatter.format.sortHtmlAttributes": "code-guide",
"bladeFormatter.format.sortTailwindcssClasses": true,
"bladeFormatter.misc.dontShowNewVersionMessage": true,
// [Format - Prettier - Code formatter]
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.requireConfig": true,
// [Tailwind CSS IntelliSense]
"files.associations": {
"*.css": "tailwindcss"
},
"tailwindCSS.includeLanguages": {
"blade": "html"
},
// [INTEL - Tailwind CSS IntelliSense]
"tailwindCSS.classAttributes": [
"class",
"x-transition:enter",
Expand All @@ -131,7 +102,9 @@
"x-transition:leave-start",
"x-transition:leave-end"
],
// [PHP Intelephense]
// // [INTEL - Alpine.js IntelliSense]
// "alpine-intellisense.settings.languageScopes": "blade", // TODO uncomment when intel shows within elements only
// [INTEL - PHP Intelephense]
// ! Disable @builtin php > PHP Language Features
// ! Enter your Intelephense licence key in your application's [settings.json] (not workspace, not the user)
"intelephense.telemetry.enabled": false
Expand Down
1 change: 1 addition & 0 deletions files/_stubs/tall/resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import './core/alpine-livewire';
import './packages/alpine-animate';
import './packages/alpine-hooks';
import './packages/alpinejs-breakpoints';
import './packages/auto-animate';
import './packages/tippy';

import './data/colors-manager';
Expand Down
3 changes: 3 additions & 0 deletions files/_stubs/tall/resources/js/packages/auto-animate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import autoAnimate from '@formkit/auto-animate';

window.autoAnimate = autoAnimate;
21 changes: 15 additions & 6 deletions scripts/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ fi
npm install --save-dev tailwindcss postcss postcss-import autoprefixer @tailwindcss/typography @tailwindcss/forms @tailwindcss/aspect-ratio @whiterussianstudio/tailwind-easing

# Packages...
npm install @tailwindcss/container-queries tippy.js laravel-wave
npm install @tailwindcss/container-queries tippy.js laravel-wave @formkit/auto-animate

# ! Currently vulnerable!
# TODO add to the others when stable
Expand Down Expand Up @@ -917,17 +917,22 @@ use Illuminate\\Support\\Facades\\Gate;' ./app/Providers/AppServiceProvider.php
}
}' ./config/translation-manager.php > tmp.txt && mv tmp.txt ./config/translation-manager.php

sed -i "s/'show_flags' => false,/'show_flags' => true,/g" ./config/translation-manager.php
sed -i "s/'quick_translate_navigation_registration' => false,/'quick_translate_navigation_registration' => true,/g" ./config/translation-manager.php

php artisan vendor:publish --provider="Spatie\TranslationLoader\TranslationServiceProvider" --tag="migrations" $conditional_quiet
cd ./database/migrations/
last_file=$(ls -A1 | tail -n 1)
sudo sed -i '/$table->bigIncrements('"'"'id'"'"');/,/$table->timestamps();/c\
$table->bigIncrements('"'"'id'"'"');\
$table->string('"'"'group'"'"')->index();\
$table->string('"'"'key'"'"')->index();\
$table->json('"'"'text'"'"');\
$table->timestamps();' ./$last_file
$table->bigIncrements('"'"'id'"'"');\
$table->string('"'"'group'"'"')->index();\
$table->string('"'"'key'"'"')->index();\
$table->json('"'"'text'"'"');\
$table->timestamps();' ./$last_file
cd $PROJECTS_DIRECTORY/$escaped_project_name/

php artisan migrate $conditional_quiet

echo -e "\nConfigured Filament Translation Manager plugin." >&3
fi
fi
Expand Down Expand Up @@ -1004,6 +1009,10 @@ if [ "$OPINIONATED" == true ]; then
# Copy the opinionated VSC keybindings
sudo cp $lara_stacker_dir/files/.opinionated/keybindings.json ./.vscode/

if [ $use_pest == false ]; then
sudo sed -i 's/better-pest/better-phpunit/g' ./.vscode/keybindings.json
fi

echo -e "\nCopied VSC workspace key-bindings." >&3

# Create a dedicated VSC workspace in Desktop
Expand Down

0 comments on commit f0a594d

Please sign in to comment.