This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
-
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.
- Loading branch information
1 parent
b5e3c54
commit a70cd79
Showing
69 changed files
with
1,530 additions
and
7,736 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 |
---|---|---|
@@ -1 +1 @@ | ||
18.9.0 | ||
18.10.0 |
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,3 +1,4 @@ | ||
.nitro | ||
.output | ||
src/components/.vite-inspect | ||
core/build/entries/*.ts |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import type { CAC } from 'cac' | ||
import { generateLibEntry } from '../../../core' | ||
import { generateTypes } from '../scripts/generate' | ||
|
||
async function generateCommands(artisan: CAC) { | ||
artisan | ||
.command('generate:types', 'Generates the types of & for your library/libraries') | ||
.action(async () => { | ||
await generateTypes() | ||
}) | ||
|
||
artisan | ||
.command('generate:entries', 'Generates the entry points for your libraries') | ||
.action(async () => { | ||
await generateLibEntry('vue-components') | ||
await generateLibEntry('web-components') | ||
await generateLibEntry('functions') | ||
}) | ||
|
||
artisan | ||
.command('generate:vue-compatibility', 'Generates Vue 2 & 3 compatibility') | ||
.action(async () => { | ||
// eslint-disable-next-line no-console | ||
console.log('wip') | ||
// await generateVueCompat() | ||
}) | ||
} | ||
|
||
export { generateCommands } |
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
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
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
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,12 +1,36 @@ | ||
import consola from 'consola' | ||
import { NpmScript } from '../../../src/types' | ||
import { NpmScript } from '../../../core' | ||
import { runNpmScript } from './run-npm-script' | ||
|
||
export async function generateTypes() { | ||
await runNpmScript(NpmScript.GenerateTypes).then(() => { | ||
try { | ||
await runNpmScript(NpmScript.GenerateTypes) | ||
consola.success('Types were generated successfully.') | ||
}).catch((error) => { | ||
consola.error('There was an error generating your types') | ||
} | ||
catch (error) { | ||
consola.error('There was an error generating your types.') | ||
consola.error(error) | ||
}) | ||
} | ||
} | ||
|
||
export async function generateLibEntries() { | ||
try { | ||
await runNpmScript(NpmScript.generateEntries) | ||
consola.success('Library entry points were generated successfully.') | ||
} | ||
catch (error) { | ||
consola.error('There was an error generating your library entry points.') | ||
consola.error(error) | ||
} | ||
} | ||
|
||
export async function generateVueCompat() { | ||
try { | ||
await runNpmScript(NpmScript.generateVueCompat) | ||
consola.success('Vue 2 & 3 compatibility was generated successfully.') | ||
} | ||
catch (error) { | ||
consola.error('There was an error generating Vue compatibility.') | ||
consola.error(error) | ||
} | ||
} |
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
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
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
Oops, something went wrong.