Skip to content

Commit

Permalink
Release 1.0.0 (#2)
Browse files Browse the repository at this point in the history
* release: 1.0.0-beta.1

* release: 1.0.0-beta.1

* release: 1.0.0-beta.2

* fix fse imports

* release: 1.0.0-beta.3

* update standard gitignore

* re-implement remarklint

* release: 1.0.0-beta.4

* add remark-config as dependency of shared-config

* release: 1.0.0-beta.5

* make sure everything is installed

* release: 1.0.0-beta.6

* update hoisting pattern

* release: 1.0.0-beta.7

* initialize this project

* remove remarklint

* release: 1.0.0-beta.8

* update prettier ignore

* remove eslint import-x

* release: 1.0.0-beta.9

* allow js in base tsconfig

* release: 1.0.0-beta.10

* update dictionaries

* update prettier ignore

* update dictionary

* fix path

* release: 1.0.0-beta.11

* update dictionaries

* release: 1.0.0-beta.12

* fix stylelint

* release: 1.0.0-beta.13

* update dictionary

* add browserslist-config

* release: 1.0.0-beta.14

* update hoisting patterns

* release: 1.0.0-beta.15

* convert browserslist-config to commonjs module

* release: 1.0.0-beta.16

* fix browsers-list implementation

* release: 1.0.0-beta.17

* update dictionaries

* exclude cpresources from various configs

* release: 1.0.0-beta.18

* fix stylelint config

* remove remark config

* release: 1.0.0-beta.19

* remove attribution from browserslist config

* release: 1.0.0-beta.20

* fix prettierignore

* update cspell config

* don't stylelint twig files

* sort dictionaries

* release: 1.0.0-beta.21

* release: 1.0.0-beta.22

* add add tailwind class detection

* release: 1.0.0-beta.23

* remove comments from settings.json

* release: 1.0.0-beta.24

* update dictionary

* add editor config to the repo config

* build readme

* update cspell config

* add twiggy to extensions

* update filenesting

* add deployignore to repo config

* release: 1.0.0-beta.25

* cspell updates

* release: 1.0.0-beta.26

* update cspell dictionaries

* release: 1.0.0-beta.27
  • Loading branch information
rellafella authored Sep 25, 2024
1 parent 84b6f24 commit f22ea9d
Show file tree
Hide file tree
Showing 53 changed files with 1,023 additions and 441 deletions.
36 changes: 36 additions & 0 deletions .deployignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# ================
# specific ignores
# ================
.git/
.ddev/
.github/
.vscode/
node_modules/
scripts/
src/
storage/
tools/
.env.example
pnpm-*
pnpm-*
package.json
README.md
readme.md
CHANGELOG.md
changelog.md
.cspell.json
composer.*

# ===============
# 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)
.*rc
# any config files using rc format with an extension (.mdatrc.ts)
.*rc.*
# any ignore files (.deployignore, .gitignore, .prettierignore)
.*ignore
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# editorconfig.org
root = true

[*]
charset = utf-8
indent_size = 2
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{php,yaml,yml}]
indent_size = 4

[*.{diff,md}]
trim_trailing_whitespace = false
41 changes: 34 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,46 @@
# Also used by CSpell and Stylelint

# @envsa/repo-config boilerplate
.DS_Store
.ddev/
# =====
# Craft
# =====
.env
.env.*
!.env.example
node_modules/
vendor/
build/
coverage/
dist/
/web/assets/*

# ======
# Builds
# ======
node_modules/
**/*.min.js
dist/
build/

# =====
# Tests
# =====
/test-results/
/playwright-report/
/playwright/.cache/

# ====
# Misc
# ====
.cache
.DS_Store
_junk/
tmp/
temp/
_junk/
.project
.settings
*.esproj
*.sublime-workspace
*.sublime-project
*.tmproj
*.tmproject
config.codekit3
prepros-6.config

# Customizations
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
publish-branch=main

# Required for using @envsa/shared-config with pnpm
public-hoist-pattern[]=@envsa/browserslist-config
public-hoist-pattern[]=@envsa/repo-config
public-hoist-pattern[]=*cspell*
public-hoist-pattern[]=*eslint*
Expand Down
46 changes: 39 additions & 7 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,56 @@
# Does not inherit from .gitignore

# @envsa/repo-config boilerplate
.DS_Store
.ddev/
# =====
# Craft
# =====
.env
.env.*
!.env.example
node_modules/
vendor/
build/
coverage/
dist/
/web/assets/*

# ======
# Builds
# ======
node_modules/
**/*.min.js
dist/
build/

# =====
# Tests
# =====
/test-results/
/playwright-report/
/playwright/.cache/

# ====
# Misc
# ====
.cache
.DS_Store
_junk/
tmp/
temp/
_junk/
.project
.settings
*.esproj
*.sublime-workspace
*.sublime-project
*.tmproj
*.tmproject
config.codekit3
prepros-6.config

# @envsa/prettier-config boilerplate
pnpm-lock.yaml
package-lock.json
composer.lock
config/project/**/*
storage/**/*
web/cpresources/**/*
.ddev/

# Customizations
bin/
4 changes: 0 additions & 4 deletions .stylelintrc.cjs

This file was deleted.

