Skip to content

Commit

Permalink
chore: re-initialize repo config
Browse files Browse the repository at this point in the history
  • Loading branch information
rellafella committed Feb 13, 2025
1 parent 1ecf843 commit d922226
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .deployignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,21 @@
/scripts/
/src/
/storage/
/tests/
/tools/
/.env.example
/pnpm-*
/pnpm-*
/package.json
/package-lock.json
/README.md
/readme.md
/CHANGELOG.md
/changelog.md
/.cspell.json
/composer.*
/.editorconfig

# ===============
# ignore patterns
# ===============
# any config files that don't have an extension (.editorconfig)
/*config
# any config files that have an extension (eslint.config.js, tsconfig.json, vite.config.ts)
/*config.*
# any config files using rc format (.npmrc)
Expand Down
28 changes: 28 additions & 0 deletions .vscode/global.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,32 @@
"description": "Quick boilerplate for eager loading an entry",
"scope": "twig",
},
"New component": {
"prefix": "component",
"body": [
"{# >>> Comp defaults #}",
"{% set compDefaults = {",
" data: {",
" name: \"c-$1\"",
" },",
" classes: {",
" root: \"\",",
" custom: \"\"",
" },",
" variants: {}",
"} %}",
"",
"{# >>> Merge data / classes / variants (optional) #}",
"{% set props = {",
" data: data is defined and data is iterable ? compDefaults.data|merge(data) : compDefaults.data,",
" classes: classes is defined and classes is iterable",
" ? compDefaults.classes|merge(classes)",
" : compDefaults.classes,",
" variants: compDefaults.variants",
"} %}",
"",
"{# >>> Template #}",
"$0",
],
},
}

0 comments on commit d922226

Please sign in to comment.