The Yorango static front end, currently contains client-side code for the Single Page App (SPA) of the listings marketplace and property management SaaS.
I. Front End Development
II. Further Reading
- Run
vagrant fsnotify
in a separate terminal window to notify the VM when a file has been changed
- Only turn this on when you are actively developing code
- You will want to kill this process otherwise as it uses
touch
to propagate events, meaning it will easily interfere with file deletion, particularly when interacting withgit
, which may quickly add and delete files during arebase
docker-compose up -d
will run the front end watcher
npm run watch
starts Webpack in watch mode, recompiling the JS and CSS whenever the source files change, outputting them into thebuild/
folder as specified by the Webpack config
docker-compose logs static
will show any output or errors in the build process
docker-compose exec static bash
will start a Bash shell
npm install --save-dev <package_name>
will install and save a package as a dev dependencynpm install --save <package_name>
will install and save a package as a production dependency- Alternatively, one can do this all in one-line with
docker-compose exec static npm install --save-dev <package_name>
import
the package where needed in the code
docker-compose exec static npm run produce
- Read the Engine and Compose CLIs