Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meebuhs/newtab
A customisable replacement for chrome's new tab page
https://github.com/meebuhs/newtab
babel chrome enzyme jest newtab prettier react redux sass stylelint tslint typescript webpack yarn
Last synced: 5 days ago
JSON representation
A customisable replacement for chrome's new tab page
- Host: GitHub
- URL: https://github.com/meebuhs/newtab
- Owner: Meebuhs
- License: mit
- Created: 2018-11-25T13:40:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T17:20:38.000Z (almost 2 years ago)
- Last Synced: 2023-03-04T10:19:46.610Z (over 1 year ago)
- Topics: babel, chrome, enzyme, jest, newtab, prettier, react, redux, sass, stylelint, tslint, typescript, webpack, yarn
- Language: TypeScript
- Homepage:
- Size: 5.57 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Newtab
A customisable replacement for chrome's new tab page.
Built with:
- Webpack (4.x)
- Babel (7.x)
- Typescript (3.x)
- React (16.x)
- Redux (4.x)
- Reselect
- SassDevelopment server using:
- webpack-dev-server
Style-checking:
- Prettier
- Tslint
- Stylelint & stylelint-config-sass-guidelinesTested with:
- Jest
- Enzyme
- redux-mock-store## Usage
### Download
[Available on the chrome web store](https://chrome.google.com/webstore/detail/new-new-tab-page/eonojphadknncejoaegdigoaonfpjbmo)
### Build
It is also possible to build and load the extension yourself before release.
```
// Clone repository
git clone https://github.com/Meebuhs/newtab// Install dependencies
cd newtab
yarn// Pack a production build
yarn build
```Finally in chrome go to `chrome://extensions` and ensuring developer mode is enabled, load an unpacked extension and choose newtab/build.
Note that in order for the unsplash rotating background functionality to work you will need to create an [unsplash](unsplash.com/?utm_source=newtab&utm_medium=referral) account and get an access key. This key must be declared in `src/utils/api.ts` as follows:
```
export const apiKey = 'YOUR_KEY_HERE'
```## Development
```
git clone https://github.com/Meebuhs/newtab
cd newtab
yarn
```### Yarn commands
| Command | Description |
| --------------- | ----------------------------------------------- |
| `yarn build` | Packages a production build of this extension. |
| `yarn start` | Starts a local development server on port 8080. |
| `yarn lint` | Runs tslint/prettier and stylelint. |
| `yarn prettier` | Perform in-place prettier reformat. |
| `yarn test` | Runs the test-suite using Jest. |
| `yarn dist` | Compresses the current build for distribution. |## License
This project is released as open source under the [MIT License](https://opensource.org/licenses/MIT)