dmpopidor / lib / assets /
@briley briley authored on 5 Apr 2018
..
images added missing borders for edit profile and notification preferences. DMPRoadmap/roadmap#867 6 years ago
javascripts Template Versioning 6 years ago
stylesheets Template Versioning 6 years ago
videos/index.files/ html5video moved assets from app/assets to lib/assets. The files in lib/assets will be used by Rails unless override by an equivalent file in app/assets. Added logic to applicationController so that it will look first for a template in app/views/[:branded folder name] before using the default in app/views 7 years ago
.eslintignore List of default templates of type organisation with is_default to true. DMPRoadmap/roadmap#612 6 years ago
.eslintrc.json List of default templates of type organisation with is_default to true. DMPRoadmap/roadmap#612 6 years ago
.keep front-end dependencies handled through npm. DMPRoadmap/roadmap#551 6 years ago
README.md is module and travis configuration tweaked. DMPRoadmap/roadmap#601 6 years ago
karma.conf.js 1. click ariatiseForm preventDefault only once now 6 years ago
package-lock.json Ruby Upgrade v2.4.4 6 years ago
package.json Ruby Upgrade v2.4.4 6 years ago
webpack.config.js Fix specific to #1263 - shouldn't affect anything else 6 years ago
webpack.karma.config.js is module and travis configuration tweaked. DMPRoadmap/roadmap#601 6 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

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