Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoRCD committed Jan 24, 2025
1 parent 0920921 commit 6ee6f41
Show file tree
Hide file tree
Showing 15 changed files with 78 additions and 282 deletions.
2 changes: 1 addition & 1 deletion .config/automd.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Config } from 'automd'

const config: Config = {
input: ["README.md", "**/*.md"]
input: ['README.md', '**/*.md']
}

export default config
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,6 @@ dist

*/dist/
*/.output/

# Turborepo
.turbo
1 change: 1 addition & 0 deletions lp/app/assets/scripts/particles.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Please do not use it in your project.
*/

// eslint-disable-next-line
let NextParticle = null

if (import.meta.client) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@types/pg": "8.11.10",
"automd": "0.3.12",
"eslint": "9.18.0",
"turbo": "2.3.3",
"turbo": "2.3.4",
"typescript": "5.7.3"
},
"engines": {
Expand Down
1 change: 0 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"tinyglobby": "0.2.10"
},
"devDependencies": {
"@shelve/types": "*",
"@shelve/utils": "*",
"@types/bun": "1.2.0",
"@types/npm-registry-fetch": "8.0.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/login.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Command } from 'commander'
import { intro, outro } from '@clack/prompts'
import type { User } from '@types'
import { loadShelveConfig } from '../utils'
import { BaseService } from '../services/base'
import { User } from '~~/types'

export function loginCommand(program: Command): void {
program
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/services/base.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ofetch, type $Fetch, type FetchOptions } from 'ofetch'
import { spinner } from '@clack/prompts'
import { writeUser } from 'rc9'
import type { User } from '@types'
import { askPassword, loadShelveConfig } from '../utils'
import { ErrorService } from './error'
import type { User } from '~~/types'

export abstract class BaseService {

Expand Down
10 changes: 5 additions & 5 deletions packages/cli/src/services/env.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { parseEnvFile } from '@shelve/utils'
import { log } from '@clack/prompts'
import { loadShelveConfig, askBoolean } from '../utils'
import { FileService } from './file'
import { BaseService } from './base'
import {
import type {
EnvVar,
CreateEnvFileInput,
PushEnvFileInput,
CreateVariablesInput,
GetEnvVariables
} from '~~/types'
} from '@types'
import { loadShelveConfig, askBoolean } from '../utils'
import { FileService } from './file'
import { BaseService } from './base'

export class EnvService extends BaseService {

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/services/environment.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { isCancel } from '@clack/prompts'
import type { Environment } from '@types'
import { askSelect, capitalize, handleCancel } from '../utils'
import { BaseService } from './base'
import type { Environment } from '~~/types'

export class EnvironmentService extends BaseService {

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/services/project.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { PackageJson, readPackageJSON } from 'pkg-types'
import { type PackageJson, readPackageJSON } from 'pkg-types'
import { log } from '@clack/prompts'
import type { Project } from '@types'
import { DEBUG } from '../constants'
import { askBoolean, capitalize, handleCancel } from '../utils'
import { BaseService } from './base'
import type { Project } from '~~/types'

export class ProjectService extends BaseService {

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ import { setupDotenv } from 'c12'
import { findWorkspaceDir, readPackageJSON } from 'pkg-types'
import { readUser } from 'rc9'
import defu from 'defu'
import type { CreateShelveConfigInput, ShelveConfig } from '@types'
import { DEFAULT_URL, SHELVE_JSON_SCHEMA } from '@types'
import { FileService, PkgService, ProjectService } from '../services'
import { DEFAULT_ENV_FILENAME } from '../constants'
import { BaseService } from '../services/base'
import { askSelect, askText } from './prompt'
import { handleCancel } from '.'
import { CreateShelveConfigInput, DEFAULT_URL, SHELVE_JSON_SCHEMA } from '~~/types'
import type { ShelveConfig } from '~~/types'

export const CONFIG_FILENAMES = [
'shelve.json',
Expand Down
5 changes: 3 additions & 2 deletions packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
Expand All @@ -16,7 +17,7 @@
"noUnusedLocals": true,
"resolveJsonModule": true,
"declaration": true,
"types": ["node"],
"types": ["node"]
},
"include": ["src", "test/**/*"]
"include": ["src", "test/**/*", "types/**/*"]
}
Loading

0 comments on commit 6ee6f41

Please sign in to comment.