Skip to content

Commit e5141e8

Browse files
authored
chore(generator): migrate to tools folder (#3501)
1 parent 60f5a3d commit e5141e8

15 files changed

+5
-6
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"formatter": "nx run-many --target format --projects",
3434
"lint": "yarn linter tag:component",
3535
"linter": "nx run-many --target lint --verbose --projects",
36-
"new": "nx run @spectrum-css/generator:new",
36+
"new": "yarn workspace @spectrum-css/generator new",
3737
"postinstall": "husky || true && yarn refresh",
3838
"precommit": "lint-staged --allow-empty --config lint-staged.config.js",
3939
"publish:docs": "cross-env NODE_ENV=production yarn build:docs && gh-pages -d dist/ -f -e . --nojekyll",
@@ -57,7 +57,6 @@
5757
"plugins/*",
5858
"tokens",
5959
"ui-icons",
60-
"generator",
6160
".storybook",
6261
".github/actions/*",
6362
"tools/*"
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/adobe/spectrum-css.git",
11-
"directory": "generator"
11+
"directory": "tools/generator"
1212
},
1313
"bugs": {
1414
"url": "https://github.com/adobe/spectrum-css/issues"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const fetchPackage = async (path) =>
1717

1818
export default async (plop) => {
1919
/* Allow customization from the environment variables */
20-
const rootFolder = process.env.ROOT_DIR ?? resolve(process.cwd(), "../");
20+
const rootFolder = process.env.ROOT_DIR ?? resolve(process.cwd(), "../../");
2121
const srcPath = process.env.COMPONENT_DIR ?? resolve(rootFolder, "components");
2222
const projectName = process.env.PROJECT_NAME ?? "Spectrum CSS";
2323
const pkg = await fetchPackage(rootFolder);
File renamed without changes.
File renamed without changes.
File renamed without changes.

generator/templates/stories/{{ folderName }}.mdx.hbs renamed to tools/generator/templates/stories/{{ folderName }}.mdx.hbs

File renamed without changes.

0 commit comments

Comments
 (0)