Skip to content

Commit

Permalink
feat: 🎸 Real CLI; Use fleek functions instead of the network gateway;
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmpinto committed May 10, 2024
1 parent c283f86 commit fce7ae9
Show file tree
Hide file tree
Showing 55 changed files with 2,416 additions and 427 deletions.
1 change: 1 addition & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module 'update-notifier-cjs';
3 changes: 3 additions & 0 deletions locales/en.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import en from './en.json';

export type En = keyof typeof en;
49 changes: 49 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"spinnerInvokedDelay": "Spinner invoked ({message}) with a {delay}ms delay",
"spinnerStopped": "Spinner stopped ({spinnerMessage})",
"success": "Success",
"warning": "Warning",
"error": "Error",
"mistake": "Oops",
"ready": "Ready",
"aboutFleek": "Build lightning fast Web3 Apps on the Edge",
"appBuildDescription": "Build and deploy your Next.js app to Fleek",
"enableDebugMode": "Enable debug mode",
"printVersionDetails": "Display the version details",
"printHelp": "Print help",
"buildingApp": "Building App",
"buildingNextjsApp": "Building Next.js App",
"building": "Building...",
"bundlingApp": "Bundling App",
"bundlingNextjsApp": "Bundling App",
"bundling": "Bundling...",
"bundlingSuccess": "Next.js app successfully bundled",
"invalidPath": "The path {path} is not valid, you must provide a valid path to your Next.js app's root directory",
"invalidDir": "The path {path} is not a valid directory, you must provide a valid path to your Next.js app's root directory",
"enterProjectName": "Please enter the path to your Next.js project's root directory",
"enterPersonalAccessToken": "Please enter your Fleek personal access token",
"enterProjectId": "Please enter your Fleek project ID",
"appBuildSuccess": "Your Next.js app has been successfully deployed to Fleek",
"creatingAssets": "Assets",
"assetsCreated": "Assets - {url}",
"assetsCreatedDryRun": "Assets - (dry run)",
"creatingFunction": "λ Deploying {name}",
"functionCreated": "λ Deployed {name}",
"functionCreatedDryRun": "λ Deployed {name} - (dry run)",
"nextjsBuildStarted": "Building Next.js app...",
"nextjsBuildSuccess": "Next.js app successfully built",
"nextjsBuildErrorIncludeError": "Failed to build Next.js app: {error}",
"nextjsBuildError": "Failed to build Next.js app.",
"bundlingStarted": "Bundling Next.js app...",
"bundlingErrorIncludeError": "Failed to bundle Next.js app: {error}",
"bundlingError": "Failed to bundle Next.js app.",
"fleekFileUploadErrorIncludeError": "Failed to upload file to Fleek: {error}",
"fleekFileUploadError": "Failed to upload file to Fleek.",
"fleekDirUploadErrorIncludeError": "Failed to upload directory to Fleek: {error}",
"fleekDirUploadError": "Failed to upload directory to Fleek.",
"projectPath": "Project path: {projectPath}",
"buildCommand": "Build command: {buildCommand}",
"fleekSdkAuth": "Authenticating Fleek SDK...",
"fleekSdkAuthError": "Failed to authenticate the Fleek SDK.",
"fleekSdkAuthSuccess": "Fleek SDK authenticated."
}
28 changes: 23 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"bin": {
"fleek-next": "./dist/index.js"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/module/index.js",
"main": "./dist/cli.js",
"types": "./dist/cli.d.ts",
"module": "./dist/cli.js",
"repository": "https://github.com/fleekxyz/fleek-next-cli",
"homepage": "https://github.com/fleekxyz/fleek-next-cli/#readme",
"license": "MIT",
"type": "module",
"keywords": [
"nextjs",
"next",
Expand All @@ -33,19 +34,36 @@
"eslint"
]
},
"engines": {
"node": ">=18"
},
"dependencies": {
"@fleekxyz/open-next": "3.0.1",
"@fleekxyz/proxy": "0.0.8",
"@fleekxyz/sdk": "0.7.3",
"@fleekxyz/sdk": "2.0.0-staging.1",
"ansi-escapes": "^7.0.0",
"as-table": "^1.0.55",
"boxen": "^7.1.1",
"chalk": "^5.3.0",
"commander": "^12.0.0",
"conf": "^12.0.0",
"esbuild": "^0.20.2",
"esbuild-plugin-alias": "^0.2.1"
"esbuild-plugin-alias": "^0.2.1",
"files-from-path": "^1.0.4",
"ora": "^8.0.1",
"prompts": "^2.4.2",
"semver": "^7.6.2",
"update-notifier": "^7.0.0",
"update-notifier-cjs": "^5.1.6"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@eslint/js": "^9.2.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.11",
"@types/prompts": "^2.4.9",
"@types/semver": "^7.5.8",
"eslint": "^9.2.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
Expand Down
Loading

0 comments on commit fce7ae9

Please sign in to comment.