Skip to content

Commit 6c551ba

Browse files
author
Thomas G.
committed
chore: 🔧 refactor vscode settings
1 parent 6a46826 commit 6c551ba

File tree

4 files changed

+90
-20
lines changed

4 files changed

+90
-20
lines changed

src/larasets/devcontainer-feature.json

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "larasets",
33
"name": "Laravel settings",
44
"description": "A feature to add useful laravel settings to your shell.",
5-
"version": "4.3.0",
5+
"version": "4.4.0",
66
"dependsOn": {
77
"ghcr.io/devcontainers/features/docker-in-docker": "",
88
"ghcr.io/devcontainers/features/node:1": "lts",
@@ -23,25 +23,6 @@
2323
},
2424
"customizations": {
2525
"vscode": {
26-
"settings": {
27-
"triggerTaskOnSave.tasks": {
28-
"art-cache-config": [
29-
"**/config.php",
30-
"config/*.php",
31-
".env"
32-
],
33-
"art-cache-views": [
34-
"packages/**/*.blade.php"
35-
],
36-
"art-cache-routes": [
37-
"**/[Rr]outes/*.php"
38-
],
39-
"ide-helper": [
40-
"bootstrap/**/*.php",
41-
"**/composer.lock"
42-
]
43-
}
44-
},
4526
"extensions": [
4627
"spmeesseman.vscode-taskexplorer",
4728
"gruntfuggly.triggertaskonsave",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"secrets": {
3+
"SSH_PRIVATE_KEY": {
4+
"description": "This is the SSH private key used to identify the application."
5+
}
6+
}
7+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# @format
2+
3+
name: 'Packages Split'
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
tags:
10+
- '*'
11+
12+
env:
13+
# 1. for Github split
14+
GITHUB_TOKEN: ${{ secrets.SPLIT_TOKEN }}
15+
jobs:
16+
packages-matrix:
17+
runs-on: ubuntu-latest
18+
outputs:
19+
matrix: ${{ steps.matrix.outputs.content }}
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
- name: Set up PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: "${{ inputs.php-version || '8.3' }}"
27+
- name: PHP Install Dependencies
28+
uses: ramsey/composer-install@v3
29+
with:
30+
composer-options: '--no-dev --no-scripts'
31+
- name: Generate package matrix
32+
id: matrix
33+
run: |
34+
echo "content=$(composer show --direct --path --format=json | jq -c --arg pwd "$(pwd)/packages" '{target: [.installed[] | select((.path | startswith($pwd)) and (.source != null)) | { path: (.path | sub($pwd + "/"; "")), organization: (.name | split("/")[0]), name: (.name | split("/")[1])}]}')" >> $GITHUB_OUTPUT
35+
packages-split:
36+
runs-on: ubuntu-latest
37+
needs: packages-matrix
38+
strategy:
39+
fail-fast: false
40+
matrix: ${{ fromJSON(needs.packages-matrix.outputs.matrix) }}
41+
steps:
42+
- uses: actions/checkout@v2
43+
# no tag
44+
- if: ${{ !startsWith(github.ref, 'refs/tags/') }}
45+
uses: symplify/monorepo-split-github-action@v2.3.0
46+
with:
47+
# Split the package directory based on the matrix
48+
package_directory: '${{ matrix.target.path }}'
49+
50+
# Use the organization from the matrix
51+
repository_organization: '${{ github.repository_owner }}'
52+
53+
# Use the repository name from the matrix
54+
repository_name: '${{ matrix.target.name }}'
55+
56+
# Use the current committer's username and email for the split commit
57+
user_name: '${{ github.actor }}'
58+
user_email: '${{ github.event.pusher.email }}'
59+
60+
# with tag
61+
- if: ${{ startsWith(github.ref, 'refs/tags/') }}
62+
uses: symplify/monorepo-split-github-action@v2.3.0
63+
with:
64+
tag: ${GITHUB_REF#refs/tags/}
65+
66+
# Split the package directory based on the matrix
67+
package_directory: '${{ matrix.target.path }}'
68+
69+
# Use the organization from the matrix
70+
repository_organization: '${{ github.repository_owner }}'
71+
72+
# Use the repository name from the matrix
73+
repository_name: '${{ matrix.target.name }}'
74+
75+
# Use the current committer's username and email for the split commit
76+
user_name: '${{ github.actor }}'
77+
user_email: '${{ github.event.pusher.email }}'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"\"triggerTaskOnSave": {
3+
"tasks\"": null
4+
}
5+
}

0 commit comments

Comments
 (0)