Remove local-web-server & Use storybook for 'dev' script

This commit is contained in:
yushijinhun 2020-07-14 02:46:55 +08:00
parent 58ae9aa05f
commit 90b4c57ada
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
6 changed files with 11 additions and 1110 deletions

View File

@ -1,3 +1,3 @@
{
"type": "commonjs"
"type": "commonjs"
}

View File

@ -1,40 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>skinview3d</title>
<link href="https://fonts.googleapis.com/css?family=Archivo+Black" rel="stylesheet">
<style>
html,
body {
margin: 0;
padding: 0;
background-color: #1e1e1e;
}
</style>
</head>
<body>
<div id="skin_container"></div>
<script type="text/javascript" src="../bundles/skinview3d.bundle.js"></script>
<script>
let skinViewer = new skinview3d.SkinViewer(document.getElementById("skin_container"), {
width: 400,
height: 300,
skin: "./1_8_texturemap_redux.png"
});
let control = new skinview3d.createOrbitControls(skinViewer);
skinViewer.animations.add(skinview3d.WalkingAnimation);
skinViewer.animations.speed = 1.5;
</script>
</body>
</html>

1064
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,13 +11,11 @@
"build": "npm run build:modules && npm run build:bundles",
"test:lint": "eslint --ext .ts src",
"test": "npm run test:lint",
"dev:watch:modules": "tsc -w --declaration --sourceMap --outDir libs -p .",
"dev:watch:bundles": "rollup -w -c",
"dev:serve": "ws",
"storybook": "start-storybook -s ./public -p 6006",
"dev": "npm-run-all --parallel dev:watch:modules dev:watch:bundles dev:serve",
"prepublishOnly": "npm run clean && npm run build",
"build-storybook": "build-storybook"
"dev:watch:modules": "tsc -w --preserveWatchOutput --declaration --sourceMap --outDir libs -p .",
"dev:watch:bundles": "rollup -w --no-watch.clearScreen -c",
"dev:storybook": "start-storybook -s ./public -p 6006",
"dev": "npm-run-all --parallel dev:watch:modules dev:storybook",
"prepublishOnly": "npm run clean && npm run build"
},
"repository": {
"type": "git",
@ -54,7 +52,6 @@
"@yushijinhun/three-minifier-rollup": "^0.1.7",
"babel-loader": "^8.1.0",
"eslint": "^7.3.1",
"local-web-server": "^4.2.1",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.2",
"rollup": "^2.18.0",

0
public/texture/README.md Normal file
View File

View File

@ -1,5 +1,5 @@
/* eslint-disable */
import * as skinview3d from "../libs/skinview3d";
import * as skinview3d from "..";
import { withKnobs, radios, number } from "@storybook/addon-knobs";
export default {