Gathering detailed insights and metrics for lucy-cli
Gathering detailed insights and metrics for lucy-cli
Gathering detailed insights and metrics for lucy-cli
Gathering detailed insights and metrics for lucy-cli
npm install lucy-cli
Typescript
Module System
Node Version
NPM Version
20
Supply Chain
59.7
Quality
81.2
Maintenance
25
Vulnerability
87.2
License
TypeScript (76.57%)
JavaScript (23.43%)
Total
2,043
Last Day
26
Last Week
84
Last Month
1,706
Last Year
1,895
21 Commits
1 Watching
2 Branches
1 Contributors
Latest Version
0.9.3
Package Id
lucy-cli@0.9.3
Unpacked Size
525.49 kB
Size
367.42 kB
File Count
118
NPM Version
10.2.4
Node Version
20.11.1
Publised On
26 Nov 2024
Cumulative downloads
Total Downloads
Last day
73.3%
26
Compared to previous day
Last week
-85.1%
84
Compared to previous week
Last month
16,960%
1,706
Compared to previous month
Last year
1,180.4%
1,895
Compared to previous year
38
22
Lucy-CLI was developed out of a personal need to gain full TypeScript support for Wix Velo projects. Typically, using Wix’s GitHub integration provides JSON docs and basic type support, but I aimed for a more integrated TypeScript experience, especially for larger projects that benefit from enhanced type safety.
Lucy, my loyal dog, accompanied me during long nights working on a major project where I developed this CLI. Her companionship and resilience inspired the name "Lucy-CLI."
This CLI is still in development and may have bugs. Please use it with caution. Libraries are expected to have the same folder structure as the main typescript folder except for the pages folder. (backend, public, styles) The lucy CLI is opinionated and may not work with all projects.
Lucy-CLI is designed to streamline the setup and management of TypeScript within Wix Velo projects, providing tools to enhance code quality and reduce development time. Here’s what it offers:
ESLint Configuration
Wix Type Definitions
.wix/types/wix-code-types
, allowing direct import and access to the types for comprehensive TypeScript support.Autocomplete and Type Mapping for Page Elements
$w('element')
calls have full TypeScript support, including autocomplete for properties and methods.Git Submodule Support
Configurable Setup
lucy-config.json
configuration file where you can modify settings, add dev packages, specify Wix packages, and configure git submodules.Execute render functions
compile sccs files
Wix NPM Package Installation
lucy.json
file in the project directory.Teting with Jest
.spec.ts
.Linting with ESLint
.eslintrc.cjs
file in the project directory.Add git version during production build
public/constant/env.ts
file in the public folder under the key gitTag.Lucy-CLI comes with a range of commands and options to help manage your Wix Velo project. Here’s an overview:
init
: Initializes the current folder as a Wix project, creating essential configuration files.dev
: Starts the development environment, including setting up any required services for local development.build-prod
: Builds the project in production mode, optimizing files for deployment.prepare
: Re-runs initialization commands, useful for setting up a pre-configured environment.sync
: Synchronizes the database and any dependencies or configurations necessary for the project.install
: Installs all Wix npm packages listed in the wixpkgs.json
file in the project directory.fix
: Runs a fix command to resolve common issues in development or production settings.docs
: Generates documentation for the project.cypress
: Starts the Cypress test runner.e2e
: Starts the Cypress test runner in CI mode.e2e <someKey> <someID>
someKey
: The key for the test.someID
: The build ID for the test.-h, help
: Displays the help message with command descriptions.-v, version
: Shows the current version of Lucy-CLI as defined in the project’s package.json
.-f, force
: Forces specific commands to execute, useful for deleting obsolete pages or initializing missing components.-l
: Locks package versions to those specified in the configuration file during installation.Here are some example commands to get started with Lucy-CLI:
1# Initialize a new Wix project 2lucy-cli init 3 4# Start the development environment 5lucy-cli dev 6 7# Synchronize database and settings 8lucy-cli sync 9 10# Install Wix npm packages from 'wixpkgs.json' with locked versions 11lucy-cli install -l 12 13# Force start the dev environment 14lucy-cli dev -f 15 16# get help 17lucy-cli help 18 19🦮 Lucy CLI Help 20Usage: lucy-cli <command> [options] 21 22Commands: 23🦮 init : Initializes the current folder as a Wix project by creating the necessary configuration files. 24🦮 dev : Starts the development environment. This includes setting up any required services for local development. 25🦮 build-prod : Builds the project in production mode, optimizing files for deployment. 26🦮 prepare : Prepares the project by re-running initialization commands. Useful for setting up a pre-configured environment. 27🦮 sync : Synchronizes the database and any dependencies or configurations necessary for the project. 28🦮 install : Installs all Wix npm packages listed in the 'wixpkgs.json' file in the project directory. 29🦮 fix : Runs a fix command to resolve common issues in development or production settings. 30🦮 docs : Generates documentation for the project. 31🦮 cypress : Starts the cypress test runner. 32🦮 e2e : Starts the cypress test runner in CI mode. first argument is the key second is the build id <e2e <somekey <someID> 33 34Options: 35🦮 -h, help : Displays this help message. 36🦮 -v, version : Displays the current version of Lucy CLI as defined in the project’s package.json. 37🦮 -f, force : Forces specific commands to execute even if they may lead to potential issues. 38 Used for functions like deleting obsolete pages or initializing missing components. 39🦮 -l : Locks package versions to those specified in the configuration file during installation. 40 41Examples: 42🦮 lucy-cli init : Initializes a new Wix project. 43🦮 lucy-cli dev : Starts the development environment. 44🦮 lucy-cli sync : Synchronizes database and settings. 45🦮 lucy-cli install : Installs all Wix npm packages from 'wixpkgs.json'. 46🦮 lucy-cli dev -f : Starts the dev environment with forced settings. 47🦮 lucy-cli install -l : Installs Wix npm packages, respecting locked versions specified in the configuration.
No vulnerabilities found.
No security vulnerabilities found.