-
Notifications
You must be signed in to change notification settings - Fork 12.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge web infrastucture and design guidelines (#2008)
- Loading branch information
Showing
2,047 changed files
with
25,455 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"modules": false, | ||
"targets": "> 0.5% and last 4 versions and not dead and not ie>0 and not op_mini all and not and_uc>0 and not edge<79" | ||
} | ||
] | ||
], | ||
"env": { | ||
"test": { | ||
"presets": [ | ||
[ | ||
"@babel/preset-env" | ||
] | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ENV=development | ||
CACHE_KEY=dev_2023_03 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ENV=production | ||
CACHE_KEY=30swp20230318120543 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ENV=test | ||
CACHE_KEY=test_2023_03 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true, | ||
"jest": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"prettier" | ||
], | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"modules": true | ||
} | ||
}, | ||
"rules": { | ||
"indent": "off", | ||
"comma-dangle": [ | ||
"error", { | ||
"arrays": "always-multiline", | ||
"objects": "always-multiline", | ||
"imports": "always-multiline", | ||
"exports": "only-multiline", | ||
"functions": "never" | ||
} | ||
], | ||
"quotes": [ | ||
"error", | ||
"single", | ||
{ | ||
"avoidEscape": true, | ||
"allowTemplateLiterals": true | ||
} | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
"semi-spacing": [ | ||
"error", | ||
{ | ||
"before": false, | ||
"after": false | ||
} | ||
], | ||
"no-trailing-spaces": "error", | ||
"no-duplicate-imports": "error", | ||
"no-useless-computed-key": "error", | ||
"rest-spread-spacing": [ | ||
"error", | ||
"never" | ||
], | ||
"no-console": "off", | ||
"eqeqeq": [ | ||
"error", | ||
"smart" | ||
], | ||
"brace-style": [ | ||
"error", | ||
"1tbs", | ||
{ | ||
"allowSingleLine": true | ||
} | ||
], | ||
"curly": "off", | ||
"object-shorthand": [ | ||
"warn", | ||
"always" | ||
], | ||
"key-spacing": [ | ||
"error", | ||
{ | ||
"beforeColon": false, | ||
"afterColon": true, | ||
"mode": "strict" | ||
} | ||
], | ||
"camelcase": [ | ||
"warn", | ||
{ | ||
"properties": "always" | ||
} | ||
], | ||
"dot-location": [ | ||
"error", | ||
"property" | ||
], | ||
"generator-star-spacing": [ | ||
"off" | ||
], | ||
"block-spacing": [ | ||
"error", | ||
"always" | ||
], | ||
"comma-style": [ | ||
"error", | ||
"last" | ||
], | ||
"comma-spacing": [ | ||
"error", | ||
{ | ||
"before": false, | ||
"after": true | ||
} | ||
], | ||
"no-extend-native": "error", | ||
"no-loop-func": "error", | ||
"no-implied-eval": "error", | ||
"no-iterator": "error", | ||
"no-label-var": "error", | ||
"no-multi-str": "error", | ||
"no-script-url": "error", | ||
"no-shadow-restricted-names": "error", | ||
"no-spaced-func": "error", | ||
"no-sparse-arrays": "warn", | ||
"no-fallthrough": "warn", | ||
"no-caller": "error", | ||
"no-eval": "error", | ||
"no-multiple-empty-lines": [ | ||
"error", | ||
{ | ||
"max": 2, | ||
"maxEOF": 1 | ||
} | ||
], | ||
"no-multi-spaces": [ | ||
"error", | ||
{ | ||
"ignoreEOLComments": true | ||
} | ||
], | ||
"no-negated-in-lhs": "error", | ||
"no-new": "error", | ||
"no-new-require": "error", | ||
"block-scoped-var": "error", | ||
"no-use-before-define": "warn", | ||
"no-proto": "error", | ||
"complexity": [ | ||
"warn", | ||
50 | ||
], | ||
"wrap-iife": [ | ||
"error", | ||
"outside" | ||
], | ||
"new-parens": "error", | ||
"space-infix-ops": "error", | ||
"eol-last": [ | ||
"error", | ||
"always" | ||
], | ||
"space-unary-ops": "error", | ||
"arrow-parens": [ | ||
"error", | ||
"as-needed" | ||
], | ||
"arrow-spacing": "error", | ||
"space-before-blocks": [ | ||
"error", | ||
"always" | ||
], | ||
"yoda": [ | ||
"error", | ||
"never" | ||
], | ||
"space-before-function-paren": "off", | ||
"spaced-comment": [ | ||
"error", | ||
"always" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,60 @@ | ||
js: | ||
- snippets/js/s/*.md | ||
- collections/js/*.yaml | ||
- content/snippets/js/s/*.md | ||
- content/collections/js/*.yaml | ||
css: | ||
- snippets/css/s/*.md | ||
- collections/css/*.yaml | ||
- content/snippets/css/s/*.md | ||
- content/collections/css/*.yaml | ||
html: | ||
- snippets/html/s/*.md | ||
- collections/html/*.yaml | ||
- content/snippets/html/s/*.md | ||
- content/collections/html/*.yaml | ||
git: | ||
- snippets/git/s/*.md | ||
- collections/git/*.yaml | ||
- content/snippets/git/s/*.md | ||
- content/collections/git/*.yaml | ||
python: | ||
- snippets/python/s/*.md | ||
- collections/python/*.yaml | ||
- content/snippets/python/s/*.md | ||
- content/collections/python/*.yaml | ||
react: | ||
- snippets/react/s/*.md | ||
- collections/react/*.yaml | ||
- content/snippets/react/s/*.md | ||
- content/collections/react/*.yaml | ||
snippet: | ||
- snippets/**/*.md | ||
- content/snippets/**/*.md | ||
collection: | ||
- collections/**/*.yaml | ||
- content/collections/**/*.yaml | ||
content: | ||
- content/** | ||
design: | ||
- design/** | ||
web: | ||
- src/** | ||
- .babelrc | ||
- astro.config.mjs | ||
- netlify.toml | ||
- package-lock.json | ||
- package.json | ||
development: | ||
- .github/** | ||
- .vscode/** | ||
- .eslintrc.json | ||
- .gitattributes | ||
- .gitignore | ||
- .prettierignore | ||
- .prettierrc | ||
- jsconfig.json | ||
backend: | ||
- src/blocks/** | ||
- src/scripts/** | ||
ci/cd: | ||
- .github/** | ||
- netlify.toml | ||
dependencies: | ||
- package-lock.json | ||
ui/ux: | ||
- src/components/** | ||
- src/icons/** | ||
- src/layouts/** | ||
- src/pages/** | ||
- src/styles/** | ||
tests: | ||
- src/test/** | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ master ] | ||
schedule: | ||
- cron: '00 18 * * 1' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'javascript' ] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Deploy production (manual) | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Run deployment script | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
run: | | ||
chmod +x ./src/scripts/deploy.sh | ||
./src/scripts/deploy.sh production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Deploy production | ||
on: | ||
schedule: | ||
- cron: "20 18 * * *" | ||
push: | ||
branches: [ master ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
web: | ||
- 'src/**' | ||
- '.babelrc' | ||
- 'astro.config.mjs' | ||
- 'netlify.toml' | ||
- 'package-lock.json' | ||
- 'package.json' | ||
# run only if 'web' files were changed | ||
- name: Run deployment script | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
if: steps.filter.outputs.web == 'true' | ||
run: | | ||
chmod +x ./src/scripts/deploy.sh | ||
./src/scripts/deploy.sh production |
Oops, something went wrong.