diff options
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | README.md | 10 | ||||
| -rw-r--r-- | browser_test/index.html | 14 | ||||
| -rw-r--r-- | lib/serpentity/bower.json (renamed from bower.json) | 12 | ||||
| -rw-r--r-- | package.json | 37 |
5 files changed, 43 insertions, 32 deletions
@@ -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 @@ -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 diff --git a/browser_test/index.html b/browser_test/index.html index 9133ed5..3be1f38 100644 --- a/browser_test/index.html +++ b/browser_test/index.html @@ -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 diff --git a/bower.json b/lib/serpentity/bower.json index 985e6c8..d93dd89 100644 --- a/bower.json +++ b/lib/serpentity/bower.json @@ -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" diff --git a/package.json b/package.json index 9b87907..573eb9d 100644 --- a/package.json +++ b/package.json @@ -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" } - |