1.8.11 • Published 1 year ago
@fruk/simulator-core v1.8.11
Simulator Core
setup
after installing node:
$ npm install
$ npm run start-web
then browsing to http://localhost:8080 should show you the results. any changes made to the code will cause a reload.
Adding a New Demo
To add a new demo for local development / testing purposes, follow these steps:
- Add a new Canvas to the index.html file
<!DOCTYPE html>
<html>
<head>
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
}
</style>
</head>
<body>
<canvas id="demo1" width="800" height="600"></canvas>
+ <canvas id="demo2" width="800" height="600"></canvas>
<!-- NOTE: SCRIPTS WILL BE AUTOMATICALLY ADDED BY WEBPACK BELOW THIS COMMENT -->
</body>
</html>
- Add a new demo file to src/demos
- Add the demo to the webpack.config.js in the entry points object
entry: {
demo1: "./src/demos/demo1.ts",
demo2: "./src/demos/demo2.ts"
},
- Run
npm run start-web
. At this point, any changes you make to your new demo file should be reflected on localhost:8080
using as a module (local development)
$ npm install
$ npm run build
$ npm link
Then in the project you want to use this module in, run:
$ npm link @fruk/simulator-core
1.8.11
1 year ago
1.8.9
2 years ago
1.8.10
2 years ago
1.8.8
2 years ago
1.8.7
2 years ago
1.8.6
2 years ago
1.8.5
2 years ago
1.8.4
2 years ago
1.8.2
2 years ago
1.8.1
2 years ago
1.8.0
2 years ago
1.7.0
2 years ago
1.8.3
2 years ago
1.6.9
3 years ago
1.6.8
3 years ago
1.6.7
3 years ago
1.6.6
3 years ago
1.6.5
3 years ago
1.6.4
3 years ago
1.6.3
3 years ago
1.6.2
3 years ago
1.6.1
3 years ago
1.6.0
3 years ago
1.5.1
4 years ago
1.5.0
4 years ago
1.4.1
4 years ago
1.4.0
4 years ago
1.3.0
4 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.2
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
1.0.0-testrc
4 years ago