-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8a8f631
commit 99fafbc
Showing
43 changed files
with
597 additions
and
689 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 |
---|---|---|
|
@@ -132,6 +132,9 @@ dist | |
|
||
# Turbo | ||
.turbo | ||
|
||
# Intellij | ||
.idea | ||
|
||
.config/shelve* | ||
shelve* |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Generated by Shelve CLI | ||
SHELVE_TOKEN=your_value | ||
TEST=your_value | ||
SHELVE_URL=your_value |
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 |
---|---|---|
|
@@ -134,4 +134,7 @@ dist | |
dist | ||
|
||
# Shelve config | ||
.shelve | ||
.shelve | ||
|
||
.config/* | ||
*shelve.config* |
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,19 @@ | ||
{ | ||
"$schema": "https://unpkg.com/release-it@17/schema/release-it.json", | ||
"git": { | ||
"commitMessage": "chore(release): v${version}", | ||
"tagName": "v${version}", | ||
"commit": true, | ||
"tag": true, | ||
"push": true | ||
}, | ||
"github": { | ||
"release": true, | ||
"releaseName": "v${version}", | ||
"autoGenerate": true, | ||
"web": true | ||
}, | ||
"npm": { | ||
"publish": true | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Command } from 'commander' | ||
import { loadShelveConfig } from '../utils/config' | ||
|
||
export function configCommand(program: Command): void { | ||
program | ||
.command('config') | ||
.description('Manage Shelve config') | ||
.action(async () => { | ||
console.log(await loadShelveConfig()) | ||
}) | ||
} |
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
import { intro, isCancel, outro, select } from '@clack/prompts' | ||
import { Command } from 'commander' | ||
import { generateEnvExampleFile } from '../utils/env' | ||
import { onCancel } from '../utils' | ||
|
||
export function generateCommand(program: Command): void { | ||
program | ||
.command('generate') | ||
.description('Generate resources for a project') | ||
.action(async () => { | ||
intro('Generate resources for a project') | ||
|
||
const toGenerate = await select({ | ||
message: 'Select the resources to generate:', | ||
options: [ | ||
{ value: 'example', label: '.env.example' }, | ||
{ value: 'eslint', label: 'ESLint config', hint: 'work in progress' }, | ||
] | ||
}) | ||
|
||
if (isCancel(toGenerate)) onCancel('Operation cancelled.') | ||
|
||
switch (toGenerate) { | ||
case 'example': | ||
await generateEnvExampleFile() | ||
break | ||
default: | ||
onCancel('Invalid option') | ||
} | ||
|
||
outro('Done') | ||
}) | ||
} |
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,12 @@ | ||
import { Command } from 'commander' | ||
import { configCommand } from './config' | ||
import { pullCommand } from './pull' | ||
import { pushCommand } from './push' | ||
import { generateCommand } from './generate' | ||
|
||
export function registerCommands(program: Command): void { | ||
configCommand(program) | ||
pullCommand(program) | ||
pushCommand(program) | ||
generateCommand(program) | ||
} |
Oops, something went wrong.