-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up 'create.js' for each template
- Loading branch information
1 parent
1ff51ca
commit 6e28e02
Showing
3 changed files
with
43 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
console.log('angular::create') | ||
#!/usr/bin/env node | ||
import { resolve } from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import { createProject } from '@carto/create-common'; | ||
import meow from 'meow'; | ||
|
||
const cli = meow( | ||
` | ||
Usage | ||
$ yarn create @carto/angular <target-directory> | ||
`, | ||
{ | ||
importMeta: import.meta, | ||
autoHelp: true, | ||
autoVersion: true, | ||
}, | ||
); | ||
|
||
const templateDir = resolve(fileURLToPath(import.meta.url), '../..'); | ||
const targetDir = cli.input.at(0) || '.'; | ||
await createProject(templateDir, targetDir); |
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 +1,21 @@ | ||
console.log('vue::create') | ||
#!/usr/bin/env node | ||
import { resolve } from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import { createProject } from '@carto/create-common'; | ||
import meow from 'meow'; | ||
|
||
const cli = meow( | ||
` | ||
Usage | ||
$ yarn create @carto/vue <target-directory> | ||
`, | ||
{ | ||
importMeta: import.meta, | ||
autoHelp: true, | ||
autoVersion: true, | ||
}, | ||
); | ||
|
||
const templateDir = resolve(fileURLToPath(import.meta.url), '../..'); | ||
const targetDir = cli.input.at(0) || '.'; | ||
await createProject(templateDir, targetDir); |