aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-06-13 07:50:55 +0100
committerAkshay <[email protected]>2021-06-13 07:50:55 +0100
commit5a9b071e2684eb2f4a538c2cda1809fa47129adf (patch)
tree0d528d2a168467b420446b838e7aa8cfa392dcad
parent9128be2afc86b81486a429a37e5c0107eedab68f (diff)
more styles, link to src
-rw-r--r--www/.travis.yml5
-rw-r--r--www/index.html42
-rw-r--r--www/index.js4
-rw-r--r--www/package-lock.json250
-rw-r--r--www/package.json5
-rw-r--r--www/webpack.config.js8
6 files changed, 232 insertions, 82 deletions
diff --git a/www/.travis.yml b/www/.travis.yml
deleted file mode 100644
index 04d40b4..0000000
--- a/www/.travis.yml
+++ /dev/null
@@ -1,5 +0,0 @@
1language: node_js
2node_js: "10"
3
4script:
5 - ./node_modules/.bin/webpack
diff --git a/www/index.html b/www/index.html
index 81da9d9..03f5d11 100644
--- a/www/index.html
+++ b/www/index.html
@@ -3,37 +3,66 @@
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <title>CSTea</title> 5 <title>CSTea</title>
6 <link rel="preconnect" href="https://fonts.gstatic.com">
7 <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap" rel="stylesheet">
6 </head> 8 </head>
7 <style> 9 <style>
10
8html, body { 11html, body {
9 margin: 0; 12 margin: 0;
13 font-family: 'IBM Plex Mono', monospace !important;
14 font-size: 14px;
10} 15}
16
11.grid-container { 17.grid-container {
12 width: 100%; 18 width: 100%;
13 display: grid; 19 display: grid;
14 grid-template-columns: 1fr 1fr; 20 grid-template-columns: 1fr 1fr;
15} 21}
22
16.syntax-node { 23.syntax-node {
17 padding-left: 5px; 24 padding-left: 5px;
18 margin-left: 20px; 25 margin-left: 20px;
19 border-left: 2px solid #2c313a; 26 background-color: #2c313a;
20} 27}
28
21.syntax-node:hover { 29.syntax-node:hover {
22 border-left: 2px solid #545c69; 30 background-color: #545c6933;
23} 31}
32
24.syntax-err { 33.syntax-err {
25 color: #e06c75; 34 color: #e06c75;
26} 35}
27#cst, #source-code { 36
28 background-color: #2c313a; 37.header {
38 text-align: center;
39 position: absolute;
40 padding: 12px 0;
41 bottom: 0;
42 width: 100%;
43}
44
45#cst, #source-code, .header,
46a, a:hover, a:visited {
47 background-color: #282c34;
29 color: #a3aab6; 48 color: #a3aab6;
49}
50
51#cst, #source-code {
30 height: 100vh; 52 height: 100vh;
31 overflow: scroll; 53 overflow: scroll;
32} 54}
55
56.cm-editor * {
57 font-family: 'IBM Plex Mono', monospace;
58}
59
33pre { 60pre {
34 padding: 0px; 61 padding: 0px;
35 margin: 0px 62 margin: 0px;
63 font-family: 'IBM Plex Mono', monospace;
36} 64}
65
37 </style> 66 </style>
38 <body> 67 <body>
39 <noscript>This page contains webassembly and javascript content, please enable javascript in your browser.</noscript> 68 <noscript>This page contains webassembly and javascript content, please enable javascript in your browser.</noscript>
@@ -43,5 +72,8 @@ pre {
43 <div id="cst"> 72 <div id="cst">
44 </div> 73 </div>
45 </div> 74 </div>
75 <div class="header">
76 explore rust csts ยท <a href="https://git.peppe.rs/web/cstea">src</a>
77 </div>
46 </body> 78 </body>
47</html> 79</html>
diff --git a/www/index.js b/www/index.js
index 3e00b9e..f98a48b 100644
--- a/www/index.js
+++ b/www/index.js
@@ -4,10 +4,12 @@ import {Decoration, DecorationSet} from "@codemirror/view"
4import {StateField, StateEffect} from "@codemirror/state" 4import {StateField, StateEffect} from "@codemirror/state"
5import {rust} from "@codemirror/lang-rust" 5import {rust} from "@codemirror/lang-rust"
6import {oneDark, oneDarkTheme, oneDarkHighlightStyle} from "@codemirror/theme-one-dark" 6import {oneDark, oneDarkTheme, oneDarkHighlightStyle} from "@codemirror/theme-one-dark"
7import file from '!raw-loader!../src/lib.rs'
7 8
8let cst = document.getElementById('cst'); 9let cst = document.getElementById('cst');
9let view = new EditorView({ 10let view = new EditorView({
10 state: EditorState.create({ 11 state: EditorState.create({
12 doc: file,
11 extensions: [ 13 extensions: [
12 basicSetup, 14 basicSetup,
13 rust(), 15 rust(),
@@ -105,3 +107,5 @@ function doRender() {
105 cst.appendChild(render_err(synError)); 107 cst.appendChild(render_err(synError));
106 } 108 }
107} 109}
110
111doRender();
diff --git a/www/package-lock.json b/www/package-lock.json
index 5f59eda..fc0542c 100644
--- a/www/package-lock.json
+++ b/www/package-lock.json
@@ -20,6 +20,7 @@
20 "devDependencies": { 20 "devDependencies": {
21 "copy-webpack-plugin": "^5.0.0", 21 "copy-webpack-plugin": "^5.0.0",
22 "hello-wasm-pack": "^0.1.0", 22 "hello-wasm-pack": "^0.1.0",
23 "raw-loader": "^4.0.2",
23 "webpack": "^4.29.3", 24 "webpack": "^4.29.3",
24 "webpack-cli": "^3.1.0", 25 "webpack-cli": "^3.1.0",
25 "webpack-dev-server": "^3.1.5" 26 "webpack-dev-server": "^3.1.5"
@@ -289,6 +290,12 @@
289 "@types/node": "*" 290 "@types/node": "*"
290 } 291 }
291 }, 292 },
293 "node_modules/@types/json-schema": {
294 "version": "7.0.7",
295 "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.7.tgz",
296 "integrity": "sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA==",
297 "dev": true
298 },
292 "node_modules/@types/minimatch": { 299 "node_modules/@types/minimatch": {
293 "version": "3.0.3", 300 "version": "3.0.3",
294 "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", 301 "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz",
@@ -514,15 +521,19 @@
514 } 521 }
515 }, 522 },
516 "node_modules/ajv": { 523 "node_modules/ajv": {
517 "version": "6.5.3", 524 "version": "6.12.6",
518 "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.3.tgz", 525 "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
519 "integrity": "sha512-LqZ9wY+fx3UMiiPd741yB2pj3hhil+hQc8taf4o2QGRFpWgZ2V5C8HA165DY9sS3fJwsk7uT7ZlFEyC3Ig3lLg==", 526 "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
520 "dev": true, 527 "dev": true,
521 "dependencies": { 528 "dependencies": {
522 "fast-deep-equal": "^2.0.1", 529 "fast-deep-equal": "^3.1.1",
523 "fast-json-stable-stringify": "^2.0.0", 530 "fast-json-stable-stringify": "^2.0.0",
524 "json-schema-traverse": "^0.4.1", 531 "json-schema-traverse": "^0.4.1",
525 "uri-js": "^4.2.2" 532 "uri-js": "^4.2.2"
533 },
534 "funding": {
535 "type": "github",
536 "url": "https://github.com/sponsors/epoberezkin"
526 } 537 }
527 }, 538 },
528 "node_modules/ajv-errors": { 539 "node_modules/ajv-errors": {
@@ -532,10 +543,13 @@
532 "dev": true 543 "dev": true
533 }, 544 },
534 "node_modules/ajv-keywords": { 545 "node_modules/ajv-keywords": {
535 "version": "3.2.0", 546 "version": "3.5.2",
536 "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.2.0.tgz", 547 "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",
537 "integrity": "sha1-6GuBnGAs+IIa1jdBNpjx3sAhhHo=", 548 "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",
538 "dev": true 549 "dev": true,
550 "peerDependencies": {
551 "ajv": "^6.9.1"
552 }
539 }, 553 },
540 "node_modules/ansi-colors": { 554 "node_modules/ansi-colors": {
541 "version": "3.2.3", 555 "version": "3.2.3",
@@ -2405,9 +2419,9 @@
2405 } 2419 }
2406 }, 2420 },
2407 "node_modules/fast-deep-equal": { 2421 "node_modules/fast-deep-equal": {
2408 "version": "2.0.1", 2422 "version": "3.1.3",
2409 "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 2423 "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
2410 "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", 2424 "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
2411 "dev": true 2425 "dev": true
2412 }, 2426 },
2413 "node_modules/fast-json-stable-stringify": { 2427 "node_modules/fast-json-stable-stringify": {
@@ -5386,6 +5400,88 @@
5386 "node": ">= 0.8" 5400 "node": ">= 0.8"
5387 } 5401 }
5388 }, 5402 },
5403 "node_modules/raw-loader": {
5404 "version": "4.0.2",
5405 "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-4.0.2.tgz",
5406 "integrity": "sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA==",
5407 "dev": true,
5408 "dependencies": {
5409 "loader-utils": "^2.0.0",
5410 "schema-utils": "^3.0.0"
5411 },
5412 "engines": {
5413 "node": ">= 10.13.0"
5414 },
5415 "funding": {
5416 "type": "opencollective",
5417 "url": "https://opencollective.com/webpack"
5418 },
5419 "peerDependencies": {
5420 "webpack": "^4.0.0 || ^5.0.0"
5421 }
5422 },
5423 "node_modules/raw-loader/node_modules/emojis-list": {
5424 "version": "3.0.0",
5425 "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz",
5426 "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==",
5427 "dev": true,
5428 "engines": {
5429 "node": ">= 4"
5430 }
5431 },
5432 "node_modules/raw-loader/node_modules/json5": {
5433 "version": "2.2.0",
5434 "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz",
5435 "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==",
5436 "dev": true,
5437 "dependencies": {
5438 "minimist": "^1.2.5"
5439 },
5440 "bin": {
5441 "json5": "lib/cli.js"
5442 },
5443 "engines": {
5444 "node": ">=6"
5445 }
5446 },
5447 "node_modules/raw-loader/node_modules/loader-utils": {
5448 "version": "2.0.0",
5449 "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
5450 "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
5451 "dev": true,
5452 "dependencies": {
5453 "big.js": "^5.2.2",
5454 "emojis-list": "^3.0.0",
5455 "json5": "^2.1.2"
5456 },
5457 "engines": {
5458 "node": ">=8.9.0"
5459 }
5460 },
5461 "node_modules/raw-loader/node_modules/minimist": {
5462 "version": "1.2.5",
5463 "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
5464 "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
5465 "dev": true
5466 },
5467 "node_modules/raw-loader/node_modules/schema-utils": {
5468 "version": "3.0.0",
5469 "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.0.0.tgz",
5470 "integrity": "sha512-6D82/xSzO094ajanoOSbe4YvXWMfn2A//8Y1+MUqFAJul5Bs+yn36xbK9OtNDcRVSBJ9jjeoXftM6CfztsjOAA==",
5471 "dev": true,
5472 "dependencies": {
5473 "@types/json-schema": "^7.0.6",
5474 "ajv": "^6.12.5",
5475 "ajv-keywords": "^3.5.2"
5476 },
5477 "engines": {
5478 "node": ">= 10.13.0"
5479 },
5480 "funding": {
5481 "type": "opencollective",
5482 "url": "https://opencollective.com/webpack"
5483 }
5484 },
5389 "node_modules/readable-stream": { 5485 "node_modules/readable-stream": {
5390 "version": "2.3.6", 5486 "version": "2.3.6",
5391 "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", 5487 "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
@@ -7025,30 +7121,6 @@
7025 "node": ">=0.10.0" 7121 "node": ">=0.10.0"
7026 } 7122 }
7027 }, 7123 },
7028 "node_modules/webpack/node_modules/ajv": {
7029 "version": "6.12.2",
7030 "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.2.tgz",
7031 "integrity": "sha512-k+V+hzjm5q/Mr8ef/1Y9goCmlsK4I6Sm74teeyGvFk1XrOsbsKLjEdrvny42CZ+a8sXbk8KWpY/bDwS+FLL2UQ==",
7032 "dev": true,
7033 "dependencies": {
7034 "fast-deep-equal": "^3.1.1",
7035 "fast-json-stable-stringify": "^2.0.0",
7036 "json-schema-traverse": "^0.4.1",
7037 "uri-js": "^4.2.2"
7038 }
7039 },
7040 "node_modules/webpack/node_modules/ajv-keywords": {
7041 "version": "3.4.1",
7042 "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.4.1.tgz",
7043 "integrity": "sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ==",
7044 "dev": true
7045 },
7046 "node_modules/webpack/node_modules/fast-deep-equal": {
7047 "version": "3.1.1",
7048 "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz",
7049 "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==",
7050 "dev": true
7051 },
7052 "node_modules/webpack/node_modules/minimist": { 7124 "node_modules/webpack/node_modules/minimist": {
7053 "version": "1.2.5", 7125 "version": "1.2.5",
7054 "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 7126 "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
@@ -7485,6 +7557,12 @@
7485 "@types/node": "*" 7557 "@types/node": "*"
7486 } 7558 }
7487 }, 7559 },
7560 "@types/json-schema": {
7561 "version": "7.0.7",
7562 "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.7.tgz",
7563 "integrity": "sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA==",
7564 "dev": true
7565 },
7488 "@types/minimatch": { 7566 "@types/minimatch": {
7489 "version": "3.0.3", 7567 "version": "3.0.3",
7490 "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", 7568 "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz",
@@ -7701,12 +7779,12 @@
7701 "dev": true 7779 "dev": true
7702 }, 7780 },
7703 "ajv": { 7781 "ajv": {
7704 "version": "6.5.3", 7782 "version": "6.12.6",
7705 "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.3.tgz", 7783 "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
7706 "integrity": "sha512-LqZ9wY+fx3UMiiPd741yB2pj3hhil+hQc8taf4o2QGRFpWgZ2V5C8HA165DY9sS3fJwsk7uT7ZlFEyC3Ig3lLg==", 7784 "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
7707 "dev": true, 7785 "dev": true,
7708 "requires": { 7786 "requires": {
7709 "fast-deep-equal": "^2.0.1", 7787 "fast-deep-equal": "^3.1.1",
7710 "fast-json-stable-stringify": "^2.0.0", 7788 "fast-json-stable-stringify": "^2.0.0",
7711 "json-schema-traverse": "^0.4.1", 7789 "json-schema-traverse": "^0.4.1",
7712 "uri-js": "^4.2.2" 7790 "uri-js": "^4.2.2"
@@ -7719,10 +7797,11 @@
7719 "dev": true 7797 "dev": true
7720 }, 7798 },
7721 "ajv-keywords": { 7799 "ajv-keywords": {
7722 "version": "3.2.0", 7800 "version": "3.5.2",
7723 "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.2.0.tgz", 7801 "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",
7724 "integrity": "sha1-6GuBnGAs+IIa1jdBNpjx3sAhhHo=", 7802 "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",
7725 "dev": true 7803 "dev": true,
7804 "requires": {}
7726 }, 7805 },
7727 "ansi-colors": { 7806 "ansi-colors": {
7728 "version": "3.2.3", 7807 "version": "3.2.3",
@@ -9333,9 +9412,9 @@
9333 } 9412 }
9334 }, 9413 },
9335 "fast-deep-equal": { 9414 "fast-deep-equal": {
9336 "version": "2.0.1", 9415 "version": "3.1.3",
9337 "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 9416 "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
9338 "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", 9417 "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
9339 "dev": true 9418 "dev": true
9340 }, 9419 },
9341 "fast-json-stable-stringify": { 9420 "fast-json-stable-stringify": {
@@ -11762,6 +11841,61 @@
11762 } 11841 }
11763 } 11842 }
11764 }, 11843 },
11844 "raw-loader": {
11845 "version": "4.0.2",
11846 "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-4.0.2.tgz",
11847 "integrity": "sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA==",
11848 "dev": true,
11849 "requires": {
11850 "loader-utils": "^2.0.0",
11851 "schema-utils": "^3.0.0"
11852 },
11853 "dependencies": {
11854 "emojis-list": {
11855 "version": "3.0.0",
11856 "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz",
11857 "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==",
11858 "dev": true
11859 },
11860 "json5": {
11861 "version": "2.2.0",
11862 "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz",
11863 "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==",
11864 "dev": true,
11865 "requires": {
11866 "minimist": "^1.2.5"
11867 }
11868 },
11869 "loader-utils": {
11870 "version": "2.0.0",
11871 "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
11872 "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
11873 "dev": true,
11874 "requires": {
11875 "big.js": "^5.2.2",
11876 "emojis-list": "^3.0.0",
11877 "json5": "^2.1.2"
11878 }
11879 },
11880 "minimist": {
11881 "version": "1.2.5",
11882 "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
11883 "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
11884 "dev": true
11885 },
11886 "schema-utils": {
11887 "version": "3.0.0",
11888 "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.0.0.tgz",
11889 "integrity": "sha512-6D82/xSzO094ajanoOSbe4YvXWMfn2A//8Y1+MUqFAJul5Bs+yn36xbK9OtNDcRVSBJ9jjeoXftM6CfztsjOAA==",
11890 "dev": true,
11891 "requires": {
11892 "@types/json-schema": "^7.0.6",
11893 "ajv": "^6.12.5",
11894 "ajv-keywords": "^3.5.2"
11895 }
11896 }
11897 }
11898 },
11765 "readable-stream": { 11899 "readable-stream": {
11766 "version": "2.3.6", 11900 "version": "2.3.6",
11767 "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", 11901 "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
@@ -13012,30 +13146,6 @@
13012 "webpack-sources": "^1.4.1" 13146 "webpack-sources": "^1.4.1"
13013 }, 13147 },
13014 "dependencies": { 13148 "dependencies": {
13015 "ajv": {
13016 "version": "6.12.2",
13017 "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.2.tgz",
13018 "integrity": "sha512-k+V+hzjm5q/Mr8ef/1Y9goCmlsK4I6Sm74teeyGvFk1XrOsbsKLjEdrvny42CZ+a8sXbk8KWpY/bDwS+FLL2UQ==",
13019 "dev": true,
13020 "requires": {
13021 "fast-deep-equal": "^3.1.1",
13022 "fast-json-stable-stringify": "^2.0.0",
13023 "json-schema-traverse": "^0.4.1",
13024 "uri-js": "^4.2.2"
13025 }
13026 },
13027 "ajv-keywords": {
13028 "version": "3.4.1",
13029 "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.4.1.tgz",
13030 "integrity": "sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ==",
13031 "dev": true
13032 },
13033 "fast-deep-equal": {
13034 "version": "3.1.1",
13035 "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz",
13036 "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==",
13037 "dev": true
13038 },
13039 "minimist": { 13149 "minimist": {
13040 "version": "1.2.5", 13150 "version": "1.2.5",
13041 "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 13151 "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
diff --git a/www/package.json b/www/package.json
index a7013c4..3d3bf25 100644
--- a/www/package.json
+++ b/www/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "name": "create-wasm-app", 2 "name": "cstea",
3 "version": "0.1.0", 3 "version": "0.1.0",
4 "description": "create an app to consume rust-generated wasm packages", 4 "description": "explore rust csts",
5 "main": "index.js", 5 "main": "index.js",
6 "bin": { 6 "bin": {
7 "create-wasm-app": ".bin/create-wasm-app.js" 7 "create-wasm-app": ".bin/create-wasm-app.js"
@@ -35,6 +35,7 @@
35 "devDependencies": { 35 "devDependencies": {
36 "copy-webpack-plugin": "^5.0.0", 36 "copy-webpack-plugin": "^5.0.0",
37 "hello-wasm-pack": "^0.1.0", 37 "hello-wasm-pack": "^0.1.0",
38 "raw-loader": "^4.0.2",
38 "webpack": "^4.29.3", 39 "webpack": "^4.29.3",
39 "webpack-cli": "^3.1.0", 40 "webpack-cli": "^3.1.0",
40 "webpack-dev-server": "^3.1.5" 41 "webpack-dev-server": "^3.1.5"
diff --git a/www/webpack.config.js b/www/webpack.config.js
index 80ad814..0a1e226 100644
--- a/www/webpack.config.js
+++ b/www/webpack.config.js
@@ -11,4 +11,12 @@ module.exports = {
11 plugins: [ 11 plugins: [
12 new CopyWebpackPlugin(['index.html']) 12 new CopyWebpackPlugin(['index.html'])
13 ], 13 ],
14 module: {
15 rules: [
16 {
17 test: /\.txt$/i,
18 use: 'raw-loader',
19 },
20 ],
21 },
14}; 22};