Skip to content

Commit 2ffd597

Browse files
committed
chore: remove formating from plopfile
1 parent e99fa99 commit 2ffd597

File tree

5 files changed

+6
-46
lines changed

5 files changed

+6
-46
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@
185185
"npm-run-all2": "^6.0.0",
186186
"patch-package": "^8.0.0",
187187
"pinst": "^3.0.0",
188-
"plop": "^4.0.1",
189188
"prettier": "^3.0.0",
190189
"prettier-plugin-package": "^1.3.0",
191190
"pretty-bytes": "^6.1.1",

projects/documentation/content/guides/styling-components.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ SWC project uses styles package to manage the global css tokens for all three th
5252
- `styles/tokens` - This is the tokens package for the express + spectrum theme.
5353
- `styles/tokens-v2` - This is the tokens package for the spectrum 2 theme.
5454

55-
NOTE: In all likelhood, you would only need to do minor changes to the styles package. However, if you feel like you need to make major changes to the styles package, the correct approach would be to start a discussion among the team and figure out a plan together.
55+
NOTE: In all likelihood, you would only need to do minor changes to the styles package. However, if you feel like you need to make major changes to the styles package, the correct approach would be to start a discussion among the team and figure out a plan together.
5656

5757
### How to update the global styling
5858

59-
In our styles package, we have separation of vars for different contexts i.e, size and color.
59+
In our styles package, we have separation of separate variables for different contexts i.e, size and color.
6060

61-
#### Updating size-specific vars
61+
#### Updating size-specific css variables
6262

6363
If you're updating a size (e.g. `--spectrum-accordion-item-height`) variable, you'll need to update the `tools/styles/tokens/[express | spectrum]/[large | medium]-vars.css` file or the `tools/styles/tokens-v2/[large | medium]-vars.css` file depending on the theme.
6464

65-
#### Updating color-specific vars
65+
#### Updating color-specific css variables
6666

6767
If you're updating a color (e.g. `--spectrum-accordion-background-color`) variable, you'll need to update the `tools/styles/tokens/[express | spectrum]/[dark | light]-vars.css` file or the `tools/styles/tokens-v2/[dark | light]-vars.css` file depending on the theme.
6868

69-
NOTE: If the variable that you're updating is not present in those files, chances are that this variable had the same value for both contexts in that tokens package. In that case, if you want the variable to continue to have the same value then you can update the `tools/styles/[tokens | tokens-v2]/index.css` file.
69+
**NOTE:** If the variable that you're updating is not present in those files, chances are that this variable had the same value for both contexts in that tokens package. In that case, if you want the variable to continue to have the same value then you can update the `tools/styles/[tokens | tokens-v2]/index.css` file.
7070
Or if you want to make the variable context-specific, then you can add those new values in both of the files like we talked about above.
Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +0,0 @@
1-
/*
2-
Copyright 2024 Adobe. All rights reserved.
3-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
4-
you may not use this file except in compliance with the License. You may obtain a copy
5-
of the License at http://www.apache.org/licenses/LICENSE-2.0
6-
7-
Unless required by applicable law or agreed to in writing, software distributed under
8-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9-
OF ANY KIND, either express or implied. See the License for the specific language
10-
governing permissions and limitations under the License.
11-
*/
12-
13-
/* This is where you'd put any Spectrum CSS variables and rules */

projects/templates/plopfile.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -50,31 +50,6 @@ module.exports = function (plop) {
5050
}
5151
});
5252

53-
plop.setActionType('format files', function (answers) {
54-
try {
55-
// Run formatters separately so one failing doesn't block the others
56-
execSync(
57-
`cd ../../ && yarn prettier --write packages/${answers.name}`
58-
);
59-
} catch (error) {
60-
// Continue if prettier fails
61-
}
62-
try {
63-
execSync(
64-
`cd ../../ && yarn eslint --fix -f pretty packages/${answers.name}`
65-
);
66-
} catch (error) {
67-
// Continue if eslint fails
68-
}
69-
try {
70-
execSync(
71-
`cd ../../ && yarn stylelint --fix packages/${answers.name}/src/*.css`
72-
);
73-
} catch (error) {
74-
// Continue if stylelint fails
75-
}
76-
});
77-
7853
plop.setGenerator('component', {
7954
description: 'application controller logic',
8055
prompts: [

yarn.lock

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ __metadata:
294294
npm-run-all2: "npm:^6.0.0"
295295
patch-package: "npm:^8.0.0"
296296
pinst: "npm:^3.0.0"
297-
plop: "npm:^4.0.1"
298297
prettier: "npm:^3.0.0"
299298
prettier-plugin-package: "npm:^1.3.0"
300299
pretty-bytes: "npm:^6.1.1"
@@ -27971,7 +27970,7 @@ __metadata:
2797127970
languageName: node
2797227971
linkType: hard
2797327972

27974-
"plop@npm:^4.0.0, plop@npm:^4.0.1":
27973+
"plop@npm:^4.0.0":
2797527974
version: 4.0.1
2797627975
resolution: "plop@npm:4.0.1"
2797727976
dependencies:

0 commit comments

Comments
 (0)