From dbd5e17e30b90f0548f0b05d2f7c506c8c46c590 Mon Sep 17 00:00:00 2001 From: Lidan Hifi Date: Tue, 12 Apr 2016 12:31:41 +0300 Subject: [PATCH] fixed some babel issues --- example/package.json | 10 ---------- package.json | 12 ++---------- test/index.ios.spec.js | 1 + test/notification.ios.spec.js | 1 + 4 files changed, 4 insertions(+), 20 deletions(-) diff --git a/example/package.json b/example/package.json index 67d6b4d..b1e9f9c 100644 --- a/example/package.json +++ b/example/package.json @@ -9,15 +9,5 @@ "react": "^0.14.7", "react-native": "^0.22.2", "react-native-notifications": "../" - }, - "devDependencies": { - "babel-preset-react-native": "^1.5.6", - "babel-preset-stage-1": "^6.5.0" - }, - "babel": { - "presets": [ - "react-native", - "stage-1" - ] } } diff --git a/package.json b/package.json index 86cb155..8b4b865 100644 --- a/package.json +++ b/package.json @@ -24,9 +24,7 @@ }, "devDependencies": { "babel-eslint": "^6.0.2", - "babel-plugin-transform-class-properties": "^6.6.0", - "babel-preset-es2015": "^6.6.0", - "babel-preset-react": "^6.5.0", + "babel-preset-react-native": "^1.5.6", "babel-register": "^6.7.2", "chai": "^3.5.0", "chokidar-cli": "^1.2.0", @@ -54,12 +52,6 @@ }, "main": "index.ios.js", "babel": { - "presets": [ - "es2015", - "react" - ], - "plugins": [ - "transform-class-properties" - ] + "presets": ["react-native"] } } diff --git a/test/index.ios.spec.js b/test/index.ios.spec.js index 39ce209..ec520c5 100644 --- a/test/index.ios.spec.js +++ b/test/index.ios.spec.js @@ -1,3 +1,4 @@ +"use strict"; let expect = require("chai").use(require("sinon-chai")).expect; import proxyquire from "proxyquire"; import sinon from "sinon"; diff --git a/test/notification.ios.spec.js b/test/notification.ios.spec.js index 18d88bf..660b729 100644 --- a/test/notification.ios.spec.js +++ b/test/notification.ios.spec.js @@ -1,3 +1,4 @@ +"use strict"; import { expect } from "chai"; import IOSNotification from "../notification.ios"; -- 2.26.2