File tree Expand file tree Collapse file tree 5 files changed +8207
-10
lines changed Expand file tree Collapse file tree 5 files changed +8207
-10
lines changed Original file line number Diff line number Diff line change 77dist.zip
88. /dist
99.DS_Store
10- yarn.lock
1110.vscode
1211builds /
Original file line number Diff line number Diff line change @@ -7,20 +7,20 @@ Follows Standard JS
77## Setup
88```
99git clone https://github.com/Hashnode/hashnode-chrome-extension
10- yarn install --ignore-engines
11- yarn start // starts the web app
10+ npm install
11+ npm start // starts the web app
1212```
1313##### Google Chrome extension
1414
1515```
16- yarn start-chrome // same as web app but is served from ./dist/dist-chrome
17- yarn build-chrome // builds for chrome and will be available in ./builds/chrome
16+ npm start-chrome // same as web app but is served from ./dist/dist-chrome
17+ npm build-chrome // builds for chrome and will be available in ./builds/chrome
1818```
1919##### Mozilla Firefox extension
2020
2121```
22- yarn start-firefox // same as web app but is served from ./dist/dist-firefox
23- yarn build-firefox // builds for firefox and will be available in ./builds/firefox
22+ npm start-firefox // same as web app but is served from ./dist/dist-firefox
23+ npm build-firefox // builds for firefox and will be available in ./builds/firefox
2424```
2525
2626` manifest.json ` files are maintained sperately for firefox and chrome in their respective folders.
@@ -31,7 +31,7 @@ In order to live test the extension copy the `manifest.json` file manually to re
3131----
3232
3333** To build for production**
34- Run ` yarn build-all` . This builds for both chrome and firefox. This time no need to copy manifest file manually. Everything is taken care of.
34+ Run ` npm build-all` . This builds for both chrome and firefox. This time no need to copy manifest file manually. Everything is taken care of.
3535
3636---
3737
Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ export class PostCard extends Component {
6060 ? 'https://hashnode.com/@' +
6161 post . author . username +
6262 `?utm_source=${ utmVal } &utm_medium=extension`
63- : ''
63+ : `https://hashnode.com/post/${ post . slug } -${
64+ post . cuid
65+ } ?utm_source=${ utmVal } &utm_medium=extension`
6466 } `}
6567 target = '_blank'
6668 className = 'author'
You can’t perform that action at this time.
0 commit comments