DEPRECATED - Migrated to https://github.com/mozilla/fxa
Перейти к файлу
Shane Tomlinson 46921fbaee fix(logo): Use the new Firefox logo in Fx Desktop/Android >= 57, iOS >= 10. (#5643) r=@vbudhram, @ryanfeeley
Do some UA sniffing on startup to add the "fx-57" class
to the HTML element. If "fx-57" exists, display the
new logo.

fixes #5588
2017-10-25 12:49:47 +01:00
app fix(logo): Use the new Firefox logo in Fx Desktop/Android >= 57, iOS >= 10. (#5643) r=@vbudhram, @ryanfeeley 2017-10-25 12:49:47 +01:00
docs refactor(form): remove disabled form state (#5437) r=@vbudhram 2017-10-16 16:18:22 +01:00
grunttasks refactor(l10n): extract l10n from node_modules (#5395) r=@shane-tomlinson 2017-09-06 13:18:38 +01:00
locale refactor(l10n): extract l10n from node_modules (#5395) r=@shane-tomlinson 2017-09-06 13:18:38 +01:00
scripts refactor(l10n): extract l10n from node_modules (#5395) r=@shane-tomlinson 2017-09-06 13:18:38 +01:00
server fix(logo): Use the new Firefox logo in Fx Desktop/Android >= 57, iOS >= 10. (#5643) r=@vbudhram, @ryanfeeley 2017-10-25 12:49:47 +01:00
tests fix(logo): Use the new Firefox logo in Fx Desktop/Android >= 57, iOS >= 10. (#5643) r=@vbudhram, @ryanfeeley 2017-10-25 12:49:47 +01:00
.bowerrc
.editorconfig
.eslintignore
.eslintrc feat(eslint-plugin-fxa): using 1 repository of eslint rules (#4698) 2017-02-09 21:10:26 -05:00
.gitattributes
.gitignore refactor(l10n): extract l10n from node_modules (#5395) r=@shane-tomlinson 2017-09-06 13:18:38 +01:00
.htmllintrc
.nsprc feat(deps): update deps (#5534), r=@vbudhram 2017-09-27 19:34:48 -04:00
.nvmrc feat(node): upgrade to Node 6 (#5173) r=@shane-tomlinson 2017-06-29 00:56:46 +01:00
.sass-lint.yml
.travis.yml fix(tests): make tests work in FF56 or FF57 (#5555) r=vladikoff,shane-tomlinson 2017-10-10 16:37:09 -04:00
AUTHORS Release v1.94.0 2017-08-22 11:47:11 -04:00
CHANGELOG.md Release v1.98.2 2017-10-19 09:45:21 -04:00
CONTRIBUTING.md fix(l10n): move l10n install into postinstall (#4498) r=vbudhram 2016-12-13 11:49:32 -05:00
Dockerfile-build fix(nodejs): upgrade to 6.11.1 for security fixes (#5232) r=vladikoff 2017-07-13 11:45:33 -04:00
Gruntfile.js chore(dependencies): upgrade away from deprecated mozlog usage (#5349) r=vladikoff 2017-08-11 10:24:31 -04:00
LICENSE
README.md fix(docs): add table of contents to the readme 2017-10-17 11:58:37 +01:00
bower.json feat(metrics): include utm params in metrics context 2017-09-21 21:48:46 +01:00
circle.yml fix(tests): make tests work in FF56 or FF57 (#5555) r=vladikoff,shane-tomlinson 2017-10-10 16:37:09 -04:00
npm-shrinkwrap.json fix(build): Use the newest bower to use newest registry. 2017-10-11 16:00:16 +01:00
package.json Release v1.98.2 2017-10-19 09:45:21 -04:00

README.md

Firefox Accounts Content Server

Build Status: Travis Build Status: Circle CI Coverage Status

Static server that hosts Firefox Account sign up, sign in, email verification, etc. flows.

Quick Start

Clone the repository, make sure you have required prerequisites installed. Run npm install and npm run start-remote. This will start a local fxa-content-server on http://127.0.0.1:3030 that works with remote Firefox Accounts servers.

If you want to install all Firefox Accounts servers locally follow the instructions on: fxa-local-dev to get a full development setup running. Please note that fxa-local-dev is the preferred way of contributing to Firefox Accounts.

Development Notes

Changes to stylesheets

To have the css resources automatically rebuilt after changes, run grunt sass watch. Now whenever a change is made to the .scss files, the corresponding css resources will be rebuilt.

Changes to scripts and templates

Any changes made to the scripts or the template files will automatically be reflected on page refresh.

Testing

Prerequisites

Setup

To run tests locally with Selenium:

npm test

To change the default auth server edit server/config/*.json on your deployed instance.

{
  "fxaccount_url": "http://your.auth.server.here.org"
}

Note that testing with Selenium via Docker does not work at present, so all testing must be carried out via your normal operating system's npm & Java tooling.

Grunt Commands

Grunt is used to run common tasks to build, test, and run local servers.

TASK DESCRIPTION
grunt build build production resources. See task source for more documentation
grunt clean remove any built production resources.
grunt lint run ESLint, Sass-lint, amdcheck and JSONLint on client side and testing JavaScript.
grunt sass watch rebuild css resources automatically when changes are made to the .scss files (file needs to be saved).
grunt server run a local server running on port 3030 with development resources.
grunt server:dist run a local server running on port 3030 with production resources. Production resources will be built as part of the task.
grunt test run local Intern tests.
grunt version stamp a new minor version. Updates the version number and creates a new CHANGELOG.md.
grunt version:patch stamp a new patch version. Updates the version number and creates a new CHANGELOG.md.

Servers

License

MPL 2.0