Skip to content

CLI application

Morteza Jamali edited this page Mar 13, 2020 · 1 revision

WinWord uses npm scripts and composer scripts for CLI application .

Compiling and bundling assets

  • For compiling and bundling assets , run command below :
$ npm run webpackCompile

Or

$ node_modules/.bin/webpack --config=node_modules/laravel-mix/setup/webpack.config.js
  • For watching files for changes run command below :
$ npm run webpackWatch

Or

$ node_modules/.bin/webpack --config=node_modules/laravel-mix/setup/webpack.config.js --watch

Controllers

  • For creating AngularJS Controller use following command :
composer create-controller -- --js=ControllerName
  • For creating PHP Controller use following command :
composer create-controller -- --php=ControllerName
Clone this wiki locally