moved to es6 syntax, fixed testing infra, added tests
Showing
| ... | ... | @@ -10,6 +10,7 @@ |
| "react native", | ||
| "ios", | ||
| "push-notifications", | ||
| "push notifications", | ||
| "notifications", | ||
| "notification", | ||
| "react native notifications" | ||
| ... | ... | @@ -23,14 +24,20 @@ |
| }, | ||
| "devDependencies": { | ||
| "babel-eslint": "^6.0.2", | ||
| "babel-preset-es2015": "^6.6.0", | ||
| "babel-preset-react": "^6.5.0", | ||
| "babel-register": "^6.7.2", | ||
| "chai": "^3.5.0", | ||
| "chokidar-cli": "^1.2.0", | ||
| "eslint": "^2.7.0", | ||
| "mocha": "^2.4.5" | ||
| "mocha": "^2.4.5", | ||
| "proxyquire": "^1.7.4", | ||
| "sinon": "^1.17.3", | ||
| "sinon-chai": "^2.8.0" | ||
| }, | ||
| "scripts": { | ||
| "pretest": "./node_modules/.bin/eslint *.js test", | ||
| "test": "./node_modules/.bin/mocha --reporter spec \"test/*.spec.js\"", | ||
| "test": "./node_modules/.bin/mocha --compilers js:babel-register --reporter spec \"test/*.spec.js\"", | ||
| "start": "npm run test --silent; ./node_modules/.bin/chokidar \"test/*.js\" \"*.js\" -c 'npm run test --silent' --silent" | ||
| }, | ||
| "publishConfig": { | ||
| ... | ... | @@ -44,5 +51,11 @@ |
| "bugs": { | ||
| "url": "https://github.com/wix/react-native-notifications/issues" | ||
| }, | ||
| "main": "index.ios.js" | ||
| "main": "index.ios.js", | ||
| "babel": { | ||
| "presets": [ | ||
| "es2015", | ||
| "react" | ||
| ] | ||
| } | ||
| } |
Please register or sign in to comment