Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedAlchemy committed Aug 29, 2023
1 parent 50a1a0c commit 6f62227
Show file tree
Hide file tree
Showing 179 changed files with 3,409 additions and 3,431 deletions.
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "weekly"
interval: 'weekly'
4 changes: 2 additions & 2 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
path: ${{ env.CACHE_NODE_MODULES_PATH }}
key: build-${{ hashFiles('**/package-lock.json') }}
- run: npm run build:website
- run: "npx netlify deploy --build --prod --message \"Deploy from GitHub Actions\""
- run: 'npx netlify deploy --build --prod --message "Deploy from GitHub Actions"'
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
Expand All @@ -74,7 +74,7 @@ jobs:
key: build-${{ hashFiles('**/package-lock.json') }}
- uses: nelonoel/[email protected]
- run: npm run build:website
- run: "npx netlify deploy --build --message \"Deploy Preview from GitHub Actions\" --alias \"${{ env.BRANCH_NAME }}\" --filter docs-ui"
- run: 'npx netlify deploy --build --message "Deploy Preview from GitHub Actions" --alias "${{ env.BRANCH_NAME }}" --filter docs-ui'
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ env:
~/.npm
node_modules
jobs:
build_checks:
name: Build Checks
Expand Down
60 changes: 28 additions & 32 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,30 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "npm run start:next",
"name": "Run npm start:next",
"request": "launch",
"type": "node-terminal"
},
{
"type": "node",
"request": "launch",
"name": "gpt:pr",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/gpt/index.js",
"args": ["--pr"]
},
{
"type": "node",
"request": "launch",
"name": "gpt:commit",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/gpt/index.js",
"args": ["--commit"]
}
]
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "npm run start:next",
"name": "Run npm start:next",
"request": "launch",
"type": "node-terminal"
},
{
"type": "node",
"request": "launch",
"name": "gpt:pr",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/gpt/index.js",
"args": ["--pr"]
},
{
"type": "node",
"request": "launch",
"name": "gpt:commit",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/gpt/index.js",
"args": ["--commit"]
}
]
}
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This Code of Conduct applies to all areas of the community, including online and

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement through established channels such as email, a reporting form, or on the Discord by messaging a @Staff or @Moderator. All complaints will be reviewed and investigated promptly and fairly. The investigation process will be carried out in a confidential manner, and all parties involved will be treated with respect and dignity. All community leaders are obligated to respect the privacy and security of the reporter of any incident and will maintain confidentiality except in cases where safety or legal concerns require otherwise. We encourage those who experience or witness any form of misconduct to come forward with their concerns, and will take all necessary steps to ensure that all reports are handled with the utmost care and sensitivity.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement through established channels such as email, a reporting form, or on the Discord by messaging a @Staff or @Moderator. All complaints will be reviewed and investigated promptly and fairly. The investigation process will be carried out in a confidential manner, and all parties involved will be treated with respect and dignity. All community leaders are obligated to respect the privacy and security of the reporter of any incident and will maintain confidentiality except in cases where safety or legal concerns require otherwise. We encourage those who experience or witness any form of misconduct to come forward with their concerns, and will take all necessary steps to ensure that all reports are handled with the utmost care and sensitivity.

## Attribution

Expand Down
25 changes: 14 additions & 11 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# Thanks you for your contribution!

## commits
* must be followed by conventional commits
* could be achieved by using git commitizen (embedded in this repo).

- must be followed by conventional commits
- could be achieved by using git commitizen (embedded in this repo).

