CI: deploy to gh-pages (#2)
This commit is contained in:
parent
056471c0eb
commit
0377efebed
9 changed files with 5939 additions and 5 deletions
2
www/.gitignore
vendored
Normal file
2
www/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
node_modules
|
||||
dist
|
5
www/bootstrap.js
vendored
Normal file
5
www/bootstrap.js
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
// A dependency graph that contains any wasm must all be imported
|
||||
// asynchronously. This `bootstrap.js` file does the single async import, so
|
||||
// that no one else needs to worry about it again.
|
||||
import("./index.js")
|
||||
.catch(e => console.error("Error importing `index.js`:", e));
|
11
www/index.html
Normal file
11
www/index.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>gpx web utils</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>This page contains webassembly and javascript content, please enable javascript in your browser.</noscript>
|
||||
<script src="./bootstrap.js"></script>
|
||||
</body>
|
||||
</html>
|
3
www/index.js
Normal file
3
www/index.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
import * as wasm from "gpx-web-utils";
|
||||
|
||||
wasm.greet();
|
5842
www/package-lock.json
generated
Normal file
5842
www/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
35
www/package.json
Normal file
35
www/package.json
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"name": "gpx-web-utils",
|
||||
"version": "0.0.1",
|
||||
"description": "just some gpx-related tools that i want to use.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build": "webpack --config webpack.config.js",
|
||||
"start": "webpack-dev-server"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/thermokarst/gpx-web-utils.git"
|
||||
},
|
||||
"keywords": [
|
||||
"webassembly",
|
||||
"wasm",
|
||||
"rust",
|
||||
"webpack"
|
||||
],
|
||||
"author": "Matthew Ryan Dillon <matthewrdillon@gmail.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/thermokarst/gpx-web-utils/issues"
|
||||
},
|
||||
"homepage": "https://github.com/thermokarst/gpx-web-util#readme",
|
||||
"dependencies": {
|
||||
"gpx-web-utils": "file:../pkg"
|
||||
},
|
||||
"devDependencies": {
|
||||
"webpack": "^4.29.3",
|
||||
"webpack-cli": "^3.1.0",
|
||||
"webpack-dev-server": "^3.1.5",
|
||||
"copy-webpack-plugin": "^5.0.0"
|
||||
}
|
||||
}
|
14
www/webpack.config.js
Normal file
14
www/webpack.config.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: "./bootstrap.js",
|
||||
output: {
|
||||
path: path.resolve(__dirname, "dist"),
|
||||
filename: "bootstrap.js",
|
||||
},
|
||||
mode: "development",
|
||||
plugins: [
|
||||
new CopyWebpackPlugin(['index.html'])
|
||||
],
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue