A Cli for Atom Test
Thanks for How to Create Your Own CLI with Node.js article.
-
Creating a cli npm package.
-
Packaging, setting up template projects.
npx atom-cli-test
npm link
npm ls -g
npm link <name> (atom-cli-test) in application project
npm unlink <name> -g
npx rollup -c rollup.config.js
npx atom-cli-test
"scripts": {
"build": "rollup -c rollup.config.js",
"dev": "rollup -c rollup.config.js -w"
},
-c
or--config
- path to a rollup config file (if omitted, rollup looks forrollup.config.js
in the current directory)-w
or--watch
- watch files in bundle and rebuild on changes
-
arg: parse command line parameters.
-
inquirer: create an interactive command line interface.
-
execa: is used to run commands.
-
chalk: is a terminal string styling tool.
-
listr: is a terminal task list.
-
ncp: is a tool for asynchronous and recursive copying.
-
pkg-install: provides a platform-independent package installer.