Tagged articles
7 articles
Page 1 of 1
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 6, 2024 · Frontend Development

Building a Monorepo-Style Node.js CLI Scaffolding Tool for Frontend Projects

This comprehensive tutorial walks you through creating a Node.js command‑line scaffolding tool that uses yargs for argument parsing, inquirer for interactive prompts, copy‑dir for file operations, mustache for dynamic templates, and pnpm with ora for automated dependency installation, all organized in a monorepo structure.

CLIMonorepoNode.js
0 likes · 30 min read
Building a Monorepo-Style Node.js CLI Scaffolding Tool for Frontend Projects
TAL Education Technology
TAL Education Technology
Mar 16, 2023 · Frontend Development

Building a Frontend Scaffolding Tool from Scratch with Node.js and TypeScript

This article walks through creating a Node.js‑based TypeScript CLI scaffolding tool for frontend projects, covering background, project template setup, TypeScript configuration, package scripts, command‑line parsing with Commander, interactive prompts with Inquirer, code retrieval via download‑git‑repo, shell execution, and final logo rendering, all illustrated with concrete code examples.

CLICommanderTypeScript
0 likes · 13 min read
Building a Frontend Scaffolding Tool from Scratch with Node.js and TypeScript
DaTaobao Tech
DaTaobao Tech
Sep 13, 2022 · Backend Development

Developing a Node.js CLI Scaffold: Tools, Package.json and Demo

This guide walks you through building a custom Node.js CLI scaffold using commander, chalk, inquirer, ora, and download‑git‑repo, explains essential package.json fields like bin and engines, and provides a complete demo that prompts users, downloads templates, and initializes projects ready for global installation.

CLICommanderNode.js
0 likes · 17 min read
Developing a Node.js CLI Scaffold: Tools, Package.json and Demo
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 13, 2021 · Frontend Development

Implementing Customizable and Upgradable Template Management in a Frontend CLI Tool

This article demonstrates how to design and develop a CLI tool that lets users add, update, list, and download customizable project templates, leveraging Inquirer for interactive prompts, download‑git‑repo for fetching repositories, and the GitHub API for branch selection, with full TypeScript code examples.

CLITypeScriptdownload-git-repo
0 likes · 14 min read
Implementing Customizable and Upgradable Template Management in a Frontend CLI Tool
vivo Internet Technology
vivo Internet Technology
Sep 2, 2020 · Frontend Development

Developing a Vue CLI Plugin for a Unified Component Library

This guide walks through building a Vue CLI plugin—named vue‑cli‑plugin‑next‑component—that enforces team‑wide naming conventions and directory structures for a component library, detailing the required file layout, service entry, interactive prompts, EJS‑based generator templates, testing workflow, and how it streamlines and standardizes Vue component creation.

CLI PluginCode GenerationVue
0 likes · 7 min read
Developing a Vue CLI Plugin for a Unified Component Library
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Nov 15, 2018 · Backend Development

How to Build Your Own Command-Line Tool with Node.js

This guide explains what a command-line interface (CLI) tool is, why developers prefer CLI over GUI for efficiency, and provides a step‑by‑step tutorial for creating a simple Node.js‑based CLI, covering project setup, command registration, argument parsing, version handling, interactive prompts, shell script execution, and network proxy management.

CLICommanderNode.js
0 likes · 10 min read
How to Build Your Own Command-Line Tool with Node.js
Aotu Lab
Aotu Lab
Aug 10, 2016 · Backend Development

Master Node.js CLI Development with Commander, Inquirer, and Chalk

This guide walks you through setting up a Node.js project and using the commander, inquirer, and chalk packages to build, configure, and style powerful command‑line tools, including global installation, custom help, interactive prompts, and colored output.

CLICommanderJavaScript
0 likes · 12 min read
Master Node.js CLI Development with Commander, Inquirer, and Chalk