How to install a new frontend dependency
npm install --save <your dependency>
- open gulpfile.js, add the .css and .js files brought by that dependency
gulp
- If it's an angular module, add it to resouces/views/template.blade.php under var omsApp = angular...
To run all that, you need npm and gulp locally installed or execute it on the oms-core docker container, also you might have to run npm install before running gulp as the toolkit (sass, laravel-elixir, etc) might not be installed locally. If you have neither of the above, do the following
- sudo apt-get install nodejs npm (or if you don't use ubuntu find out how to install nodejs and npm)
- sudo npm install -g gulp
- inside the project folder:
- npm install
- gulp