2017-07-11 10:01:36 +08:00
|
|
|
{
|
|
|
|
"name": "redux-bluetooth",
|
2017-07-17 03:29:35 +08:00
|
|
|
"version": "0.1.7",
|
2017-07-11 10:01:36 +08:00
|
|
|
"description": "Redux middleware to dispatch actions via bluetooth to a peripheral store",
|
|
|
|
"main": "build/index.js",
|
|
|
|
"scripts": {
|
|
|
|
"dev": "watch 'npm run build' src",
|
2017-07-11 11:14:39 +08:00
|
|
|
"eslint": "eslint src",
|
2017-07-15 12:00:41 +08:00
|
|
|
"tmp": "cp -R build/ .tmp",
|
2017-07-15 12:07:37 +08:00
|
|
|
"precopy": "if [ ! -d build ]; then npm run build; fi",
|
|
|
|
"postcopy": "find .tmp -type f -name '*.test.js' -delete",
|
2017-07-15 12:00:41 +08:00
|
|
|
"uglify": "uglifyjs ./.tmp/**/*.js -m -c -o bundle.js",
|
2017-07-15 12:07:37 +08:00
|
|
|
"preuglify": "npm run tmp",
|
2017-07-11 10:01:36 +08:00
|
|
|
"build": "babel src -d build",
|
2017-07-15 12:07:37 +08:00
|
|
|
"prebuild": "npm run eslint",
|
2017-07-17 03:27:55 +08:00
|
|
|
"test": "jest --config .jest.json --forceExit",
|
2017-07-15 07:01:15 +08:00
|
|
|
"test:bundlesize": "bundlesize",
|
2017-07-15 12:07:37 +08:00
|
|
|
"pretest:bundlesize": "npm run uglify",
|
|
|
|
"posttest:bundlesize": "rm -fR .tmp bundle.js",
|
2017-07-11 10:01:36 +08:00
|
|
|
"test:watch": "npm test -- --watch",
|
2017-07-17 03:27:55 +08:00
|
|
|
"test:coverage": "npm test -- --coverage",
|
2017-07-11 10:01:36 +08:00
|
|
|
"prepublish": "npm run build",
|
2017-07-15 12:06:26 +08:00
|
|
|
"release": "np",
|
2017-07-13 09:30:57 +08:00
|
|
|
"example:install": "npm run example:webapp:install",
|
2017-07-15 12:07:37 +08:00
|
|
|
"preexample:install": "npm run example:peripheral:install",
|
2017-07-13 09:22:38 +08:00
|
|
|
"example:start": "npm run example:peripheral:start",
|
2017-07-13 09:17:48 +08:00
|
|
|
"example:deploy": "npm run example:webapp:deploy",
|
2017-07-15 12:00:41 +08:00
|
|
|
"example:webapp:install": "cd example/webapp && yarn install",
|
2017-07-13 22:07:29 +08:00
|
|
|
"example:webapp:build": "cd example/webapp && npm run build",
|
|
|
|
"example:webapp:deploy": "cd example/webapp && npm run deploy",
|
2017-07-15 12:00:41 +08:00
|
|
|
"example:peripheral:install": "cd example/peripheral && yarn install",
|
2017-07-13 22:07:29 +08:00
|
|
|
"example:peripheral:build": "cd example/peripheral && npm run build",
|
|
|
|
"example:peripheral:start": "cd example/peripheral && npm start",
|
2017-07-15 07:01:15 +08:00
|
|
|
"test:ci": "jest --config .jest.ci.json",
|
|
|
|
"test:coverage:ci": "codecov -t $CODECOV_TOKEN",
|
2017-07-15 12:07:37 +08:00
|
|
|
"pretest:coverage:ci": "npm run test:coverage",
|
2017-07-15 12:00:41 +08:00
|
|
|
"test:bundlesize:ci": "npm run test:bundlesize",
|
|
|
|
"example:deploy:ci": "npm run example:webapp:build",
|
2017-07-15 12:07:37 +08:00
|
|
|
"preexample:deploy:ci": "npm run example:webapp:install"
|
2017-07-11 10:01:36 +08:00
|
|
|
},
|
|
|
|
"babel": {
|
2017-07-15 07:29:07 +08:00
|
|
|
"presets": [
|
|
|
|
"latest"
|
|
|
|
]
|
2017-07-11 10:01:36 +08:00
|
|
|
},
|
2017-07-15 12:00:41 +08:00
|
|
|
"repository": "git+ssh://git@github.com/jvallelunga/redux-bluetooth.git",
|
2017-07-11 10:01:36 +08:00
|
|
|
"keywords": [
|
|
|
|
"redux",
|
|
|
|
"middleware",
|
|
|
|
"bluetooth",
|
|
|
|
"iot",
|
|
|
|
"bleno",
|
|
|
|
"peripheral",
|
|
|
|
"web-bluetooth",
|
|
|
|
"central"
|
|
|
|
],
|
|
|
|
"author": "Jeronimo Vallelunga",
|
|
|
|
"license": "ISC",
|
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/jvallelunga/redux-bluetooth/issues"
|
|
|
|
},
|
|
|
|
"homepage": "https://github.com/jvallelunga/redux-bluetooth#readme",
|
|
|
|
"devDependencies": {
|
|
|
|
"babel-cli": "^6.24.1",
|
2017-07-13 12:19:13 +08:00
|
|
|
"babel-jest": "^20.0.3",
|
2017-07-11 10:01:36 +08:00
|
|
|
"babel-preset-latest": "^6.24.1",
|
2017-07-15 07:29:07 +08:00
|
|
|
"bundlesize": "^0.11.2",
|
2017-07-13 11:17:34 +08:00
|
|
|
"codecov": "^2.2.0",
|
2017-07-11 11:14:39 +08:00
|
|
|
"eslint": "^3.19.0",
|
|
|
|
"eslint-config-airbnb": "^15.0.2",
|
|
|
|
"eslint-plugin-import": "^2.7.0",
|
|
|
|
"eslint-plugin-jsx-a11y": "^5.1.1",
|
|
|
|
"eslint-plugin-react": "^7.1.0",
|
2017-07-11 10:01:36 +08:00
|
|
|
"jest": "^20.0.4",
|
|
|
|
"np": "^2.16.0",
|
2017-07-15 12:00:41 +08:00
|
|
|
"uglify-js": "^3.0.24",
|
2017-07-11 10:01:36 +08:00
|
|
|
"watch": "^1.0.2"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"bleno": "^0.4.2",
|
2017-07-11 11:14:39 +08:00
|
|
|
"redux": "^3.7.1",
|
|
|
|
"redux-thunk": "^2.2.0",
|
2017-07-11 10:01:36 +08:00
|
|
|
"text-encoding": "^0.6.4"
|
2017-07-14 12:13:06 +08:00
|
|
|
},
|
|
|
|
"bundlesize": [
|
|
|
|
{
|
2017-07-15 12:00:41 +08:00
|
|
|
"path": "bundle.js",
|
2017-07-14 12:13:06 +08:00
|
|
|
"maxSize": "2 Kb"
|
|
|
|
}
|
|
|
|
]
|
2017-07-11 10:01:36 +08:00
|
|
|
}
|