Remove contributors, fix README and jest.config.js

This commit is contained in:
mickie 2021-08-20 18:39:54 -05:00
parent 3685e8696b
commit e02207d005
4 changed files with 101 additions and 179 deletions

View File

@ -1,48 +0,0 @@
{
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"contributors": [
{
"login": "davidnguyen179",
"name": "David Nguyen",
"avatar_url": "https://avatars.githubusercontent.com/u/6290720?v=4",
"profile": "https://www.dzungnguyen.dev",
"contributions": [
"code",
"doc",
"design",
"maintenance",
"review",
"test"
]
},
{
"login": "immint023",
"name": "Minh Ngo",
"avatar_url": "https://avatars.githubusercontent.com/u/38607460?v=4",
"profile": "https://github.com/immint023",
"contributions": [
"code",
"test"
]
},
{
"login": "3BenLee",
"name": "Ben Harned",
"avatar_url": "https://avatars.githubusercontent.com/u/35267414?v=4",
"profile": "http://benlee3.com",
"contributions": [
"doc"
]
}
],
"contributorsPerLine": 7,
"projectName": "web-extension-boilerplate",
"projectOwner": "davidnguyen179",
"repoType": "github",
"repoHost": "https://github.com",
"skipCi": true
}

226
README.md
View File

@ -1,32 +1,48 @@
# ![img](/src/img/logo.png) Share Freedom - browser extension [![jest](https://jestjs.io/img/jest-badge.svg)](https://github.com/facebook/jest)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/davidnguyen179/web-extension-boilerplate/pulls)
![ci/cd](https://github.com/davidnguyen179/web-extension-boilerplate/workflows/ci/cd/badge.svg)
# ![img](https://gitlab.com/uploads/-/system/project/avatar/16473487/logo-min.png) Fedishare
Share the current tab on the [fediverse](https://fediverse.party/). Share the current tab on the [fediverse](https://fediverse.party/).
[![Firefox Add-on](/src/img/badge-amo.png)](https://addons.mozilla.org/en-US/firefox/addon/share-freedom/) ## Get the extension TODO
### Gecko
| Firefox Browser Add-ons | Trisquel Web Browser Add-ons |
---|---
[![img](https://upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Firefox_logo%2C_2019.svg/77px-Firefox_logo%2C_2019.svg.png)](https://addons.mozilla.org/en-US/firefox/addon/fedishare-addon) | ![img](https://trisquel.info/files/avatars/picture-1.png)
### Blink
| Chrome Web Store | Opera addons |
---|---
![img](https://storage.googleapis.com/chrome-gcs-uploader.appspot.com/image/WlD8wC6g8khYWPJUsQceQkhXSlv1/tbyBjqi7Zu733AAKA5n4.png) | ![img](https://addons-static.operacdn.com/static/header-footer/css/img/opera-addons.png)
## Features ## Features
Simplest add-on for the fediverse. Share web pages right from the toolbar button. Simplest add-on for the fediverse. Share web pages right from the toolbar button.
Supported services/protocols: ### Supported services/protocols:
- Gnusocial
- Mastodon / Misskey
- Hubzilla
- Diaspora - Diaspora
- Friendica - Friendica
- Socialhome - Gnusocial
- Hubzilla / Zap
- Lemmy - Lemmy
- Mastodon / Misskey
- Pleroma - Pleroma
- Osada / Zap / Zot6 - Socialhome
- XMPP - XMPP
## Contributing ## Contributing
You can contribute in the following ways: You can contribute in the following ways:
- Finding and reporting bugs - Finding and reporting bugs.
- Contributing code to the project by fixing bugs or implementing features - Contributing code to the project by fixing bugs or implementing features.
### Bug reports ### Bug reports
@ -38,133 +54,87 @@ Bug reports and feature suggestions can be submitted to [Gitlab Issues](https://
Please use clean, concise titles for your pull requests. Please use clean, concise titles for your pull requests.
## Build
## Invite an ice cream This project uses the [Web Extension Boilerplate](https://github.com/davidnguyen179/web-extension-boilerplate).
### Prerequisites
Gecko
- Mozilla Firefox 59 (or higher)
**Install all dependencies:** `npm i`
### Development
##### Chrome
- Dev: `npm run app:chrome-dev`
- Production: `npm run app:chrome`
##### Edge
- Dev: `npm run app:edge-dev`
- Production: `npm run app:edge`
##### Firefox
- Dev: `npm run app:firefox-dev`
- Production: `npm run app:firefox`
#### Load package to browsers
1. Go to the browser's URL address bar
In Chrome:
2. Enter `chrome://extensions`
In Edge:
2. Enter `edge://extensions`
In Firefox:
2. Enter `about:debugging#/runtime/this-firefox`
In Chrome and Edge:
3. Turn on "**Developer mode**"
4. Load extension by clicking "**Load unpacked**"
5. Browse to `dist/` in source code.
In Firefox:
3. Click **Load Temporary Add-on...**
4. Browse to your `manifest.json` & click **Open**
#### CSS
[tailwindcss](https://tailwindcss.com) is the framework used for this project.
- Dev: `npm run style-dev`
- Production: `npm run style`
Set all css custom in: `public/styles.css`. The `main.css` is generated in `dist`.
## Donations
You can collaborate with __donations__ for the project :)
__Bitcoins:__ bc1qf7v8zty2yz8phulet29wcpxjclvffn5w6ry43w __Bitcoins:__ bc1qf7v8zty2yz8phulet29wcpxjclvffn5w6ry43w
__Ethereum:__ 0xca2FD9C3834694E2cB3db3bf79b3AfB083bA6732 __Ethereum:__ 0xca2FD9C3834694E2cB3db3bf79b3AfB083bA6732
![](/src/img/ice-cream.png)
[CC-BY 4.0 by Vincent Le Moign](https://commons.wikimedia.org/wiki/File:552-soft-ice-cream-2.svg)
## License ## License
This program is licensed under GPL v3 [![Large GPLv3 logo with “Free as in Freedom”](https://www.gnu.org/graphics/gplv3-with-text-136x68.png)](http://www.gnu.org/licenses/gpl-3.0.en.html)
Copyleft (ɔ) 2021 - Miguel (mickie) Copyright (C) 2019-2021 Miguel (aka mickie) <millet@tuta.io>
This file is part of Fedishare.
Fedishare is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
See LICENSE file for more information.
## TODO
This boilerplate provides a skeleton to start developing cross-browser web extensions.
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
[![jest](https://jestjs.io/img/jest-badge.svg)](https://github.com/facebook/jest) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/davidnguyen179/web-extension-boilerplate/pulls)
![ci/cd](https://github.com/davidnguyen179/web-extension-boilerplate/workflows/ci/cd/badge.svg)
## Development
```bash
npm i
```
**Chrome**
```bash
npm run app:chrome-dev
```
**Edge**
```bash
npm run app:edge-dev
```
**Firefox**
```bash
npm run app:firefox-dev
```
## Production
```bash
npm i
```
```bash
npm run app:chrome
```
**Edge**
```bash
npm run app:edge
```
**Firefox**
```bash
npm run app:firefox
```
## Load package to browsers
**Chrome**
1. Go to the browser's URL address bar
2. Enter `chrome://extensions/`
3. Switch to "**Developer mode**"
4. Load extension by clicking "**Load unpacked**"
5. Browse to `dist/` in source code
6. Done!
Check here for more detail: [https://developer.chrome.com/extensions/getstarted](https://developer.chrome.com/extensions/getstarted)
**Edge**
1. Go to the browser's URL address bar
2. Enter `edge://extensions/`
3. Turn on `Developer mode`
4. Load extension by clicking "**Load unpacked**"
5. Browse to `dist/` in source code
6. Done!
**Firefox**
1. Go to the browser's URL address bar
2. Enter `about:debugging#/runtime/this-firefox`
3. Click **Load Temporary Add-on...**
4. Browse to your `manifest.json` & click **Open**
5. Done!
Check here for more details: [https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/](https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/)
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://www.dzungnguyen.dev"><img src="https://avatars.githubusercontent.com/u/6290720?v=4?s=100" width="100px;" alt=""/><br /><sub><b>David Nguyen</b></sub></a><br /><a href="https://github.com/davidnguyen179/web-extension-boilerplate/commits?author=davidnguyen179" title="Code">💻</a> <a href="https://github.com/davidnguyen179/web-extension-boilerplate/commits?author=davidnguyen179" title="Documentation">📖</a> <a href="#design-davidnguyen179" title="Design">🎨</a> <a href="#maintenance-davidnguyen179" title="Maintenance">🚧</a> <a href="https://github.com/davidnguyen179/web-extension-boilerplate/pulls?q=is%3Apr+reviewed-by%3Adavidnguyen179" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/davidnguyen179/web-extension-boilerplate/commits?author=davidnguyen179" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/immint023"><img src="https://avatars.githubusercontent.com/u/38607460?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Minh Ngo</b></sub></a><br /><a href="https://github.com/davidnguyen179/web-extension-boilerplate/commits?author=immint023" title="Code">💻</a> <a href="https://github.com/davidnguyen179/web-extension-boilerplate/commits?author=immint023" title="Tests">⚠️</a></td>
<td align="center"><a href="http://benlee3.com"><img src="https://avatars.githubusercontent.com/u/35267414?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ben Harned</b></sub></a><br /><a href="https://github.com/davidnguyen179/web-extension-boilerplate/commits?author=3BenLee" title="Documentation">📖</a></td>
</tr>
</table>
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

View File

@ -1,7 +1,7 @@
const ignores = ['/node_modules/', '__mocks__']; const ignores = ['/node_modules/', '__mocks__'];
module.exports = { module.exports = {
collectCoverageFrom: ['src/lib/app.ts', 'src/lib/utils.ts'], collectCoverageFrom: ['src/lib/app.ts'],
testMatch: ['**/test/**/*.spec.+(ts|tsx|js)'], testMatch: ['**/test/**/*.spec.+(ts|tsx|js)'],
testPathIgnorePatterns: [...ignores], testPathIgnorePatterns: [...ignores],
coveragePathIgnorePatterns: [...ignores, 'src/(umd|cjs|esm)-entry.js$'], coveragePathIgnorePatterns: [...ignores, 'src/(umd|cjs|esm)-entry.js$'],

View File

@ -15,8 +15,8 @@
"app:firefox": "rimraf dist && cross-env BROWSER='firefox' webpack --config webpack/webpack.prod.js", "app:firefox": "rimraf dist && cross-env BROWSER='firefox' webpack --config webpack/webpack.prod.js",
"app:firefox-dev": "cross-env BROWSER='firefox' webpack --config webpack/webpack.dev.js --watch", "app:firefox-dev": "cross-env BROWSER='firefox' webpack --config webpack/webpack.dev.js --watch",
"test:unit": "jest", "test:unit": "jest",
"build:css": "postcss ./public/css/styles.css -o ./dist/css/main.css", "style-dev": "postcss ./public/css/styles.css -o ./dist/css/main.css",
"build": "NODE_ENV=production postcss ./public/css/styles.css -o ./dist/css/main.css" "style": "NODE_ENV=production postcss ./public/css/styles.css -o ./dist/css/main.css"
}, },
"repository": { "repository": {
"type": "git", "type": "git",