14 changes: 9 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"svelte.svelte-vscode",
"streetsidesoftware.code-spell-checker",
"esbenp.prettier-vscode",
"github.vscode-github-actions",
"johnsoncodehk.vscode-tsconfig-helper",
"streetsidesoftware.code-spell-checker",
"stylelint.vscode-stylelint",
"svelte.svelte-vscode",
"unifiedjs.vscode-mdx",
"usernamehw.errorlens",
"johnsoncodehk.vscode-tsconfig-helper",
"github.vscode-github-actions",
"yoavbls.pretty-ts-errors"
"yoavbls.pretty-ts-errors",
"bradlc.vscode-tailwindcss",
"EditorConfig.EditorConfig",
"moetelo.twiggy"
]
}
40 changes: 35 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,22 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"eslint.enable": true,
"eslint.workingDirectories": ["./"], // Make sure vscode is getting config from root dir
"eslint.validate": ["javascript", "typescript", "svelte", "markdown", "html", "twig"],
"eslint.workingDirectories": [
"./"
],
"eslint.validate": [
"javascript",
"typescript",
"svelte",
"markdown",
"html",
"twig"
],
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
".env": ".env.*",
"package.json": ".*.cjs, .*.js, .*.json, .*.mjs, .*.toml, .*.ts, .*.yaml, .*.yml, .*ignore, .*rc, *config.cjs, *config.js, *config.json, *config.mjs, *config.toml, *config.ts, *config.yaml, *config.yml, lerna.json, netlify.toml, package-lock.json, , pnpm*, turbo.json, vercel.json, workspace*, wrangler.toml, yarn.lock, yarn*",
"package.json": ".*.cjs, .*.js, .*.json, .*.mjs, .*.toml, .*.ts, .*.yaml, .*.yml, .*ignore, .*rc, *config.cjs, *config.js, *config.json, *config.mjs, *config.toml, *config.ts, *config.yaml, *config.yml, .editorconfig, lerna.json, netlify.toml, package-lock.json, , pnpm*, turbo.json, vercel.json, workspace*, wrangler.toml, yarn.lock, yarn*",
"readme.md": "authors*, backers*, changelog*, citation*, code_of_conduct*, contributing*, contributors*, copying*, credits*, governance*, history*, license*, maintainers*, release_notes*, security*, sponsors*"
},
"prettier.documentSelectors": [
Expand All @@ -34,7 +43,28 @@
],
"prettier.enable": true,
"stylelint.enable": true,
"stylelint.validate": ["css", "html", "svelte"],
"stylelint.validate": [
"scss",
"css",
"html",
"svelte"
],
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.useFlatConfig": true
"eslint.useFlatConfig": true,
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"tailwindCSS.experimental.classRegex": [
[
"compDefaults = \\{([^%]*) %\\}",
":\\s*?[\"'`]([^\"'`]*).*?,?"
],
[
"[\\w]+\\.classList\\.(?:add|remove|replace|toggle)\\([\"'`]([^\"'`]*)[\"'`]\\)"
]
],
"tailwindCSS.classAttributes": [
".*Class.*"
],
"twiggy.framework": "craft"
}
12 changes: 0 additions & 12 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,4 @@ export default [
{
ignores: ['**/bin/cli.js'],
},
{
settings: {
'import/resolver': {
alias: {
map: [['$root', './']],
},
},
},
rules: {
'import-x/no-extraneous-dependencies': 'off',
},
},
];
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "root",
"version": "0.0.1",
"version": "1.0.0-beta.27",
"type": "module",
"description": "A single dependency and single command to configure and run various code linters and tools.",
"repository": {
Expand Down Expand Up @@ -29,6 +29,7 @@
"eslint-config",
"stylelint-config",
"prettier-config",
"browserslist-config",
"github-actions",
"cspell",
"mdat",
Expand All @@ -51,6 +52,7 @@
"release": "pnpm bumpp -r --commit 'release: %s' --tag 'v%s' && pnpm -r publish --otp $(op read 'op://Personal/NPM/one-time password?attribute=otp')"
},
"devDependencies": {
"@envsa/browserslist-config": "workspace:*",
"@envsa/cspell-config": "workspace:*",
"@envsa/eslint-config": "workspace:*",
"@envsa/mdat-config": "workspace:*",
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions packages/browserslist-config/index.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = ['> 0.5% in AU', 'last 3 years', 'iOS >= 7', 'ie >= 11'];
21 changes: 21 additions & 0 deletions packages/browserslist-config/license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Liam Rella

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
49 changes: 49 additions & 0 deletions packages/browserslist-config/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "@envsa/browserslist-config",
"version": "1.0.0-beta.27",
"type": "module",
"description": "Browserslist configuration for @envsa/shared-config.",
"repository": {
"type": "git",
"url": "[email protected]:envsa/shared-config.git",
"directory": "packages/browserslist-config"
},
"bugs": {
"url": "https://github.com/envsa/shared-config/issues",
"email": "[email protected]"
},
"author": {
"name": "Liam Rella",
"email": "[email protected]",
"url": "https://github.com/rellafella"
},
"license": "MIT",
"engines": {
"node": ">=18.0.0",
"pnpm": ">=8.0.0"
},
"bin": {
"browserslist-config": "bin/cli.js"
},
"main": "./index.cjs",
"keywords": [
"shared-config",
"browserslist-config",
"browserslist",
"cli"
],
"scripts": {
"build": "../../scripts/build.ts && mdat readme",
"cli": "node ./bin/cli.js",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@pinojs/json-colorizer": "^4.0.0",
"cosmiconfig": "^9.0.0",
"execa": "^8.0.1",
"fs-extra": "^11.2.0"
},
"publishConfig": {
"access": "public"
}
}
Loading

0 comments on commit f22ea9d

Please sign in to comment.