## version release
* to release a version, please follow this command:
* `nx run PROJECT-NAME:version --releaseAs=MAJOR/MINOR/PATCH`
* find more options [here](https://github.com/jscutlery/semver#specify-the-level-of-change)
* this command will perform couple of operations.
* tag your commit with the relevant version.
* create changelog using semantic commits.
* bump the version of the project.
* if other projects depends on the current released project, they will be bumped as well.
* if case of bumping nextjs-mf project, NPM publish operation will be performed as well.

- to release a version, please follow this command:
- `nx run PROJECT-NAME:version --releaseAs=MAJOR/MINOR/PATCH`
- find more options [here](https://github.com/jscutlery/semver#specify-the-level-of-change)
- this command will perform couple of operations.
- tag your commit with the relevant version.
- create changelog using semantic commits.
- bump the version of the project.
- if other projects depends on the current released project, they will be bumped as well.
- if case of bumping nextjs-mf project, NPM publish operation will be performed as well.
2 changes: 1 addition & 1 deletion apps/3000-home/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"next/core-web-vitals",
"../../.eslintrc.json"
],
"ignorePatterns": ["!**/*", ".next/**/*","node_modules/*"],
"ignorePatterns": ["!**/*", ".next/**/*", "node_modules/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
Expand Down
12 changes: 3 additions & 9 deletions apps/3000-home/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"targets": {
"build": {
"executor": "@nx/next:build",
"outputs": [
"{options.outputPath}"
],
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/apps/3000-home"
Expand Down Expand Up @@ -55,13 +53,9 @@
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": [
"{options.outputFile}"
],
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"apps/3000-home/**/*.{ts,tsx,js,jsx}"
]
"lintFilePatterns": ["apps/3000-home/**/*.{ts,tsx,js,jsx}"]
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion apps/3000-home/remote-delegate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { importDelegatedModule } from "@module-federation/utilities/src/utils/importDelegatedModule";
import { importDelegatedModule } from '@module-federation/utilities/src/utils/importDelegatedModule';
/* eslint-disable no-undef */
// eslint-disable-next-line no-async-promise-executor
module.exports = new Promise(async (resolve, reject) => {
Expand Down
2 changes: 1 addition & 1 deletion apps/3001-shop/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"next/core-web-vitals",
"../../.eslintrc.json"
],
"ignorePatterns": ["!**/*", ".next/**/*","node_modules/*"],
"ignorePatterns": ["!**/*", ".next/**/*", "node_modules/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
Expand Down
12 changes: 3 additions & 9 deletions apps/3001-shop/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"targets": {
"build": {
"executor": "@nx/next:build",
"outputs": [
"{options.outputPath}"
],
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/apps/3001-shop"
Expand Down Expand Up @@ -55,13 +53,9 @@
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": [
"{options.outputFile}"
],
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"apps/3001-shop/**/*.{ts,tsx,js,jsx}"
]
"lintFilePatterns": ["apps/3001-shop/**/*.{ts,tsx,js,jsx}"]
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion apps/3001-shop/remote-delegate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { importDelegatedModule } from "@module-federation/utilities/src/utils/importDelegatedModule";
import { importDelegatedModule } from '@module-federation/utilities/src/utils/importDelegatedModule';
/* eslint-disable no-undef */
// eslint-disable-next-line no-async-promise-executor
module.exports = new Promise(async (resolve, reject) => {
Expand Down
2 changes: 1 addition & 1 deletion apps/3002-checkout/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"next/core-web-vitals",
"../../.eslintrc.json"
],
"ignorePatterns": ["!**/*", ".next/**/*","node_modules/*"],
"ignorePatterns": ["!**/*", ".next/**/*", "node_modules/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
Expand Down
12 changes: 3 additions & 9 deletions apps/3002-checkout/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"targets": {
"build": {
"executor": "@nx/next:build",
"outputs": [
"{options.outputPath}"
],
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/apps/3002-checkout"
Expand Down Expand Up @@ -55,13 +53,9 @@
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": [
"{options.outputFile}"
],
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"apps/3002-checkout/**/*.{ts,tsx,js,jsx}"
]
"lintFilePatterns": ["apps/3002-checkout/**/*.{ts,tsx,js,jsx}"]
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion apps/3002-checkout/remote-delegate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { importDelegatedModule } from "@module-federation/utilities/src/utils/importDelegatedModule";
import { importDelegatedModule } from '@module-federation/utilities/src/utils/importDelegatedModule';
/* eslint-disable no-undef */
// eslint-disable-next-line no-async-promise-executor
module.exports = new Promise(async (resolve, reject) => {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs-ui/src/app/css/nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}

.contact {
border: 1px solid #949FC5;
border: 1px solid #949fc5;
font-size: 23px;
font-weight: 600;
line-height: 40px;
Expand Down
2 changes: 1 addition & 1 deletion apps/docs-ui/src/app/css/page-languages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
.is-open {
background: red;
}
}
}
2 changes: 1 addition & 1 deletion apps/docs-ui/src/app/helpers/gt.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
'use strict';

module.exports = ( a, b ) => a > b;
module.exports = (a, b) => a > b;
2 changes: 1 addition & 1 deletion apps/docs-ui/src/app/helpers/length.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
'use strict';

module.exports = (val) => val ? val.length : 0;
module.exports = (val) => (val ? val.length : 0);
2 changes: 1 addition & 1 deletion apps/docs-ui/src/app/js/01-nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function () {
closeSubnavItem(liEl);
});
} else {
for(let i= 0; i < el.parentElement.children.length; i++) {
for (let i = 0; i < el.parentElement.children.length; i++) {
closeSubnavItem(el.parentElement.children[i]);
}
}
Expand Down
1 change: 0 additions & 1 deletion apps/docs-ui/src/app/js/08-page-versions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export default function () {
const wrappers = document.querySelectorAll('.version-wrapper');


if (!wrappers) return;

Expand Down
24 changes: 12 additions & 12 deletions apps/docs-ui/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,45 +10,45 @@

/* Fonts! */
@font-face {
font-family: "Avenir Local";
font-family: 'Avenir Local';
font-style: normal;
font-weight: 100;
src: url("./app/fonts/AvenirNextLTPro-UltLt.otf") format("opentype");
src: url('./app/fonts/AvenirNextLTPro-UltLt.otf') format('opentype');
}

@font-face {
font-family: "Avenir Local";
font-family: 'Avenir Local';
font-style: normal;
font-weight: 400;
src: url("./app/fonts/AvenirNextLTPro-Regular.otf") format("opentype");
src: url('./app/fonts/AvenirNextLTPro-Regular.otf') format('opentype');
}

@font-face {
font-family: "Avenir Local";
font-family: 'Avenir Local';
font-style: normal;
font-weight: 500;
src: url("./app/fonts/AvenirNextLTPro-Medium.otf") format("opentype");
src: url('./app/fonts/AvenirNextLTPro-Medium.otf') format('opentype');
}

@font-face {
font-family: "Avenir Local";
font-family: 'Avenir Local';
font-style: normal;
font-weight: 600;
src: url("./app/fonts/AvenirNextLTPro-Demi.otf") format("opentype");
src: url('./app/fonts/AvenirNextLTPro-Demi.otf') format('opentype');
}

@font-face {
font-family: "Avenir Local";
font-family: 'Avenir Local';
font-style: normal;
font-weight: 700;
src: url("./app/fonts/AvenirNextLTPro-Bold.otf") format("opentype");
src: url('./app/fonts/AvenirNextLTPro-Bold.otf') format('opentype');
}

@font-face {
font-family: "Avenir Local";
font-family: 'Avenir Local';
font-style: normal;
font-weight: 800;
src: url("./app/fonts/AvenirNextLTPro-Heavy.otf") format("opentype");
src: url('./app/fonts/AvenirNextLTPro-Heavy.otf') format('opentype');
}

@layer base {
Expand Down
8 changes: 2 additions & 6 deletions apps/docs-ui/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ const { join } = require('path');

/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
join(__dirname, 'src/**/*.{html,hbs,css,js}')
],
content: [join(__dirname, 'src/**/*.{html,hbs,css,js}')],
theme: {
extend: {
backgroundImage: {
Expand All @@ -18,7 +16,7 @@ module.exports = {
},
boxShadow: {
outline: '0 0 0 2px #00B9FF',
card: '0px 0px 32px 0px #201E3726'
card: '0px 0px 32px 0px #201E3726',
},
colors: {
'ui-blue': '#00B9FF',
Expand Down Expand Up @@ -50,11 +48,9 @@ module.exports = {
},
},
},

},
plugins: [
// require('@tailwindcss/forms'),
// ...
],
};

Loading

0 comments on commit 6f62227

Please sign in to comment.