Core JS modules for Firefox Marketplace frontend projects
Перейти к файлу
Kevin Ngo a0abf93b64 v1.13.1 fix circ deps in storage.js 2015-02-27 16:29:02 -08:00
tests Merge pull request #16 from mozilla/show-skip-status 2015-01-22 16:52:46 -06:00
views Merge pull request #16 from mozilla/show-skip-status 2015-01-22 16:52:46 -06:00
.gitignore add a gitignore 2014-11-12 12:12:40 -08:00
LICENSE Initial commit 2014-11-05 09:44:02 -08:00
README.md Add instruction re adding changelog info to releases 2015-02-04 10:13:48 +00:00
assert.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
bower.json v1.13.1 fix circ deps in storage.js 2015-02-27 16:29:02 -08:00
buckets.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
builder.js v1.8.0 fix and refactor scroll states using events (bug 986625) 2015-02-13 09:45:32 -08:00
cache.js v1.9.0 allow search cache for url key 2015-02-25 14:05:28 -08:00
capabilities.js Revert "Support native FxA on 2.0 (bug 1042886)" 2015-02-11 10:00:39 -08:00
defer.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
format.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
forms.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
helpers.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
init.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
l10n.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
log.js v1.12.0 more aggressive fix for groupCollapsed on nightly (bug 1136550) 2015-02-26 15:26:58 -08:00
login.js v1.10.0 don't show two spinners for Sign In + Register (bug 1130583) 2015-02-25 15:26:11 -08:00
models.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
navigation.js v1.8.0 fix and refactor scroll states using events (bug 986625) 2015-02-13 09:45:32 -08:00
not_found.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
notification.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
nunjucks.compat.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
nunjucks.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
polyfill.js add `window.performance.now` polyfill (bug 1090572) 2014-11-18 12:30:26 -08:00
requests.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
scroll_state.js v1.8.0 fix and refactor scroll states using events (bug 986625) 2015-02-13 09:45:32 -08:00
site_config.js Allow location.origin for postMessage, send client_id to zamboni 2014-11-13 16:52:05 -06:00
storage.js v1.13.1 fix circ deps in storage.js 2015-02-27 16:29:02 -08:00
urls.js v1.9.0 allow search cache for url key 2015-02-25 14:05:28 -08:00
user.js Remove FxA migration support (bug 1117875) 2015-01-23 09:44:23 -06:00
utils.js v1.9.0 allow search cache for url key 2015-02-25 14:05:28 -08:00
views.js modularize (bug 1094263) 2014-11-05 09:49:26 -08:00
z.js modularize (bug 1094263) 2014-11-05 09:49:26 -08: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 updating 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.