Skip to content

Commit 1d385c9

Browse files
committed
Move to npm, Update README, fix no author link
1 parent 19a817c commit 1d385c9

File tree

5 files changed

+8207
-10
lines changed

5 files changed

+8207
-10
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ dist
77
dist.zip
88
./dist
99
.DS_Store
10-
yarn.lock
1110
.vscode
1211
builds/

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ Follows Standard JS
77
## Setup
88
```
99
git 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

components/PostCard.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)