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
Tags
No related merge requests found
......@@ -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. 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
Add a window:
......
......@@ -8,6 +8,6 @@
</head>
<body>
<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>
</html>
This diff is collapsed.
......@@ -8,7 +8,9 @@
"server": "node_modules/.bin/http-server -p 4444",
"test": "npm run build && npm run lint && node_modules/.bin/jest",
"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",
"contributors": [
......@@ -34,6 +36,7 @@
"babel-loader": "7.1.4",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"concurrently": "^4.0.1",
"css-loader": "^1.0.0",
"enzyme": "^3.4.4",
"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