moved to es6 syntax, fixed testing infra, added tests
Showing
... | @@ -10,6 +10,7 @@ | ... | @@ -10,6 +10,7 @@ |
"react native", | "react native", | ||
"ios", | "ios", | ||
"push-notifications", | "push-notifications", | ||
"push notifications", | |||
"notifications", | "notifications", | ||
"notification", | "notification", | ||
"react native notifications" | "react native notifications" | ||
... | @@ -23,14 +24,20 @@ | ... | @@ -23,14 +24,20 @@ |
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"babel-eslint": "^6.0.2", | "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", | "chai": "^3.5.0", | ||
"chokidar-cli": "^1.2.0", | "chokidar-cli": "^1.2.0", | ||
"eslint": "^2.7.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": { | "scripts": { | ||
"pretest": "./node_modules/.bin/eslint *.js test", | "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" | "start": "npm run test --silent; ./node_modules/.bin/chokidar \"test/*.js\" \"*.js\" -c 'npm run test --silent' --silent" | ||
}, | }, | ||
"publishConfig": { | "publishConfig": { | ||
... | @@ -44,5 +51,11 @@ | ... | @@ -44,5 +51,11 @@ |
"bugs": { | "bugs": { | ||
"url": "https://github.com/wix/react-native-notifications/issues" | "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