Fix Test Configuration
This commit is contained in:
parent
515583f405
commit
34a6c5e7df
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"testPathIgnorePatterns": ["/build/"],
|
||||
"collectCoverageFrom": ["src/**/*.js"]
|
||||
"testPathIgnorePatterns": ["/build/", "/example/"],
|
||||
"collectCoverageFrom": ["src/**/*.js"]
|
||||
}
|
24
README.md
24
README.md
|
@ -77,13 +77,31 @@ $ npm run example:install
|
|||
Make sure you have your bluetooth enabled
|
||||
|
||||
```shell
|
||||
$ npm run example:start
|
||||
$ npm run example:peripheral:start
|
||||
```
|
||||
|
||||
### Start Webapp Server
|
||||
In a different terminal window
|
||||
|
||||
```shell
|
||||
$ npm run example:webapp:start
|
||||
```
|
||||
|
||||
### Open Webapp
|
||||
Before starting the webapp, go to `chrome://flags/#enable-experimental-web-platform-features`, enable the highlighted flag, and restart Chrome on your mobile.
|
||||
After starting the server you will see something similar to this.
|
||||
```shell
|
||||
Compiled successfully!
|
||||
|
||||
You can now view webapp in the browser.
|
||||
|
||||
Local: https://localhost:3000/
|
||||
On Your Network: https://192.168.0.105:3000/
|
||||
|
||||
````
|
||||
|
||||
Before opening the webapp, go to `chrome://flags/#enable-experimental-web-platform-features`, enable the highlighted flag, and restart Chrome on your mobile.
|
||||
|
||||
Then, Make sure you have your bluetooth enabled.
|
||||
|
||||
Finally, open this url https://jvallelunga.github.io/redux-bluetooth/ on your mobile.
|
||||
|
||||
Finally, use the url **On Your Netrowk** to access the web app from your mobile.
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -12,8 +12,6 @@
|
|||
"test:watch": "npm test -- --watch",
|
||||
"test:coverage": "npm test -- --coverage",
|
||||
"prepublish": "npm run build",
|
||||
"bundlesize": "webpack && bundlesize",
|
||||
"prerelease": "npm run bundlesize",
|
||||
"release": "np",
|
||||
"example:install": "npm run example:peripheral:install && npm run example:webapp:install",
|
||||
"example:webapp:install": "cd example/webapp && npm install",
|
||||
|
@ -22,7 +20,6 @@
|
|||
"example:peripheral:install": "cd example/peripheral && npm install",
|
||||
"example:peripheral:start": "cd example/peripheral && npm start",
|
||||
"ci:test": "jest ./build/",
|
||||
"ci:bundlesize": "npm run bundlesize",
|
||||
"ci:report:coverage": "npm run ci:test -- --coverage && codecov -t $CODECOV_TOKEN",
|
||||
"ci:example:build": "npm run example:webapp:install && npm run example:webapp:build"
|
||||
},
|
||||
|
@ -62,8 +59,7 @@
|
|||
"eslint-plugin-react": "^7.12.4",
|
||||
"jest": "^23.6.0",
|
||||
"np": "^2.16.0",
|
||||
"watch": "^1.0.2",
|
||||
"webpack": "^4.28.3"
|
||||
"watch": "^1.0.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-jest": "^24.5.0",
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
|
||||
module.exports = {
|
||||
entry: './src/webapp/index.js',
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
filename: 'redux-bluetooth.webapp.js',
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
query: {
|
||||
presets: ['latest'],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
stats: {
|
||||
colors: true,
|
||||
},
|
||||
plugins: [
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
compress: {
|
||||
warnings: true,
|
||||
},
|
||||
}),
|
||||
],
|
||||
};
|
Loading…
Reference in New Issue