diff --git a/.dovenv/core.js b/.dovenv/core.js new file mode 100644 index 0000000..67f2729 --- /dev/null +++ b/.dovenv/core.js @@ -0,0 +1,23 @@ +import { defineConfig } from '@dovenv/core' +import { + asciiFont, + getCurrentDir, + getObjectFromJSONFile, + joinPath, +} from '@dovenv/core/utils' + +const workspaceDir = joinPath( getCurrentDir( import.meta.url ), '..' ) +const pkgPath = joinPath( workspaceDir, 'package.json' ) +const pkg = await getObjectFromJSONFile( pkgPath ) + +export default defineConfig( + { + name : 'BACKAN', + desc : 'Workspace for backan 🔥', + const : { + workspaceDir, + pkg, + mark : `\n${asciiFont( `pigeonposse\n-------\n${pkg.extra.id}`, 'ANSI Shadow' )}\nAuthor: ${pkg.author.name}\n`, + }, + }, +) diff --git a/.dovenv/main.js b/.dovenv/main.js index fd84d2d..a623332 100644 --- a/.dovenv/main.js +++ b/.dovenv/main.js @@ -1,26 +1,10 @@ -import { defineConfig } from '@dovenv/core' -import { - asciiFont, - getCurrentDir, - getObjectFromJSONFile, - joinPath, -} from '@dovenv/core/utils' +import { defineConfig } from '@dovenv/core' import { config as bandaTheme } from '@dovenv/theme-banda' -const workspaceDir = joinPath( getCurrentDir( import.meta.url ), '..' ) -const pkgPath = joinPath( workspaceDir, 'package.json' ) -const pkg = await getObjectFromJSONFile( pkgPath ) +import corePlugin from './core.js' export default defineConfig( - { - name : 'BACKAN', - desc : 'Workspace for backan 🔥', - const : { - workspaceDir, - pkg, - mark : `\n${asciiFont( `pigeonposse\n-------\n${pkg.extra.id}`, 'ANSI Shadow' )}\nAuthor: ${pkg.author.name}\n`, - }, - }, + corePlugin, bandaTheme( { repo : { commit : { scopes : [ { @@ -45,6 +29,14 @@ export default defineConfig( staged : { '*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,json,yml,yaml}': 'pnpm --silent . lint eslint --silent' }, eslint : { flags: [ '--fix' ] }, }, + todo : { ws : { + input : [ '**/*.{js,ts}', '**/*.md' ], + inputOpts : { + gitignore : true, + onlyFiles : true, + dot : true, + }, + } }, workspace : { check : { pkg : { schema : async ( { v, path, data, } ) => { diff --git a/docs/contributors.md b/docs/contributors.md new file mode 100644 index 0000000..e2be7c3 --- /dev/null +++ b/docs/contributors.md @@ -0,0 +1,4 @@ +--- +layout: contributors +--- + diff --git a/docs/dev-dist/sw.js b/docs/dev-dist/sw.js index 8a768db..aed07c0 100644 --- a/docs/dev-dist/sw.js +++ b/docs/dev-dist/sw.js @@ -82,7 +82,7 @@ define(['./workbox-8027588d'], (function (workbox) { 'use strict'; "revision": "3ca0b8505b4bec776b69afdba2768812" }, { "url": "index.html", - "revision": "0.q9pvp9fpvn8" + "revision": "0.464eql50f38" }], {}); workbox.cleanupOutdatedCaches(); workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), { diff --git a/docs/guide/builder/index.md b/docs/guide/builder/index.md index 7bbfc06..6a5aed0 100644 --- a/docs/guide/builder/index.md +++ b/docs/guide/builder/index.md @@ -28,6 +28,10 @@ yarn add @backan/builder bun add @backan/builder ``` +```bash [deno] +deno add npm:@backan/builder +``` + ::: [![NPM Version](https://img.shields.io/npm/v/@backan/builder?style=for-the-badge&color=yellow)](https://www.npmjs.com/package/@backan/builder) diff --git a/docs/guide/core/index.md b/docs/guide/core/index.md index fb3d2a4..fcfd06c 100644 --- a/docs/guide/core/index.md +++ b/docs/guide/core/index.md @@ -4,25 +4,7 @@ Start building your restAPI app now 🌈. ## 🔑 Installation -::: code-group - -```bash [npm] -npm install backan -``` - -```bash [pnpm] -pnpm add backan -``` - -```bash [yarn] -yarn add backan -``` - -```bash [bun] -bun add backan -``` - -::: + [![NPM Version](https://img.shields.io/npm/v/backan?style=for-the-badge&color=yellow)](https://www.npmjs.com/package/backan) @@ -43,7 +25,11 @@ yarn add @backan/core ``` ```bash [bun] -bun add backan +bun add backancore +``` + +```bash [deno] +deno add npm:backancore ``` ::: @@ -54,25 +40,7 @@ bun add backan You can automatically create a `backan` template with: -::: code-group - -```bash [npm] -npm create backan -``` - -```bash [pnpm] -pnpm create backan -``` - -```bash [yarn] -yarn create backan -``` - -```bash [bun] -bun create backan -``` - -::: +