From eecd25c9188b5c045d89aa26d1d367dd5131d88f Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Mon, 11 Aug 2014 18:52:20 -0500 Subject: Prepares for bower --- .gitignore | 2 +- README.md | 10 ++++++++++ bower.json | 31 ------------------------------- browser_test/index.html | 14 +++++++------- lib/serpentity/bower.json | 31 +++++++++++++++++++++++++++++++ package.json | 37 +++++++++++++++++++------------------ 6 files changed, 68 insertions(+), 57 deletions(-) delete mode 100644 bower.json create mode 100644 lib/serpentity/bower.json diff --git a/.gitignore b/.gitignore index e5a4385..25d3c00 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/README.md b/README.md index 3d2ebb0..4d73f18 100644 --- 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 diff --git a/bower.json b/bower.json deleted file mode 100644 index 985e6c8..0000000 --- a/bower.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "serpentity", - "version": "0.1.3", - "homepage": "https://github.com/benbeltran/serpentity", - "authors": [ - "Ben Beltran " - ], - "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" - ], - "keywords": [ - "entity" - ], - "license": "MIT", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "test", - "tests" - ], - "dependencies": { - "neon": "*" - } -} 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 @@ Serpentity Browser Test - - - - - - - + + + + + + +