Skip to content

Commit 93ddc98

Browse files
committedMar 15, 2018
Pulled in babel latest dep
1 parent a4501e4 commit 93ddc98

File tree

4 files changed

+14
-108
lines changed

4 files changed

+14
-108
lines changed
 

‎.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["env", "react"]
3+
}

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ React component for syntax highlighting using highlight.js
2323
#### Importing component
2424

2525
```js
26-
var Highlight = require('react-highlight')
26+
const Highlight = require('react-highlight')
2727
```
2828

2929
#### Adding styles

‎karma.conf.js

-96
This file was deleted.

‎package.json

+10-11
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "React component for syntax highlighting",
55
"main": "index.js",
66
"scripts": {
7-
"prepublish": "babel ./src --out-dir ./lib --plugins=transform-class-properties,transform-react-jsx --presets=env",
8-
"test": "karma start --single-run",
9-
"dev-test": "karma start"
7+
"prepublish":
8+
"babel ./src --out-dir ./lib --plugins=transform-class-properties,transform-react-jsx --presets=env",
9+
"test": "jest"
1010
},
1111
"repository": {
1212
"type": "git",
@@ -26,34 +26,33 @@
2626
},
2727
"homepage": "https://github.com/akiran/react-highlight",
2828
"dependencies": {
29-
"highlight.js": "^9.11.0"
29+
"highlight.js": "^9.11.0",
30+
"npm": "^5.7.1"
3031
},
3132
"devDependencies": {
3233
"autoprefixer": "^6.7.7",
3334
"babel-cli": "^6.26.0",
3435
"babel-core": "^6.26.0",
3536
"babel-eslint": "^6.1.2",
37+
"babel-jest": "^22.4.1",
3638
"babel-loader": "^7.1.2",
3739
"babel-plugin-transform-class-properties": "^6.24.1",
3840
"babel-plugin-transform-react-jsx": "^6.24.1",
39-
"babel-preset-env": "^1.6.0",
40-
"es5-shim": "^4.5.9",
41+
"babel-preset-env": "^1.6.1",
42+
"babel-preset-react": "^6.24.1",
4143
"eslint": "^3.19.0",
4244
"eslint-plugin-react": "^6.10.3",
4345
"html-loader": "^0.4.5",
44-
"jasmine-core": "^2.5.2",
46+
"jest": "^22.4.2",
4547
"jsx-loader": "^0.13.2",
46-
"karma": "^1.6.0",
47-
"karma-jasmine": "^1.1.0",
48-
"karma-phantomjs-launcher": "^1.0.4",
49-
"karma-webpack": "^2.0.3",
5048
"markdown-loader": "^2.0.0",
5149
"multiline": "^1.0.2",
5250
"node-libs-browser": "^2.0.0",
5351
"phantomjs-prebuilt": "^2.1.14",
5452
"raw-loader": "^0.5.1",
5553
"react": "^15.5.4",
5654
"react-dom": "^15.5.4",
55+
"react-test-renderer": "^16.2.0",
5756
"webpack": "^3.6.0",
5857
"webpack-dev-server": "^2.9.1"
5958
},

0 commit comments

Comments
 (0)
Please sign in to comment.