Skip to content

Commit

Permalink
chore(generator): migrate to tools folder (#3501)
Browse files Browse the repository at this point in the history
  • Loading branch information
castastrophe authored Jan 16, 2025
1 parent 60f5a3d commit e5141e8
Show file tree
Hide file tree
Showing 15 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"formatter": "nx run-many --target format --projects",
"lint": "yarn linter tag:component",
"linter": "nx run-many --target lint --verbose --projects",
"new": "nx run @spectrum-css/generator:new",
"new": "yarn workspace @spectrum-css/generator new",
"postinstall": "husky || true && yarn refresh",
"precommit": "lint-staged --allow-empty --config lint-staged.config.js",
"publish:docs": "cross-env NODE_ENV=production yarn build:docs && gh-pages -d dist/ -f -e . --nojekyll",
Expand All @@ -57,7 +57,6 @@
"plugins/*",
"tokens",
"ui-icons",
"generator",
".storybook",
".github/actions/*",
"tools/*"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion generator/package.json → tools/generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"repository": {
"type": "git",
"url": "https://github.com/adobe/spectrum-css.git",
"directory": "generator"
"directory": "tools/generator"
},
"bugs": {
"url": "https://github.com/adobe/spectrum-css/issues"
Expand Down
2 changes: 1 addition & 1 deletion generator/plopfile.js → tools/generator/plopfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const fetchPackage = async (path) =>

export default async (plop) => {
/* Allow customization from the environment variables */
const rootFolder = process.env.ROOT_DIR ?? resolve(process.cwd(), "../");
const rootFolder = process.env.ROOT_DIR ?? resolve(process.cwd(), "../../");
const srcPath = process.env.COMPONENT_DIR ?? resolve(rootFolder, "components");
const projectName = process.env.PROJECT_NAME ?? "Spectrum CSS";
const pkg = await fetchPackage(rootFolder);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4157,9 +4157,9 @@ __metadata:
languageName: unknown
linkType: soft

"@spectrum-css/generator@workspace:generator":
"@spectrum-css/generator@workspace:tools/generator":
version: 0.0.0-use.local
resolution: "@spectrum-css/generator@workspace:generator"
resolution: "@spectrum-css/generator@workspace:tools/generator"
dependencies:
fuzzy: "npm:^0.1.3"
inquirer: "npm:^9.2.23"
Expand Down

0 comments on commit e5141e8

Please sign in to comment.