remote-newtab/README.md

39 строки
969 B
Markdown
Исходник Постоянная ссылка Обычный вид История

2016-01-07 19:51:20 +03:00
# New tab
2015-08-14 01:21:15 +03:00
2016-01-07 19:51:20 +03:00
This is a remote implementation of the "new tab" page for Firefox. It can be run inside the browser, or on its own with a "platform" shim.
2015-08-14 01:21:15 +03:00
2016-01-07 19:51:20 +03:00
## Developer Setup
2015-08-14 01:21:15 +03:00
2016-01-07 19:51:20 +03:00
### Web assets
2015-08-14 01:21:15 +03:00
2016-01-07 19:51:20 +03:00
```bash
2016-01-11 22:19:01 +03:00
git clone https://github.com/mozilla/remote-newtab.git
cd remote-newtab
2016-01-07 19:51:20 +03:00
npm install && npm start
```
2015-08-14 01:21:15 +03:00
2016-01-07 19:51:20 +03:00
This will start a dev server and build all necessary files in developer mode
2015-08-14 01:21:15 +03:00
2016-01-07 19:51:20 +03:00
### Firefox
2015-08-14 01:21:15 +03:00
2016-01-07 19:51:20 +03:00
First, clone the Firefox code currently in development for this repo in at [mozilla/newtab-dev](https://github.com/mozilla/newtab-dev).
```bash
git clone https://github.com/mozilla/newtab-dev.git
```
Edit the file at `browser/components/newtab/RemoteNewTabLocation.jsm` to point to `http://localhost:1944`:
```diff
-const DEFAULT_PAGE_LOCATION = "http://localhost:8000/" +
- "v%VERSION%/%CHANNEL%/%LOCALE%/index.html";
+const DEFAULT_PAGE_LOCATION = "http://localhost:1944";
```
Finally, build and run with `mach`:
```
./mach build
./mach run
```