Skip to content

Commit

Permalink
update project to use pawi libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspard committed Mar 8, 2021
1 parent d936123 commit ba2abda
Show file tree
Hide file tree
Showing 40 changed files with 320 additions and 292 deletions.
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"singleQuote": true,
"semi": false,
"arrowParens": "avoid"
}
11 changes: 7 additions & 4 deletions src/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="google" value="notranslate" />
<title>Pawi examples</title>
<link rel='stylesheet' href='./style.css' />
<link rel='stylesheet' href='./src/style.css' />
</head>

<body>
Expand All @@ -16,17 +16,20 @@
<h2>Simple</h2>
<ul>
<li>
<a href='blank'>blank</a>
<a href='./src/blank'>blank</a>
</li>
<li>
<a href='add'>add</a>
<a href='./src/add'>add</a>
</li>
</ul>

<h2>3D</h2>
<ul>
<li>
<a href='3D-cube'>3D cube</a>
<a href='./src/3D-cube'>3D cube</a>
</li>
<li>
<a href='./src/3D-midi'>3D midi</a>
</li>
</ul>
</div>
Expand Down
37 changes: 34 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@
},
"scripts": {
"build": "snowpack build",
"serve": "cd src && snowpack dev"
"serve": "snowpack dev"
},
"author": "Maia Taewana <[email protected]>",
"license": "MIT",
"dependencies": {
"three": "^0.126.1",
"@pawi/base": "next",
"@pawi/three": "next",
"pawi": "next"
},
"devDependencies": {
"@snowpack/plugin-typescript": "^1.2.1",
"@types/three": "^0.125.3",
"@types/webmidi": "^2.0.4",
"esm": "^3.2.25",
"snowpack": "^3.0.13",
"typescript": "^4.1.5"
Expand Down
32 changes: 16 additions & 16 deletions src/3D-cube/branch.awi.json → src/3D-cube/branch.o.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"type": "pawi",
"id": "1",
"version": "1614981957698",
"version": "1",
"entry": "main",
"blocks": {
"main": {
"id": "main",
"name": "main",
"content": {
"file": "main.js"
"file": "./main.js"
},
"children": [
"anim"
Expand All @@ -18,7 +18,7 @@
"id": "anim",
"name": "anim.Loop",
"content": {
"file": "lib/anim.Loop.awi.js"
"file": "@pawi/base/dist/anim.Loop.o.js"
},
"children": [
"renderer"
Expand All @@ -28,7 +28,7 @@
"id": "renderer",
"name": "three.Renderer",
"content": {
"file": "lib/three.WebGLRenderer.awi.js"
"file": "@pawi/three/dist/three.WebGLRenderer.o.js"
},
"children": [
"scene"
Expand All @@ -38,7 +38,7 @@
"id": "scene",
"name": "three.Scene",
"content": {
"file": "lib/three.Scene.awi.js"
"file": "@pawi/three/dist/three.Scene.o.js"
},
"children": [
"mesh",
Expand All @@ -49,7 +49,7 @@
"id": "mesh",
"name": "three.Mesh",
"content": {
"file": "lib/three.Mesh.awi.js"
"file": "@pawi/three/dist/three.Mesh.o.js"
},
"children": [
"route"
Expand All @@ -59,15 +59,15 @@
"id": "lights",
"name": "three.Lights",
"content": {
"file": "lib/three.Lights.awi.js"
"file": "@pawi/three/dist/three.Lights.o.js"
},
"children": []
},
"route": {
"id": "route",
"name": "route",
"content": {
"file": "route.js"
"file": "./route.js"
},
"children": [
"now",
Expand All @@ -78,7 +78,7 @@
"id": "now",
"name": "now",
"content": {
"file": "lib/three.Rotation.awi.js"
"file": "@pawi/three/dist/three.Rotation.o.js"
},
"children": [
"nowX",
Expand All @@ -91,30 +91,30 @@
"name": "now.x",
"children": [],
"content": {
"file": "nowX.js"
"file": "./nowX.js"
}
},
"nowY": {
"id": "nowY",
"name": "now.y",
"children": [],
"content": {
"file": "nowY.js"
"file": "./nowY.js"
}
},
"nowZ": {
"id": "nowZ",
"name": "now.z",
"children": [],
"content": {
"file": "nowZ.js"
"file": "./nowZ.js"
}
},
"sliders": {
"id": "sliders",
"name": "sliders",
"content": {
"file": "lib/three.Rotation.awi.js"
"file": "@pawi/three/dist/three.Rotation.o.js"
},
"children": [
"sliderX",
Expand All @@ -127,23 +127,23 @@
"name": "slider.x",
"children": [],
"content": {
"file": "sliderX.js"
"file": "./sliderX.js"
}
},
"sliderY": {
"id": "sliderY",
"name": "slider.y",
"children": [],
"content": {
"file": "sliderY.js"
"file": "./sliderY.js"
}
},
"sliderZ": {
"id": "sliderZ",
"name": "slider.z",
"children": [],
"content": {
"file": "sliderZ.js"
"file": "./sliderZ.js"
}
}
}
Expand Down
29 changes: 0 additions & 29 deletions src/3D-cube/lib/anim.Loop.awi.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/3D-cube/lib/context.ts

This file was deleted.

34 changes: 0 additions & 34 deletions src/3D-cube/lib/three.Lights.awi.ts

This file was deleted.

25 changes: 0 additions & 25 deletions src/3D-cube/lib/three.Mesh.awi.ts

This file was deleted.

Loading

0 comments on commit ba2abda

Please sign in to comment.