Skip to content

Commit

Permalink
Pulled in babel latest dep
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj36 committed Mar 15, 2018
1 parent a4501e4 commit 93ddc98
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 108 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["env", "react"]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ React component for syntax highlighting using highlight.js
#### Importing component

```js
var Highlight = require('react-highlight')
const Highlight = require('react-highlight')
```

#### Adding styles
Expand Down
96 changes: 0 additions & 96 deletions karma.conf.js

This file was deleted.

21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "React component for syntax highlighting",
"main": "index.js",
"scripts": {
"prepublish": "babel ./src --out-dir ./lib --plugins=transform-class-properties,transform-react-jsx --presets=env",
"test": "karma start --single-run",
"dev-test": "karma start"
"prepublish":
"babel ./src --out-dir ./lib --plugins=transform-class-properties,transform-react-jsx --presets=env",
"test": "jest"
},
"repository": {
"type": "git",
Expand All @@ -26,34 +26,33 @@
},
"homepage": "https://github.com/akiran/react-highlight",
"dependencies": {
"highlight.js": "^9.11.0"
"highlight.js": "^9.11.0",
"npm": "^5.7.1"
},
"devDependencies": {
"autoprefixer": "^6.7.7",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^6.1.2",
"babel-jest": "^22.4.1",
"babel-loader": "^7.1.2",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-preset-env": "^1.6.0",
"es5-shim": "^4.5.9",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"eslint": "^3.19.0",
"eslint-plugin-react": "^6.10.3",
"html-loader": "^0.4.5",
"jasmine-core": "^2.5.2",
"jest": "^22.4.2",
"jsx-loader": "^0.13.2",
"karma": "^1.6.0",
"karma-jasmine": "^1.1.0",
"karma-phantomjs-launcher": "^1.0.4",
"karma-webpack": "^2.0.3",
"markdown-loader": "^2.0.0",
"multiline": "^1.0.2",
"node-libs-browser": "^2.0.0",
"phantomjs-prebuilt": "^2.1.14",
"raw-loader": "^0.5.1",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-test-renderer": "^16.2.0",
"webpack": "^3.6.0",
"webpack-dev-server": "^2.9.1"
},
Expand Down

0 comments on commit 93ddc98

Please sign in to comment.