2.0.20 • Published 11 months ago
starfall-cli v2.0.20
Starfall CLI - Building Your Components Easier and Faster!
Starfall CLI speeds up tasks by multiprocessing on multiple CPU cores, which maximizes the capacity of CPU.
Popular Tech Standards in Starfall CLI
- webpack + babel
- eslint + stylelint
- mocha + istanbul
- koa
- playwright
Install
Install Node.js 16+
Install starfall-cli
#require administrator/sudo permission
npm install starfall-cli -g
#run starfall-cli directly
sf -v
Commands
# show all commands
sf --help
Troubleshooting
- Resolving EACCES permissions errors when installing packages globally
- "-bash: sf: command not found" remove and create new symbolic link for Starfall: ln -s /path-to-starfall-cli/lib/cli.js /usr/local/bin/sf
Project structure
Monorepos (multiple packages)
local-path/your-project/ package.json packages/ component-name-1/ package.json public/ index.html src/ index.js test/ specs/ test.js component-name-2/ package.json public/ index.html src/ index.js test/ specs/ test.js
Single package
local-path/your-project/ package.json public/ index.html src/ index.js test/ specs/ test.js
Getting start with new project (monorepos)
sf init
sf add component-name
sf install
sf build
sf test
Configuration
Copy to project root path or use CLI default.
Changelog
Debug CLI with VSCode
Enable "Debug > Node: Auto Attach" with "on" in Preferences Settings
Debug Config: .vscode/launch.json
{ "version": "0.2.0", "configurations": [{ "type": "node", "request": "launch", "name": "Debug", "program": "${workspaceFolder}/../starfall-cli/lib/cli.js", "cwd": "${workspaceFolder}", "autoAttachChildProcesses": true, "args": ["build", "app", "-m"] }] }
Run Starfall CLI from docker
First building your Starfall CLI docker image from Dockerfile:
docker build . -t cli-docker
Then running Starfall CLI docker image for your project:
docker run \
--rm \
--name container_sf \
--mount type=bind,source="$(pwd)",target=/project \
cli-docker \
bash -c "sf install && sf precommit || CODE=\$? && chmod 777 -R /project && exit \$CODE"
2.0.20
11 months ago
2.0.19
1 year ago
2.0.18
1 year ago
2.0.17
1 year ago
2.0.16
1 year ago
2.0.15
1 year ago
2.0.14
1 year ago
2.0.13
1 year ago
2.0.12
1 year ago
2.0.11
1 year ago
2.0.10
2 years ago
2.0.7
2 years ago
2.0.9
2 years ago
2.0.8
2 years ago
2.0.5
2 years ago
2.0.6
2 years ago
2.0.4
3 years ago
2.0.3
3 years ago
2.0.2
3 years ago
2.0.1
3 years ago
1.0.3
3 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago