dmpopidor / app / javascript /
@Sam Rust Sam Rust authored on 28 Feb 2020
GitHub committed on 28 Feb 2020
..
locale Update asset structure with webpacker gem 7 years ago
packs Refactor of usage dashboard (moved logic from JS to Ruby) (#2336) 6 years ago
utils enable js.erb parsing with webpacker, rename references to tinymce.js, and properly get the asset_path for the tinymce content stylesheet 6 years ago
views Merge branch 'development' into bug/tinymce_styling 6 years ago
README.md Update README.md 7 years ago
constants.js Update asset structure with webpacker gem 7 years ago
README.md

Set up

We use WebPack to pre-compile all our assets. Before executing any bundling, please make sure that all the dependencies are installed first by typing:

npm install

within lib/assets

Assets Bundling

We have set up two environments, one for development which watching for changes at any .js or .css file to pre-compile on the fly and another for production. For a development environment, i.e. if the developer is making changes, please type:

npm run bundle

and for production, please type:

npm run bundle -- -p --no-watch

Note, the above commands have to run within lib/assets directory.

Testing

We use jasmine to write unit tests together with karma for testing in real browser our functionality. Please type the following command to execute every test for JavaScript modules.

npm test