Refactor travis testing
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 984 B After Width: | Height: | Size: 984 B |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@@ -1,3 +0,0 @@
|
||||
# HaxeFlixel Projects
|
||||
|
||||
Various examples of how to combine Kiss with HaxeFlixel
|
@@ -1,12 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
# Make sure the examples with backends compile, at least:
|
||||
EXAMPLE_DIRS=./**/
|
||||
|
||||
for EXAMPLE_DIR in $EXAMPLE_DIRS
|
||||
do
|
||||
echo "Building $EXAMPLE_DIR for html5"
|
||||
(cd $EXAMPLE_DIR && haxelib run lime build html5)
|
||||
echo "Building $EXAMPLE_DIR for cpp"
|
||||
(cd $EXAMPLE_DIR && haxelib run lime build cpp)
|
||||
done
|
@@ -1,4 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
haxelib dev nap .
|
||||
haxe test.hxml
|
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "nap",
|
||||
"name": "nat-archive-tool",
|
||||
"url": "https://github.com/hissvn/kisslang",
|
||||
"license": "LGPL",
|
||||
"tags": ["cross"],
|
@@ -1,4 +1,4 @@
|
||||
package nap;
|
||||
package nat;
|
||||
|
||||
import sys.FileSystem;
|
||||
import kiss.Prelude;
|
@@ -1,4 +1,4 @@
|
||||
package nap;
|
||||
package nat;
|
||||
|
||||
import kiss.KissInterp;
|
||||
import hscript.Parser;
|
@@ -1,4 +1,4 @@
|
||||
package nap;
|
||||
package nat;
|
||||
|
||||
typedef Entry = {
|
||||
id:String,
|
@@ -1,4 +1,4 @@
|
||||
package nap;
|
||||
package nat;
|
||||
|
||||
import kiss.Prelude;
|
||||
import sys.io.File;
|
@@ -6,10 +6,10 @@
|
||||
|
||||
// TODO add to the documentation a hint that macros should use fully qualified paths so macro caller classes don't need to import everything
|
||||
(defmacro getComponent [archive e componentType]
|
||||
`(the nap.components ,componentType
|
||||
`(the nat.components ,componentType
|
||||
(tink.Json.parse
|
||||
(sys.io.File.getContent
|
||||
(haxe.io.Path.join [.archiveDir (the nap.Archive ,archive) "components" (+ (dictGet (the Map<String,String> .components ,e) ,(symbolName componentType)) ".json")])))))
|
||||
(haxe.io.Path.join [.archiveDir (the nat.Archive ,archive) "components" (+ (dictGet (the Map<String,String> .components ,e) ,(symbolName componentType)) ".json")])))))
|
||||
|
||||
(defun tagList [archive e]
|
||||
(let [t
|
@@ -1,4 +1,4 @@
|
||||
package nap;
|
||||
package nat;
|
||||
|
||||
import kiss.Prelude;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
package nap;
|
||||
package nat;
|
||||
|
||||
interface Template {
|
||||
function prepareEntry(e:Entry):Void;
|
@@ -1,3 +1,3 @@
|
||||
package nap.components;
|
||||
package nat.components;
|
||||
|
||||
typedef Tags = Map<String, Date>;
|
@@ -1,4 +1,4 @@
|
||||
package nap.components;
|
||||
package nat.components;
|
||||
|
||||
typedef Name = String;
|
||||
typedef Author = String;
|
@@ -1,3 +1,3 @@
|
||||
package nap.components;
|
||||
package nat.components;
|
||||
|
||||
typedef Tags = Map<String, Int>;
|
@@ -1,4 +1,4 @@
|
||||
package nap.systems;
|
||||
package nat.systems;
|
||||
|
||||
import kiss.Prelude;
|
||||
|
@@ -2,10 +2,10 @@ package test;
|
||||
|
||||
import kiss.Kiss;
|
||||
import kiss.Prelude;
|
||||
import nap.BoolExpInterp;
|
||||
import nap.Archive;
|
||||
import nap.Lib;
|
||||
import nap.components.*;
|
||||
import nat.BoolExpInterp;
|
||||
import nat.Archive;
|
||||
import nat.Lib;
|
||||
import nat.components.*;
|
||||
|
||||
@:build(kiss.Kiss.build())
|
||||
class TestMain {}
|
@@ -1,7 +1,7 @@
|
||||
// TODO external programs need to be able to find and (load) this path to get the macros:
|
||||
// ^ That should be solved by allowing an optional first argument to load that is a symbol
|
||||
// of a library name that can be used to resolve the source dir in the user's Haxelib maybe?
|
||||
(load "../nap/Lib.kiss")
|
||||
(load "../nat/Lib.kiss")
|
||||
|
||||
|
||||
(defun :Void main []
|
@@ -1,6 +1,6 @@
|
||||
-D test
|
||||
-lib kiss
|
||||
-lib nap
|
||||
-lib nat-archive-tool
|
||||
-cp test
|
||||
--main test.TestMain
|
||||
--interp
|
4
projects/nat-archive-tool/test.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#! /bin/bash
|
||||
|
||||
haxelib dev nat-archive-tool .
|
||||
haxe test.hxml
|
@@ -1,5 +1,5 @@
|
||||
-lib kiss
|
||||
-lib nap
|
||||
-lib nat-archive-tool
|
||||
-cp src
|
||||
--main Main
|
||||
--interp
|
@@ -2,7 +2,7 @@ package;
|
||||
|
||||
import kiss.Kiss;
|
||||
import kiss.Prelude;
|
||||
import nap.Archive;
|
||||
import nat.Archive;
|
||||
|
||||
@:build(kiss.Kiss.build())
|
||||
class Main {}
|