-
Notifications
You must be signed in to change notification settings - Fork 11
Deployment Documentation
JakeSamiRulz edited this page Apr 16, 2015
·
8 revisions
Custom Wars Tactics can run on any system that supports Eclipse, Git and Maven.
This section decribes how you can build the game engine from source.
- Eclipse 4.4.1
- Git
- Maven (Should be included in Eclipse)
- Download and install Eclipse 4.4.1
- Make sure that Maven Integration for Eclipse is installed from the Eclipse Marketplace
- Checkout the web page source from our github repository and select the master branch
- Import the folder as java project
- Convert the project to a maven project by selecting the following in the context menu Configure => Convert to maven project
- Create a new Maven build starter in the Run => Run Configurations.. dialog with the name BUILD GAME ENGINE JS
- Set the working directory to the folder of the web page project
- Add
compile org.st-js:maven-plugin:generate
as maven goal - EMBEDDED 3.x.y.z should be selected as maven runtime
..Under construction..
..Under construction..
This section describes how you can build the web page from source.
- Eclipse 4.4.1
- Git
- Maven (Should be included in Eclipse)
- Download and install Eclipse 4.4.1
- Make sure that Maven Integration for Eclipse is installed from the Eclipse Marketplace
- Checkout the web page source from our github repository and select the
gh-pages
branch - Import the folder as java project
- Convert the project to a maven project by selecting the following in the context menu: Configure => Convert to maven project
- Create a new Maven build starter in the Run => Run Configurations.. dialog with the name
BUILD WEBPAGE JS
- Set the working directory to the folder of the web page project
- Add
compile org.st-js:maven-plugin:generate org.apache.maven.plugins:maven-antrun-plugin:run
as maven goal -
EMBEDDED 3.x.y.z
should be selected as maven runtime
- Run the
BUILD WEBPAGE JS
starter to generate the javascript file (There should be aBUILD SUCCESS
in your console when the build was successful) - Start a http server which uses your project folder as document root
- Open
localhost/index.html
in your web browser
- Check the web page by doing everything in Build the web page
- Commit your changes
- Publish your committed stuff to the repository
The changes should be visible on ctomni231.github.io/cwtactics
in some minutes.
The game files will be generated with the build system grunt. To download all dependencies manually you simply have to write npm install in your terminal while being in the root directory of the Custom Wars: Tactics repository. After that you can invoke the build process by typing the command grunt in your console.
grunt <Command>
Commands:
docs = Generates the documentation of CustomWars:Tactics
report = Generates a mnarkdown file with all todo marks
live = Builds the game and it's dependencies in live mode (uglified)
dev = Builds the game and it's dependencies in debug mode
default is dev
- Resources
- Tools
- Development
- Design Documents
- Archive