esca-scripts
v1.5.4
Published
Reusable CLI scripts for devops.
Keywords
Readme
esca-scripts
Reusable CLI scripts for devops.
Installation
Local:
yarn add esca-scriptsOr global:
yarn global add esca-scriptsUsage
esca-scripts <command>build
Build distributable files
Option | Description | Default
--- | --- | ---
--src | The source directory of your project | "src"
--dist | The distribution directory your project will compile to | "dist"
--no-react | Creates configs without React | (Off)
--no-css | Creates configs without PostCSS | (Off)
bundle
Build distributable bundle file for browser
Option | Description | Default
--- | --- | ---
--src | The source file of your project | "dev/index.html"
--dist | The distribution file/directory your project will compile to | "dist-dev/index.html"
--global | Pass in a name to your export as window.{your_name} | (Off)
--no-react| Creates configs without React | (Off)--no-css` | Creates configs without PostCSS | (Off)
dev
Live develop in browser
Option | Description | Default
--- | --- | ---
--src | The source file of your project | "dev/index.html"
--dist | The distribution file/directory your project will compile to | "dist-dev/index.html"
--no-react | Creates configs without React | (Off)
--no-css | Creates configs without PostCSS | (Off)
rename
Renames project files
Option | Description | Default
--- | --- | ---
--name | The new name | (Working directory name)
reset
Resets and renames project
Option | Description | Default
--- | --- | ---
--name | The new name | (Working directory name)
run
Run a file in Node.js
Option | Description | Default
--- | --- | ---
--file | The file to run | "./src/index"
--no-react | Creates configs without React | (Off)
serve
Serve a directory of static files
Option | Description | Default
--- | --- | ---
--dir | The directory to serve | "dist"
--no-open | Prevents browser from opening | (Off)
test
Runs tests
config
Copies configs
Command | Description
--- | ---
babel | Copies Babel config
postcss | Copies PostCSS config
