Core JS modules for Firefox Marketplace frontend projects
Перейти к файлу
Davor Spasovski 59bb600db1 allow notifications to have a pos/negative state (bug 1189762) 2016-02-01 12:33:20 -05:00
core allow notifications to have a pos/negative state (bug 1189762) 2016-02-01 12:33:20 -05:00
tests Lazy string support for format.format 2015-08-06 12:32:44 -05:00
.gitignore Unit testing with karma, mocha, chai and sinon 2015-03-02 11:57:16 -06:00
.travis.yml Unit testing with karma, mocha, chai and sinon 2015-03-02 11:57:16 -06:00
LICENSE Initial commit 2014-11-05 09:44:02 -08:00
Makefile rename views to core/views, makefile test directive 2015-03-09 15:52:38 -07:00
README.md Fix typo in README 2015-03-04 16:35:02 +00:00
bower.json allow notifications to have a pos/negative state (bug 1189762) 2016-02-01 12:33:20 -05:00
karma.conf.js fix jquery path 2015-04-07 12:04:33 -07:00
package.json v2.11.0 update l10n to match commonplace langpack optimizations (bug 1144425) 2015-07-17 12:04:25 -07:00
test-main.js Fix jquery path in requirejs config for unittest 2015-04-08 00:57:05 +02:00

README.md

Core JS modules for Firefox Marketplace frontend projects.

Developing Modules

For convenience, you can clone this repository straight into the src/media/js/lib directory of your frontend project. That way, you can test your modules and handle revisions in the same place (without needing to copy modules to a different folder to commit).

Be careful as running make install may overwrite changes you make in that directory!

Updating a Module

When you update a module:

  • Bump the version in bower.json
  • Git tag that version and push to Github (e.g., git tag v1.2.0 && git push origin v1.2.0)
  • Add a release entry with the details of the changes in the tag you've just added here https://github.com/mozilla/marketplace-core-modules/releases
  • Bump your project's bower.json to pull in the new changes
  • Run make install to get these modules into your project and into your RequireJS development configuration

Adding a Module

When adding an core module:

  • Commit the module
  • Add the name of the module to CORE_MODULES in lib/config.js in Commonplace
  • Follow the same steps above for Updating a Module

The Commonplace step will make it so Marketplace frontend projects won't have to manually configure the module into their RequireJS configurations.