Front-end to complement mozilla/addons-server
Перейти к файлу
greenkeeperio-bot 116a56efa1 chore(package): update webpack to version 1.13.1
https://greenkeeper.io/
2016-05-20 10:20:11 -07:00
bin Create debug locales 2016-05-20 17:00:54 +01:00
config Create debug locales 2016-05-20 17:00:54 +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 Document how to create a new page (fixes #309) 2016-05-17 15:43:02 -05:00
locale Create debug locales 2016-05-20 17:00:54 +01:00
src Update type, status, platform to be constants (fixes #399) (#411) 2016-05-20 11:11:22 -05:00
tests Update type, status, platform to be constants (fixes #399) (#411) 2016-05-20 11:11:22 -05: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 Extract locale data 2016-05-20 12:36:06 +01:00
.gitignore Setup SRI for assets 2016-04-27 11:08:38 +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
.travis.yml Fix + run server tests on travis 2016-05-10 10:30:11 +01:00
Dockerfile Add forward slash to directory destination when using ADD 2016-03-21 16:20:22 -04:00
LICENSE Initial commit 2016-02-19 17:25:58 +00:00
README.md Extract locale data 2016-05-20 12:36:06 +01:00
en_GB.po Create locales 2016-05-20 15:59:22 +01:00
karma.conf.js Add logging for the browser 2016-05-17 15:57:33 +01:00
package.json chore(package): update webpack to version 1.13.1 2016-05-20 10:20:11 -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 Add tick as svg 2016-05-10 15:34:46 +01:00
webpack.dev.config.babel.js Add logging for the browser 2016-05-17 15:57:33 +01:00
webpack.l10n.config.babel.js Support ngettext and friends 2016-05-20 15:45:36 +01:00
webpack.prod.config.babel.js Extract locale data 2016-05-20 12:36:06 +01:00

README.md

Build Status Coverage Status

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 build-l10n 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%)