Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated README to make it more correct...

  • Loading branch information...
commit 1253f08b4ce80abb0b28ba827da886ae12b4ea62 1 parent a1b1ab1
Jason O'Neil authored
Showing with 15 additions and 13 deletions.
  1. +6 −6 README.md
  2. +9 −7 commands/02buildjs.sh
12 README.md
View
@@ -23,17 +23,17 @@ Steps for getting this far
If you want to help with the effort, here are the steps for getting this far:
-* Build my own version of the haxelib "buildjs" with changes to the "senchatouch" generator
* Download the latest ext-4.* source
* Use jsduck to create the JSON documentation for Ext JS
* Use buildjs to create the externs from the JSON files
* Make some changes that are required for the library to compile in haxe
* Build a sample project
-**To recompile buildjs**
+Most of these can be done by some handy shell scripts:
- # I run this from: /usr/lib/haxe/lib/buildjs/1,05/src/
- haxe -lib hxJson2 -neko ../run.n -main BuildJS
+* ./generateExterns.sh to download extjs, and generate externs using ''jsduck'' and ''buildjs''
+* Make custom changes to a few files, as documented below
+* ./packageForHaxeLib.sh to package the new externs for haxelib and submit them.
**Run jsduck to generate the JSON documentation**
@@ -43,7 +43,7 @@ If you want to help with the effort, here are the steps for getting this far:
**Run buildjs to generate the haxe externs**
# Run this from the root of the repository
- haxelib run buildjs externs -senchatouch jsduck-json/ haxe/
+ haxelib run buildjs externs -extjs jsduck-json/ haxe/
**Build example**
@@ -58,7 +58,7 @@ Changes required after building the project
- commented out "name" property in ext/env/Browser.hx
- commented out "name" property in ext/env/OS.hx
- removed package "core" in "import ext.core.Element;" in ext/AbstractComponent.hx
- - in file "ext/window/MessageBox.hx" added "import String;" - may have to do this in other files.
+ - rename "ext/String.hx" to "ExtString.hx" - to stop it getting confused and expecting this instead of a normal string.
- in "ext/Ext.hx" change method "onReady()", final 2 parameters should be optional. (Line 120)
- rename "ext/String.hx" to "ext/ExtString.hx" (they're all static and shouldn't be needed in haxe, and it gets confused with the haxe String class)
16 commands/02buildjs.sh
View
@@ -1,15 +1,17 @@
#!/bin/sh
-# Build neko file
-cd commands/02buildjs
-haxe build.hxml
-cd -
-
# Delete the existing haxe files
rm -Rf haxe/Ext.hx haxe/ext/
-# Run neko file
-neko commands/02buildjs/run.n externs -extjs jsduck-json/ haxe/ ./
+## Changes now integrated into buildjs, we don't need to build our own
+# Build neko file
+#cd commands/02buildjs
+#haxe build.hxml
+#cd -
+#
+## Run neko file
+#neko commands/02buildjs/run.n externs -extjs jsduck-json/ haxe/ ./
+haxelib run buildjs jsduck-json/ haxe/
echo "DONE!"
echo "View the README.md file for instructions on which files need manual editing"
Please sign in to comment.
Something went wrong with that request. Please try again.