Skip to content
Snippets Groups Projects
Commit ece3150b authored by Jack Reed's avatar Jack Reed
Browse files

add npm start command to hopefully ease dev process

parent 9c7ef685
Branches
No related tags found
No related merge requests found
...@@ -9,6 +9,14 @@ To run the module, first make sure you are in this directory (`minimal_redux_poc ...@@ -9,6 +9,14 @@ To run the module, first make sure you are in this directory (`minimal_redux_poc
1. Import variable names from the module, for example, `let { store, actions } = require('./index.umd')`. 1. Import variable names from the module, for example, `let { store, actions } = require('./index.umd')`.
1. The exported module currently has most of its functionality under the "store" property, so you may prefer to include it with `let state = require('./index.umd').store`. 1. The exported module currently has most of its functionality under the "store" property, so you may prefer to include it with `let state = require('./index.umd').store`.
## Starting the project
```sh
$ npm start
```
Then navigate to [http://127.0.0.1:4444/__tests__/integration/mirador/](http://127.0.0.1:4444/__tests__/integration/mirador/)
### Example Action ### Example Action
Add a window: Add a window:
......
...@@ -8,6 +8,6 @@ ...@@ -8,6 +8,6 @@
</head> </head>
<body> <body>
<div id="mirador"></div> <div id="mirador"></div>
<script src="../../../dist/mirador.min.js"></script> <script>document.write("<script type='text/javascript' src='../../../dist/mirador.min.js?v=" + Date.now() + "'><\/script>");</script>
</body> </body>
</html> </html>
Source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
"server": "node_modules/.bin/http-server -p 4444", "server": "node_modules/.bin/http-server -p 4444",
"test": "npm run build && npm run lint && node_modules/.bin/jest", "test": "npm run build && npm run lint && node_modules/.bin/jest",
"test:watch": "npm test -- --watch", "test:watch": "npm test -- --watch",
"build": "node_modules/.bin/webpack" "build": "node_modules/.bin/webpack",
"build:watch": "node_modules/.bin/webpack --watch",
"start": "npm run build && concurrently \"npm run build:watch\" \"npm run server\""
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"contributors": [ "contributors": [
...@@ -34,6 +36,7 @@ ...@@ -34,6 +36,7 @@
"babel-loader": "7.1.4", "babel-loader": "7.1.4",
"babel-preset-env": "^1.7.0", "babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1", "babel-preset-react": "^6.24.1",
"concurrently": "^4.0.1",
"css-loader": "^1.0.0", "css-loader": "^1.0.0",
"enzyme": "^3.4.4", "enzyme": "^3.4.4",
"enzyme-adapter-react-16": "^1.2.0", "enzyme-adapter-react-16": "^1.2.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment