@procore/core-scripts
Version:
A CLI to enhance your development experience
75 lines (51 loc) • 2.24 kB
Markdown
# `core-scripts app`
application commands
- [`core-scripts app:build`](#core-scripts-appbuild)
- [`core-scripts app:clean`](#core-scripts-appclean)
- [`core-scripts app:gen`](#core-scripts-appgen)
- [`core-scripts app:start`](#core-scripts-appstart)
## `core-scripts app:build`
Compiles the application.
```
USAGE
$ core-scripts app:build
OPTIONS
--analyze Run webpack bundle analyzer.
--inspect Prints the Webpack configuration.
--publicPath=publicPath Allows you to specify the base path for all the assets within your
application.
--railsMode Enables Procore Rails integration.
--sourceMapPublicPath=sourceMapPublicPath Base path for all the sourcemap.
```
_See code: [dist/commands/app/build.js](https://github.com/procore/frontend-tooling/blob/v11.3.1/dist/commands/app/build.js)_
## `core-scripts app:clean`
Cleans the distribution folder (/build).
```
USAGE
$ core-scripts app:clean
```
_See code: [dist/commands/app/clean.js](https://github.com/procore/frontend-tooling/blob/v11.3.1/dist/commands/app/clean.js)_
## `core-scripts app:gen`
Generates application scaffolding.
```
USAGE
$ core-scripts app:gen
```
_See code: [dist/commands/app/gen.js](https://github.com/procore/frontend-tooling/blob/v11.3.1/dist/commands/app/gen.js)_
## `core-scripts app:start`
Starts the development server.
```
USAGE
$ core-scripts app:start
OPTIONS
--dangerouslyDisableHostCheck Disable host checking.
--host=host [default: 0.0.0.0] Server host.
--https Use HTTPS.
--inspect Prints the Webpack configuration.
--openBrowser Open browser after initializing the server.
--port=port [default: 5000] Server port.
--publicPath=publicPath Public asset path.
--railsMode Enables Procore Rails integration.
--socketHost=socketHost [default: 0.0.0.0] HMR websocket host
```
_See code: [dist/commands/app/start.js](https://github.com/procore/frontend-tooling/blob/v11.3.1/dist/commands/app/start.js)_