Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
alokai-cli-storefront
Advanced tools
This is a starter project for creating a new CLI command using the Alokai CLI framework.
To get started, you can clone this repository and then install the dependencies.
git clone
cd alokai-cli-starter
pnpm install
To create a new command, you can create a new file inside the src/commands
directory. The file should export a constant that is an instance of the Command
.
import { Command } from "commander";
export const command = new Command()
.name("Alokai CLI New Command Template")
.description("Alokai CLI New Command Template is a template for creating new commands for the Alokai CLI")
.version("0.0.1", "-v, --version", "display the version number")
.action(() => {
console.log("Hello, world!");
})
To build the project, you can run the following command:
pnpm build
To run the project, you can run the following command:
pnpm start
In development mode, you can run the following command:
pnpm start:dev
To test the project, you need to link it with the vue-storefront/packages/alokai-cli
package. For this, I'm using yalc - a local NPM registry for your Yarn and pnpm projects.
First, you need to install yalc
globally:
pnpm add -g yalc
Then, you need to publish the package to the local registry:
pnpm build
yalc publish # this will publish alokai-[your-package-name] to the local registry
After that, you can link the package to the vue-storefront/packages/alokai-cli
package:
cd vue-storefront/packages/alokai-cli
yalc add alokai-[your-package-name]
Finally, you can run the command:
# in the vue-storefront/packages/alokai-cli directory
./dist/index.js [your-command-name]
FAQs
Alokai CLI for Alokai Storefront
The npm package alokai-cli-storefront receives a total of 3 weekly downloads. As such, alokai-cli-storefront popularity was classified as not popular.
We found that alokai-cli-storefront demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.