-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
586 additions
and
58 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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
}, | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"clean": "rimraf --glob '{e2e-projects/*/{.next,.svelte-kit},packages/*/{.next,.svelte-kit,build,coverage,dist,out,package.tgz,storybook-static},playwright/{playwright-report,test-results}}'", | ||
"clean": "rimraf --glob '{e2e-projects/*/{.next,.svelte-kit},packages/*/{.next,.svelte-kit,build,coverage,dist,out,package.tgz,src/**/*.module.css.d.ts,storybook-static},playwright/{playwright-report,test-results}}'", | ||
"dev": "concurrently --prefix-colors auto \"yarn:dev:*\"", | ||
"dev:manager": "yarn workspace @slicemachine/manager dev", | ||
"dev:start-slicemachine": "yarn workspace start-slicemachine dev", | ||
|
@@ -20,6 +20,7 @@ | |
"build-essential": "yarn workspace @slicemachine/plugin-kit build && yarn workspace @slicemachine/manager build", | ||
"audit": "yarn workspaces foreach --parallel --verbose run audit", | ||
"lint": "yarn workspaces foreach --verbose run lint", | ||
"stylelint": "yarn workspaces foreach --verbose run stylelint", | ||
"lint-staged": "lint-staged", | ||
"prettier:fix": "prettier --write .", | ||
"prettier:check": "prettier --check .", | ||
|
@@ -65,6 +66,10 @@ | |
"**/packages/slice-machine/**/*.@(js|jsx|ts|tsx|)": [ | ||
"prettier --write --ignore-unknown", | ||
"yarn workspace slice-machine-ui lint:precommit" | ||
], | ||
"**/packages/slice-machine/**/*.module.css": [ | ||
"prettier --write --ignore-unknown", | ||
"yarn workspace slice-machine-ui stylelint:precommit" | ||
] | ||
}, | ||
"resolutions": { | ||
|
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,3 +1,4 @@ | ||
/src/**/*.module.css.d.ts | ||
/storybook-static | ||
!/.storybook | ||
build | ||
|
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 |
---|---|---|
|
@@ -27,6 +27,7 @@ yarn-error.log* | |
.vercel | ||
|
||
# typescript | ||
/src/**/*.module.css.d.ts | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
.root { | ||
background-color: var(--grey2); | ||
border-color: var(--grey6); | ||
/* stylelint-disable-next-line declaration-property-value-allowed-list -- The component has a border radius of 3 px in Figma. */ | ||
border-radius: 3px; | ||
border-style: solid; | ||
border-width: 1px; | ||
color: var(--grey11); | ||
padding-inline: 4px; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const { cssTheme } = require("@prismicio/editor-ui"); | ||
|
||
module.exports = { | ||
defaultSeverity: "warning", | ||
reportNeedlessDisables: true, | ||
reportInvalidScopeDisables: true, | ||
reportDescriptionlessDisables: true, | ||
rules: { | ||
"declaration-property-value-allowed-list": cssTheme, | ||
}, | ||
extends: [ | ||
"stylelint-config-recommended", | ||
"stylelint-config-css-modules", | ||
"stylelint-config-prettier", | ||
], | ||
}; |
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 |
---|---|---|
|
@@ -4,15 +4,13 @@ | |
"description": "E2E tests for Slice Machine", | ||
"author": "Prismic <[email protected]> (https://prismic.io)", | ||
"scripts": { | ||
"audit": "echo \"No audit for playwright\" && true", | ||
"depcheck": "depcheck --config=.depcheckrc", | ||
"lint": "eslint --max-warnings 0 --ext .js,.ts .", | ||
"test:e2e:install": "playwright install --with-deps chromium", | ||
"test:e2e:report": "playwright show-report", | ||
"test:e2e": "playwright test", | ||
"types": "tsc --noEmit", | ||
"test:e2e:merge-reports": "playwright merge-reports", | ||
"unit": "echo \"No unit tests for playwright\" && true" | ||
"test:e2e:merge-reports": "playwright merge-reports" | ||
}, | ||
"devDependencies": { | ||
"@msgpack/msgpack": "2.8.0", | ||
|
Oops, something went wrong.