Skip to content
Snippets Groups Projects
Commit 90061de7 authored by Will Billingsley's avatar Will Billingsley
Browse files

Update README.md

parent af8dca4a
Branches
No related tags found
No related merge requests found
......@@ -107,6 +107,10 @@ Open a terminal in the `tutorial-conway-life-t3` directory.
Now reload the page, and the code should still work.
Note: some students who've set up npm on their own machine might find they don't have npx (at least, one in the tutorial did).
If so, just imagine you've run npx webpack and keep on going to step 8 -- we won't usually be using the npx command to run
webpack anyway.
8. Next, let's tell NPM that we build our project using webpack. In `package.json`, inside the `scripts` block, add
```json
......@@ -144,10 +148,15 @@ Open a terminal in the `tutorial-conway-life-t3` directory.
import * as d3 from "d3"
```
and
In render.ts, we'll need to export both the `life` constant and the `render`
function. So rather than use `export default`, we'll need to insert an
explicit export block
```ts
export default function render() {
export {
life as life,
render as render
}
```
and in `src/index.ts`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment