laang
v1.0.1
Published
Provides the fastest way of integrating Angular into Laravel
Downloads
5
Readme
Provides the fastest way of integrating Angular into Laravel.
Installation
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js 8.5.0 or higher is required.
Installation is done using the
npm install -g
command:
$ npm install -g laang
Quick Start
Create the Laravel app:
$ composer create-project --prefer-dist laravel/laravel laravel
Install Angular:
$ cd laravel
$ ng new angular
Run laang --run
command:
$ laang --run
Install all packages:
$ npm install
Finally, build your Angular app:
$ npm run abuild
Available NPM commands
To build your angular project run npm run abuild
command:
$ npm run abuild
You can watch changes by running npm run awatch
command:
$ npm run awatch
All following commands must be run in root directory of Laravel. Other Angular CLI features are available by running ng
command
Use --no-delete-output-path
option too keep your Laravel's public directory.
ng build --no-delete-output-path --prod