formatting

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-08-06 15:11:08 -04:00
parent 25854cc6e8
commit 225ed57381
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 3 additions and 4 deletions

View File

@ -10,7 +10,7 @@ This is achieved by use of [CloudFlare Workers](https://developers.cloudflare.co
The whole scrip is [`go_vanity.js`](go_vanity.js) which simply generates some basic HTML which includes the necessary `<meta>` tags for Go Vanty imports which look like this:
```html
<meta name="go-import" content="go.status.im/whisper git https://github.com/status-im/whisper ">
<meta name="go-import" content="go.status.im/whisper git https://github.com/status-im/whisper">
```
# Configuration
@ -20,8 +20,6 @@ Just edit the `PACKAGES` variable in [`go_vanity.js`](go_vanity.js):
const PACKAGES = {
'go.status.im/something': 'https://github.com/status-im/status-something', /* added */
'go.status.im/protocol': 'https://github.com/status-im/status-protocol-go',
'go.status.im/status': 'https://github.com/status-im/status-go',
'go.status.im/whisper': 'https://github.com/status-im/whisper ',
}
```

View File

@ -3,13 +3,14 @@
*
* For details on this see:
* - https://developers.cloudflare.com/workers/about/how-workers-work/
* - https://developers.cloudflare.com/workers/recipes/vcl-conversion/delivering-custom-responses/
* - https://developers.cloudflare.com/workers/writing-workers/handling-errors/
**/
const PACKAGES = {
'go.status.im/protocol': 'https://github.com/status-im/status-protocol-go',
'go.status.im/status': 'https://github.com/status-im/status-go',
'go.status.im/whisper': 'https://github.com/status-im/whisper ',
'go.status.im/whisper': 'https://github.com/status-im/whisper',
}
const genMetaTags = (pkgs) => {