]> git.r.bdr.sh - rbdr/serpentity/commitdiff
Prepares for bower
authorBen Beltran <redacted>
Mon, 11 Aug 2014 23:52:20 +0000 (18:52 -0500)
committerBen Beltran <redacted>
Mon, 11 Aug 2014 23:52:20 +0000 (18:52 -0500)
.gitignore
README.md
browser_test/index.html
lib/serpentity/bower.json [moved from bower.json with 66% similarity]
package.json

index e5a4385ca6ccea135ac5a2dabb5c8abfe73c4ae3..25d3c00df82251839c43cf18f88a1e8aa1e0b74c 100644 (file)
@@ -23,4 +23,4 @@ build/Release
 # Deployed apps should consider commenting this line out:
 # see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
 node_modules
-bower_modules
+bower_components
index 3d2ebb0775533f283aef27c447f7a3c7f42e3049..4d73f182208efc8b870f5cb21f366c535891cf72 100644 (file)
--- a/README.md
+++ b/README.md
@@ -93,6 +93,16 @@ Systems are called on every update, and they use components through nodes.
 
 Just run `engine.update(dt)` in your game loop :D
 
+## Checking it in the frontend (dev).
+
+You can link the bower package (bower.json is in `lib/serpentity/` to
+make paths cleaner), then link it again from the root directory and
+spawn a python server (`python -m SimpleHTTPServer`). The test page
+will be available in `http://localhost:8000/browser_test/`
+
+If you just want to use it, it's available as a bower package!
+
+
 ## TO-DO
 
 * Removing components
index 9133ed55ad79207b91ca6cc4eae70ae575ddd90f..3be1f38f4db2496d6883552a417c72cfd47fe574 100644 (file)
@@ -2,13 +2,13 @@
 <html>
   <head>
     <title>Serpentity Browser Test</title>
-    <script src="/node_modules/neon/neon.js"></script>
-    <script src="/lib/serpentity/serpentity.js"></script>
-    <script src="/lib/serpentity/entity.js"></script>
-    <script src="/lib/serpentity/node.js"></script>
-    <script src="/lib/serpentity/node_collection.js"></script>
-    <script src="/lib/serpentity/component.js"></script>
-    <script src="/lib/serpentity/system.js"></script>
+    <script src="/bower_components/neon/neon.js"></script>
+    <script src="/bower_components/serpentity/serpentity.js"></script>
+    <script src="/bower_components/serpentity/entity.js"></script>
+    <script src="/bower_components/serpentity/node.js"></script>
+    <script src="/bower_components/serpentity/node_collection.js"></script>
+    <script src="/bower_components/serpentity/component.js"></script>
+    <script src="/bower_components/serpentity/system.js"></script>
     <script type="application/javascript">
         /////////////////
         // Load the stuff
similarity index 66%
rename from bower.json
rename to lib/serpentity/bower.json
index 985e6c8b5b8e4e4650e9c838697a1f1d9d292e6f..d93dd89d713791cf1f175539aeb4d55af43532ae 100644 (file)
@@ -7,12 +7,12 @@
   ],
   "description": "A simple entity framework inspired by ash",
   "main": [
-    "./lib/serpentity/serpentity.js",
-    "./lib/serpentity/entity.js",
-    "./lib/serpentity/node.js",
-    "./lib/serpentity/node_collection.js",
-    "./lib/serpentity/component.js",
-    "./lib/serpentity/system.js"
+    "./serpentity.js",
+    "./entity.js",
+    "./node.js",
+    "./node_collection.js",
+    "./component.js",
+    "./system.js"
   ],
   "keywords": [
     "entity"
index 9b87907ea3904eedd89a2df3ba760168d290bcab..573eb9d247d76260b2fd2ea184f7161def96e4a4 100644 (file)
@@ -1,26 +1,27 @@
 {
-  "name" : "serpentity",
-  "description" : "A simple entity framework inspired by ash",
-  "version" : "0.1.3",
-  "contributors" : [
+  "name": "serpentity",
+  "description": "A simple entity framework inspired by ash",
+  "version": "0.1.3",
+  "contributors": [
     {
-      "name"  : "Ben Beltran",
-      "email" : "ben@nsovocal.com",
-      "url" : "http://nsovocal.com"
+      "name": "Ben Beltran",
+      "email": "ben@nsovocal.com",
+      "url": "http://nsovocal.com"
     }
   ],
-  "repository" : {
-    "type" : "git",
-    "url" : "https://github.com/benbeltran/serpentity.git"
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/benbeltran/serpentity.git"
   },
-  "dependencies" : {
-    "neon" : "2.0.x"
+  "dependencies": {
+    "neon": "2.0.x"
   },
-  "devDependencies" : {
-    "colors" : "0.6.2",
-    "tellurium" : "2.0.x"
+  "devDependencies": {
+    "colors": "0.6.2",
+    "tellurium": "2.0.x"
   },
-  "engines" : { "node" : ">= 0.10.0" },
-  "main" : "./lib/serpentity/serpentity.js"
+  "engines": {
+    "node": ">= 0.10.0"
+  },
+  "main": "./lib/serpentity/serpentity.js"
 }
-