Skip to content

Commit 3104743

Browse files
authored
fix: measure-text security vulnerability (#5)
* chore: Add development setup section to the contributing docs. * fix: measure-text upstream dependency security vulnerability (Prototype pollution).
1 parent 2f1dc21 commit 3104743

File tree

7 files changed

+1004
-825
lines changed

7 files changed

+1004
-825
lines changed

CONTRIBUTING.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,50 @@
22

33
Pull requests of any kind are welcome from the community, and if you're reading this I am really happy that you have decided to contribute. You rock! When contributing to this repository, please first discuss the change you wish to make via a GitHub issue with the owners of this repository before making a change.
44

5-
Please note we have a [Code of Conduct][url-code-of-conduct], please follow it in all your interactions with the project.
5+
Please note we have a [Code of Conduct][url-code-of-conduct], please follow it in all of your interactions with this project.
6+
7+
## Development Setup
8+
9+
**Installation:**
10+
11+
1. Clone the project `git clone [email protected]:matt-d-rat/react-middle-truncate.git`
12+
2. Install npm dependencies `npm install`
13+
14+
**Running the demo app:**
15+
16+
```
17+
npm start
18+
```
19+
20+
***Running Eslint***
21+
22+
```
23+
npm run check
24+
```
25+
26+
**Running the tests:**
27+
28+
_Mocha_
29+
30+
```
31+
npm run test
32+
```
33+
34+
```
35+
npm run test:watch
36+
```
37+
38+
_Karma (in-browser)_
39+
40+
```
41+
npm run test:karma
42+
```
43+
44+
_Test coverage_
45+
46+
```
47+
npm run cover
48+
```
649

750
## Pull Request Process
851

config/webpack.base.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ module.exports = {
2929
fonts: path.join(project.path.src, 'demo/assets/fonts'),
3030
images: path.join(project.path.src, 'demo/assets/images'),
3131
lib: path.join(project.path.src, 'react-middle-truncate'),
32-
scss: path.join(project.path.src, 'demo/assets/scss')
32+
scss: path.join(project.path.src, 'demo/assets/scss'),
33+
utils: path.join(project.path.src, 'utils')
3334
},
3435
extensions: ['.js', '.jsx', '.json', '.scss', '.css']
3536
},

0 commit comments

Comments
 (0)