Front-end to complement mozilla/addons-server
Перейти к файлу
greenkeeperio-bot df36af33a2 chore(package): update babel-core to version 6.10.4
https://greenkeeper.io/
2016-06-23 11:06:23 -07:00
bin Make spacing around object braces consistent 2016-06-14 16:10:55 +01:00
config Remove frame-ancestors since x-frame-options will suffice 2016-06-16 10:11:15 +01:00
dist add initial folder layout 2016-02-22 15:03:04 +00:00
docker Production style docker environment (fixes #52) 2016-03-02 11:55:34 -06:00
docs Add docs for i18n and unify debug-locales to run per app 2016-06-02 21:30:38 +01:00
locale Pontoon: Update Portuguese (pt-BR) localization of AMO Frontend 2016-06-21 18:03:16 +00:00
src Allow links in headings, add attrs with DOMPurify 2016-06-23 15:38:53 +01:00
tests Allow links in headings, add attrs with DOMPurify 2016-06-23 15:38:53 +01:00
.babelrc Extract locale data 2016-05-20 12:36:06 +01:00
.eslintignore Setup code coverage generation 2016-03-02 19:54:47 +00:00
.eslintrc Make spacing around object braces consistent 2016-06-14 16:10:55 +01:00
.gitignore ignore local* config files 2016-06-02 12:48:26 +01:00
.npmrc Add .npmrc 2016-02-22 18:54:24 +00:00
.nvmrc Specify node version 2016-02-22 18:54:39 +00:00
.stylelintrc Add max-nesting limit 2016-06-23 14:27:36 +01:00
.travis.yml Fix + run server tests on travis 2016-05-10 10:30:11 +01:00
Dockerfile Add __version__ endpoint 2016-05-26 11:09:57 -04:00
LICENSE Initial commit 2016-02-19 17:25:58 +00:00
README.md Link to addons-server in README 2016-06-21 11:11:07 -05:00
karma.conf.js Make spacing around object braces consistent 2016-06-14 16:10:55 +01:00
package.json chore(package): update babel-core to version 6.10.4 2016-06-23 11:06:23 -07:00
test-runner.js Use sinon sandboxes by default (fixes #275) 2016-05-18 09:42:11 -05:00
webpack-isomorphic-tools-config.js Remove unecessary config 2016-05-26 12:38:10 +01:00
webpack.dev.config.babel.js Remove search locale json files 2016-06-02 12:48:26 +01:00
webpack.l10n.config.babel.js Fix i18n function names so extraction still works 2016-05-26 10:27:26 +01:00
webpack.prod.config.babel.js Make spacing around object braces consistent 2016-06-14 16:10:55 +01:00

README.md

Build Status Coverage Status

Documentation

Addons-frontend 🔥

Front-end infrastructure and code to complement mozilla/addons-server.

Requirements

  • Node 4.x LTS
  • npm 3.x

The easiest way to manage multiple node versions in development is to use nvm. See https://github.com/creationix/nvm for more info.

Get started

  • npm install
  • npm run dev

NPM scripts

Script Description
npm run start:disco Starts the express server (prod mode disco pane)
npm run start:search Starts the express server (prod mode search)
npm run build Builds the libs (all apps)
npm run extract-locales Builds the libs + extracts translations
npm run build:disco Builds the libs (discovery pane)
npm run build:search Builds the libs (search)
npm run dev:search Starts the dev server (search app)
npm run dev:disco Starts the dev server (discovery pane)
npm run lint Lints the files with eslint (Run in npm test)
npm run eslint An alias for npm run lint
npm run version-check Checks you have the minimum node + npm versions
npm test Runs the tests

Running a production build of a specific app:

Running a specific prod build is as follows:

NODE_APP_INSTANCE=search NODE_ENV=production npm run build && npm run start

Overview and rationale

This project will hold several distinct front-ends e.g:

  • Editors search tool
  • Discovery Pane
  • and beyond...

We've made a conscious decision to avoid "premature modularization" and keep this all in one repository. This will help us build out the necessary tooling to support a universal front-end infrastructure without having to worry about cutting packages and bumping versions the entire time.

At a later date if we need to move things out into their own project we still can.

Core technologies

  • Based on Redux + React
  • Code written in ES2015+
  • Universal rendering via node
  • Unit tests with high coverage (aiming for 100%)