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 fsnotifyin 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
touchto 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 -dwill run the front end watcher
npm run watchstarts 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 staticwill show any output or errors in the build process
docker-compose exec static bashwill 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>
importthe package where needed in the code
docker-compose exec static npm run produce
- Read the Engine and Compose CLIs