-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure plop-dir examples and align README documentation
- Loading branch information
1 parent
9e2c8c5
commit 11a3fc8
Showing
9 changed files
with
20 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'plop-dir': patch | ||
--- | ||
|
||
Restructure examples and align README documentation |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,24 +1,22 @@ | ||
import * as url from 'node:url' | ||
import * as path from 'node:path' | ||
|
||
import { plopDir } from './dist/esm/index.mjs' | ||
|
||
// eslint-disable-next-line @typescript-eslint/naming-convention, no-underscore-dangle | ||
const __dirname = path.dirname(url.fileURLToPath(import.meta.url)) | ||
|
||
/** @param {import('plop').NodePlopAPI} plop */ | ||
// eslint-disable-next-line import/no-default-export | ||
export default async function generate(plop) { | ||
export default async function run(plop) { | ||
plop.setGenerator( | ||
'scss-migration', | ||
'my-generator', | ||
await plopDir({ | ||
plop, | ||
templateDir: url.fileURLToPath(new URL('./templates', import.meta.url)), | ||
outputDir: url.fileURLToPath(new URL('./src/nested', import.meta.url)), | ||
// Path to my-generator templates | ||
templateDir: path.join(__dirname, './templates/my-generator'), | ||
// Path to output my-generator files | ||
outputDir: path.join(__dirname, './tmp'), | ||
}), | ||
) | ||
|
||
// plop.setGenerator( | ||
// 'typescript-migration', | ||
// await plopDir(plop, { | ||
// templateDir: url.fileURLToPath(new URL('./templates', import.meta.url)), | ||
// outputDir: url.fileURLToPath(new URL('./src/nested', import.meta.url)), | ||
// }), | ||
// ) | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11a3fc8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
aacc-scales – ./apps/scales
aacc-scales.vercel.app
aacc-scales-aaronccasanova-gmailcom.vercel.app
aacc-scales-git-main-aaronccasanova-gmailcom.vercel.app
11a3fc8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
aacc-next-ts-styled-comps – ./recipes/next-ts-styled-comps
aacc-next-ts-styled-comps.vercel.app
aacc-next-ts-styled-comps-aaronccasanova-gmailcom.vercel.app
aacc-next-ts-styled-comps-git-main-aaronccasanova-gmailcom.vercel.app
11a3fc8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
aacc-next-ts – ./recipes/next-ts
aacc-next-ts-git-main-aaronccasanova-gmailcom.vercel.app
aacc-next-ts.vercel.app
aacc-next-ts-aaronccasanova-gmailcom.vercel.app