Test Pilot is a platform for performing controlled tests of new product concepts in Firefox
Перейти к файлу
Les Orchard 52a9519366 Update Firefox Color link 2019-03-21 16:17:38 -04:00
bin Switch from 1y to 10m on max-age for general assets, since we no longer have a build process that sticks hashes in filenames 2019-01-18 12:50:22 -05:00
certs/server Initial implementation of uninstall button and alert item 2018-12-11 16:42:06 -05:00
locales Merge in changes from l10n branch 2019-03-21 16:13:10 -04:00
src Update Firefox Color link 2019-03-21 16:17:38 -04:00
.editorconfig Initial implementation of uninstall button and alert item 2018-12-11 16:42:06 -05:00
.gitignore Initial implementation of uninstall button and alert item 2018-12-11 16:42:06 -05:00
CODEOWNERS Add CODEOWNERS file 2019-01-14 14:05:59 -08:00
README.md Update README.md 2019-01-18 13:48:04 -05:00
circle.yml Switch from master to eol branch for dev deployments 2019-01-18 12:36:19 -05:00
package-lock.json Add pricewise link (#4037) 2019-01-31 12:57:14 -05:00
package.json Tweaks and reworkings to better conform to existing Test Pilot deployment setup 2019-01-17 12:34:17 -05:00

README.md

testpilot-eol

Simpler Test Pilot site for overall program graduation.

Main features:

  1. The simple JSON file at /api/news_updates.json should provide one last fresh item to trigger the add-on badge alert.

  2. The site should automatically remove the Test Pilot add-on if it's detected on visit to the site.

Development

npm install
npm start
open https://example.com:8000/

If you haven't already followed the Test Pilot quickstart instructions for development, you'll need to use Firefox Developer Edition and enable the extensions.webapi.testing preference in about:config. This is necessary to run code for uninstalling the Test Pilot add-on.

Accepting work from l10n branch

Because this EOL mini-site is a totally different set of commits from master, accepting changes from the l10n branch is a little hacky.

Here's a quick-and-dirty way to do it:

git co l10n
git pull origin l10n
cp -r locales locales-new
git co eol
cp -r locales-new/* locales/
rm -rf locales-new
git add locales
git ci -m'Accept new l10n work'

Oh yeah, and check availableLanguages in index.html to ensure it lists all the locales where strings are available.

Building for Deployment

npm install
npm run static

This should leave you with a ready-to-deploy static site under the dist/ directory.