Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »


How to install a new frontend dependency

  1. npm install --save <your dependency>
  2. open gulpfile.js, add the .css and .js files brought by that dependency
  3. gulp
  4. 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

  1. sudo apt-get install nodejs npm (or if you don't use ubuntu find out how to install nodejs and npm)
  2. sudo npm install  -g gulp
  3. inside the project folder:
    1. npm install
    2. gulp
  • No labels