on master help sign in
Use unpkg to get TodoMVC's CSS

We can skip an `npm install` now.

commit13de5e6904241afcc739cfda6a8a42ae3d8f4805 authorNick Fitzgerald <fitzgen@gmail.com> dateTue 12 Feb 2019, 10:58 (8 years ago) parent9f533a4
5 files changed+2−36
examples/todomvc/README.md−3 examples/todomvc/css/app.css−8 examples/todomvc/index.html+2−2 examples/todomvc/package-lock.json−16 examples/todomvc/package.json−7
examples/todomvc/README.md−3
@@ -21,9 +21,6 @@ most important are:
2121## Build
2222
2323```
24−# Get the TodoMVC CSS styles.
25−npm install
26−
2724wasm-pack build --target no-modules
2825```
2926
examples/todomvc/css/app.cssdeleted−8
@@ -1,8 +0,0 @@
1−/*
2−
3−app-template.css overrides
4−
5−remove this comment if used
6−remove this file if not
7−
8−*/
examples/todomvc/index.html+2−2
@@ -4,8 +4,8 @@
44 <meta charset="utf-8">
55 <meta name="viewport" content="width=device-width, initial-scale=1">
66 <title>dodrio • TodoMVC</title>
7− <link rel="stylesheet" href="node_modules/todomvc-common/base.css">
8− <link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
7+ <link rel="stylesheet" href="https://unpkg.com/todomvc-common@^1.0.0/base.css">
8+ <link rel="stylesheet" href="https://unpkg.com/todomvc-app-css@^2.0.0/index.css">
99 </head>
1010 <body>
1111 <section class="todoapp">
examples/todomvc/package-lock.jsondeleted−16
@@ -1,16 +0,0 @@
1−{
2− "requires": true,
3− "lockfileVersion": 1,
4− "dependencies": {
5− "todomvc-app-css": {
6− "version": "2.1.2",
7− "resolved": "https://registry.npmjs.org/todomvc-app-css/-/todomvc-app-css-2.1.2.tgz",
8− "integrity": "sha512-WgXLWY4snfC7yBkpzFb6xRmUbB06NGuji6njCByte0byW2DUpmyhh32o4sCQ8HX/pTwm71huKQlFiKYxR/2iVQ=="
9− },
10− "todomvc-common": {
11− "version": "1.0.5",
12− "resolved": "https://registry.npmjs.org/todomvc-common/-/todomvc-common-1.0.5.tgz",
13− "integrity": "sha512-D8kEJmxVMQIWwztEdH+WeiAfXRbbSCpgXq4NkYi+gduJ2tr8CNq7sYLfJvjpQ10KD9QxJwig57rvMbV2QAESwQ=="
14− }
15− }
16−}
examples/todomvc/package.jsondeleted−7
@@ -1,7 +0,0 @@
1−{
2− "private": true,
3− "dependencies": {
4− "todomvc-app-css": "^2.0.0",
5− "todomvc-common": "^1.0.0"
6− }
7−}