add mocha for testing, eslint
Showing
.eslintrc
0 → 100644
| { | { | ||
| "name": "react-native-notifications", | "name": "react-native-notifications", | ||
| "publishConfig": { | |||
| "registry": "https://registry.npmjs.org/" | |||
| }, | |||
| "repository": { | |||
| "type": "git", | |||
| "url": "https://github.com/wix/react-native-notifications.git" | |||
| }, | |||
| "version": "0.0.5", | "version": "0.0.5", | ||
| "description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android", | "description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android", | ||
| "author": "Lidan Hifi <lidan.hifi@gmail.com>", | |||
| "license": "MIT", | |||
| "keywords": [ | "keywords": [ | ||
| "react-component", | "react-component", | ||
| "react-native", | "react-native", | ||
| "react native", | |||
| "ios", | "ios", | ||
| "push-notifications" | "push-notifications", | ||
| "notifications", | |||
| "notification", | |||
| "react native notifications" | |||
| ], | ], | ||
| "nativePackage": true, | "nativePackage": true, | ||
| "dependencies": { | |||
| "core-js": "^1.0.0" | |||
| }, | |||
| "peerDependencies": { | "peerDependencies": { | ||
| "react-native": ">=0.19.0" | "react-native": ">=0.19.0" | ||
| }, | }, | ||
| "devDependencies": { | |||
| "babel-eslint": "^6.0.2", | |||
| "chai": "^3.5.0", | |||
| "chokidar-cli": "^1.2.0", | |||
| "eslint": "^2.7.0", | |||
| "mocha": "^2.4.5" | |||
| }, | |||
| "scripts": { | |||
| "pretest": "./node_modules/.bin/eslint *.js test", | |||
| "test": "./node_modules/.bin/mocha --reporter spec \"test/*.spec.js\"", | |||
| "start": "npm run test --silent; ./node_modules/.bin/chokidar \"test/*.js\" \"*.js\" -c 'npm run test --silent' --silent" | |||
| }, | |||
| "publishConfig": { | |||
| "registry": "https://registry.npmjs.org/" | |||
| }, | |||
| "repository": { | |||
| "type": "git", | |||
| "url": "https://github.com/wix/react-native-notifications.git" | |||
| }, | |||
| "homepage": "https://github.com/wix/react-native-notifications", | "homepage": "https://github.com/wix/react-native-notifications", | ||
| "bugs": { | "bugs": { | ||
| "url": "https://github.com/wix/react-native-notifications/issues" | "url": "https://github.com/wix/react-native-notifications/issues" | ||
| }, | }, | ||
| "dependencies": { | "main": "index.ios.js" | ||
| "core-js": "^1.0.0" | |||
| }, | |||
| "author": "Lidan Hifi <lidan.hifi@gmail.com>", | |||
| "main": "index.ios.js", | |||
| "license": "MIT" | |||
| } | } | 
test/index.ios.spec.js
0 → 100644
Please register or sign in to comment
