Skip to content

Commit

Permalink
fix: measure-text security vulnerability (#5)
Browse files Browse the repository at this point in the history
* chore: Add development setup section to the contributing docs.

* fix: measure-text upstream dependency security vulnerability (Prototype pollution).
  • Loading branch information
matt-d-rat authored Aug 19, 2019
1 parent 2f1dc21 commit 3104743
Show file tree
Hide file tree
Showing 7 changed files with 1,004 additions and 825 deletions.
45 changes: 44 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,50 @@

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.

Please note we have a [Code of Conduct][url-code-of-conduct], please follow it in all your interactions with the project.
Please note we have a [Code of Conduct][url-code-of-conduct], please follow it in all of your interactions with this project.

## Development Setup

**Installation:**

1. Clone the project `git clone [email protected]:matt-d-rat/react-middle-truncate.git`
2. Install npm dependencies `npm install`

**Running the demo app:**

```
npm start
```

***Running Eslint***

```
npm run check
```

**Running the tests:**

_Mocha_

```
npm run test
```

```
npm run test:watch
```

_Karma (in-browser)_

```
npm run test:karma
```

_Test coverage_

```
npm run cover
```

## Pull Request Process

Expand Down
3 changes: 2 additions & 1 deletion config/webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ module.exports = {
fonts: path.join(project.path.src, 'demo/assets/fonts'),
images: path.join(project.path.src, 'demo/assets/images'),
lib: path.join(project.path.src, 'react-middle-truncate'),
scss: path.join(project.path.src, 'demo/assets/scss')
scss: path.join(project.path.src, 'demo/assets/scss'),
utils: path.join(project.path.src, 'utils')
},
extensions: ['.js', '.jsx', '.json', '.scss', '.css']
},
Expand Down
Loading

0 comments on commit 3104743

Please sign in to comment.