@strav/create 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
- # @stravigor/create
1
+ # @strav/create
2
2
 
3
- Scaffold a new [Strav](https://www.npmjs.com/package/@stravigor/core) application.
3
+ Scaffold a new [Strav](https://www.npmjs.com/package/@strav/core) application.
4
4
 
5
5
  ## Usage
6
6
 
7
7
  ```bash
8
- bunx @stravigor/create@latest my-app --api # headless REST API
9
- bunx @stravigor/create@latest my-app --web # full-stack with views
10
- bunx @stravigor/create@latest my-app # interactive prompt
8
+ bunx @strav/create@latest my-app --api # headless REST API
9
+ bunx @strav/create@latest my-app --web # full-stack with views
10
+ bunx @strav/create@latest my-app # interactive prompt
11
11
  ```
12
12
 
13
13
  ## Templates
@@ -18,7 +18,7 @@ bunx @stravigor/create@latest my-app # interactive prompt
18
18
  ## Options
19
19
 
20
20
  ```
21
- bunx @stravigor/create <project-name> [options]
21
+ bunx @strav/create <project-name> [options]
22
22
 
23
23
  --api Headless REST API template
24
24
  --web Full-stack template with views and static files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strav/create",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Scaffold a new Strav application",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -57,10 +57,10 @@ function parseArgs(): ParsedArgs {
57
57
 
58
58
  function printUsage(): void {
59
59
  console.log(`
60
- ${bold('@stravigor/create')} ${dim(`v${VERSION}`)}
60
+ ${bold('@strav/create')} ${dim(`v${VERSION}`)}
61
61
 
62
62
  ${bold('Usage:')}
63
- bunx @stravigor/create ${cyan('<project-name>')} [options]
63
+ bunx @strav/create ${cyan('<project-name>')} [options]
64
64
 
65
65
  ${bold('Options:')}
66
66
  --api Headless REST API template
@@ -86,7 +86,7 @@ async function main(): Promise<void> {
86
86
  }
87
87
 
88
88
  console.log()
89
- console.log(` ${bold('@stravigor/create')} ${dim(`v${VERSION}`)}`)
89
+ console.log(` ${bold('@strav/create')} ${dim(`v${VERSION}`)}`)
90
90
  console.log()
91
91
 
92
92
  // Project name
@@ -1,4 +1,4 @@
1
- import { env } from '@stravigor/kernel/helpers/env'
1
+ import { env } from '@strav/kernel/helpers/env'
2
2
 
3
3
  export default {
4
4
  host: env('HOST', '0.0.0.0'),
@@ -1,12 +1,12 @@
1
1
  import 'reflect-metadata'
2
- import { app } from '@stravigor/kernel/core'
3
- import { router } from '@stravigor/http/http'
4
- import { ConfigProvider, EncryptionProvider } from '@stravigor/kernel/providers'
5
- import { DatabaseProvider } from '@stravigor/database/providers'
6
- import BaseModel from '@stravigor/database/orm/base_model'
7
- import Database from '@stravigor/database/database/database'
8
- import Server from '@stravigor/http/http/server'
9
- import { ExceptionHandler } from '@stravigor/kernel/exceptions'
2
+ import { app } from '@strav/kernel/core'
3
+ import { router } from '@strav/http/http'
4
+ import { ConfigProvider, EncryptionProvider } from '@strav/kernel/providers'
5
+ import { DatabaseProvider } from '@strav/database/providers'
6
+ import BaseModel from '@strav/database/orm/base_model'
7
+ import Database from '@strav/database/database/database'
8
+ import Server from '@strav/http/http/server'
9
+ import { ExceptionHandler } from '@strav/kernel/exceptions'
10
10
 
11
11
  // Register service providers
12
12
  app.use(new ConfigProvider()).use(new DatabaseProvider()).use(new EncryptionProvider())
@@ -1,4 +1,4 @@
1
- import { router } from '@stravigor/http/http'
1
+ import { router } from '@strav/http/http'
2
2
 
3
3
  router.get('/', () => {
4
4
  return Response.json({
@@ -1,4 +1,4 @@
1
- import { env } from '@stravigor/kernel/helpers/env'
1
+ import { env } from '@strav/kernel/helpers/env'
2
2
 
3
3
  export default {
4
4
  env: env('APP_ENV', 'local'),
@@ -1,4 +1,4 @@
1
- import { env } from '@stravigor/kernel/helpers/env'
1
+ import { env } from '@strav/kernel/helpers/env'
2
2
 
3
3
  export default {
4
4
  host: env('DB_HOST', '127.0.0.1'),
@@ -1,4 +1,4 @@
1
- import { env } from '@stravigor/kernel/helpers/env'
1
+ import { env } from '@strav/kernel/helpers/env'
2
2
 
3
3
  export default {
4
4
  key: env('APP_KEY'),
@@ -1,4 +1,4 @@
1
- import { defineSchema, t, Archetype } from '@stravigor/database/schema'
1
+ import { defineSchema, t, Archetype } from '@strav/database/schema'
2
2
 
3
3
  export default defineSchema('user', {
4
4
  archetype: Archetype.Entity,
@@ -9,17 +9,17 @@
9
9
  "test": "bun test tests/"
10
10
  },
11
11
  "dependencies": {
12
- "@stravigor/kernel": "__CORE_VERSION__",
13
- "@stravigor/http": "__CORE_VERSION__",
14
- "@stravigor/view": "__CORE_VERSION__",
15
- "@stravigor/database": "__CORE_VERSION__",
16
- "@stravigor/cli": "__CORE_VERSION__",
12
+ "@strav/kernel": "__CORE_VERSION__",
13
+ "@strav/http": "__CORE_VERSION__",
14
+ "@strav/view": "__CORE_VERSION__",
15
+ "@strav/database": "__CORE_VERSION__",
16
+ "@strav/cli": "__CORE_VERSION__",
17
17
  "luxon": "^3.7.2",
18
18
  "reflect-metadata": "^0.2.2"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/bun": "latest",
22
22
  "@types/luxon": "^3.7.1",
23
- "@stravigor/testing": "__CORE_VERSION__"
23
+ "@strav/testing": "__CORE_VERSION__"
24
24
  }
25
25
  }
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env bun
2
- import '@stravigor/cli/cli/strav'
2
+ import '@strav/cli/cli/strav'
@@ -1,4 +1,4 @@
1
- import { env } from '@stravigor/kernel/helpers/env'
1
+ import { env } from '@strav/kernel/helpers/env'
2
2
 
3
3
  export default {
4
4
  host: env('HOST', '0.0.0.0'),
@@ -1,14 +1,14 @@
1
1
  import 'reflect-metadata'
2
- import { app } from '@stravigor/kernel/core'
3
- import { router } from '@stravigor/http/http'
4
- import { ConfigProvider, EncryptionProvider } from '@stravigor/kernel/providers'
5
- import { DatabaseProvider } from '@stravigor/database/providers'
6
- import { SessionProvider } from '@stravigor/http/providers'
7
- import { ViewProvider } from '@stravigor/view'
8
- import BaseModel from '@stravigor/database/orm/base_model'
9
- import Database from '@stravigor/database/database/database'
10
- import Server from '@stravigor/http/http/server'
11
- import { ExceptionHandler } from '@stravigor/kernel/exceptions'
2
+ import { app } from '@strav/kernel/core'
3
+ import { router } from '@strav/http/http'
4
+ import { ConfigProvider, EncryptionProvider } from '@strav/kernel/providers'
5
+ import { DatabaseProvider } from '@strav/database/providers'
6
+ import { SessionProvider } from '@strav/http/providers'
7
+ import { ViewProvider } from '@strav/view'
8
+ import BaseModel from '@strav/database/orm/base_model'
9
+ import Database from '@strav/database/database/database'
10
+ import Server from '@strav/http/http/server'
11
+ import { ExceptionHandler } from '@strav/kernel/exceptions'
12
12
 
13
13
  // Register service providers
14
14
  app
@@ -1,5 +1,5 @@
1
- import { router } from '@stravigor/http/http'
2
- import { view } from '@stravigor/view'
1
+ import { router } from '@strav/http/http'
2
+ import { view } from '@strav/view'
3
3
 
4
4
  router.get('/', async () => {
5
5
  return view('welcome', { name: '__PROJECT_NAME__' })