Skip to content

Commit

Permalink
More deps, move tooling config out of package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Mar 13, 2024
1 parent 370ea23 commit b39110c
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 64 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"browserslist": [
">1%",
"last 4 versions",
"Firefox ESR",
"not ie 11",
"not dead"
]
}
12 changes: 12 additions & 0 deletions packages/generator-volto/generators/app/templates/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"trailingComma": "all",
"singleQuote": true,
"overrides": [
{
"files": "*.overrides",
"options": {
"parser": "less"
}
}
]
}
23 changes: 23 additions & 0 deletions packages/generator-volto/generators/app/templates/.stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": ["stylelint-config-idiomatic-order"],
"plugins": ["stylelint-prettier"],
"overrides": [
{
"files": ["**/*.less"],
"customSyntax": "postcss-less"
},
{
"files": ["**/*.overrides"],
"customSyntax": "postcss-less"
},
{
"files": ["**/*.scss"],
"customSyntax": "postcss-scss"
}
],
"rules": {
"prettier/prettier": true,
"order/properties-alphabetical-order": null
},
"ignoreFiles": "theme/themes/default/**/*.overrides"
}
67 changes: 3 additions & 64 deletions packages/generator-volto/generators/app/templates/package.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,75 +70,14 @@
"globals": {
"__DEV__": true
}
},
"prettier": {
"trailingComma": "all",
"singleQuote": true,
"overrides": [
{
"files": "*.overrides",
"options": {
"parser": "less"
}
}
]
},
"stylelint": {
"extends": [
"stylelint-config-idiomatic-order"
],
"plugins": [
"stylelint-prettier"
],
"overrides": [
{
"files": [
"**/*.less"
],
"customSyntax": "postcss-less"
},
{
"files": [
"**/*.overrides"
],
"customSyntax": "postcss-less"
},
{
"files": [
"**/*.scss"
],
"customSyntax": "postcss-scss"
}
],
"rules": {
"prettier/prettier": true,
"rule-empty-line-before": [
"always-multi-line",
{
"except": [
"first-nested"
],
"ignore": [
"after-comment"
]
}
]
},
"ignoreFiles": "theme/themes/default/**/*.overrides"
},
"browserslist": [
">1%",
"last 4 versions",
"Firefox ESR",
"not ie 11",
"not dead"
],
}
"engines": {
"node": "^16 || ^18 || ^20"
"node": "^18 || ^20"
},
"dependencies": <%- dependencies %>,
"devDependencies": {
"@plone/scripts": "^3.5.0",
"@plone/types": "^1.0.0-alpha.5",
"@storybook/addon-actions": "^6.3.0",
"@storybook/addon-controls": "6.3.0",
"@storybook/addon-essentials": "^6.3.0",
Expand Down

0 comments on commit b39110c

Please sign in to comment.