From c1d76b4516d4c278a6b6feb515c5dd189b2b4c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belin?= Date: Mon, 4 Nov 2024 15:18:59 +0100 Subject: [PATCH] Move the resources to the "res" folder --- {share => res}/sample.php | 0 share/build.hxml | 11 ----------- test/php_minifier/FastTransformerTest.hx | 2 +- test/php_minifier/GulpPluginTest.hx | 2 +- test/php_minifier/SafeTransformerTest.hx | 2 +- 5 files changed, 3 insertions(+), 14 deletions(-) rename {share => res}/sample.php (100%) delete mode 100644 share/build.hxml diff --git a/share/sample.php b/res/sample.php similarity index 100% rename from share/sample.php rename to res/sample.php diff --git a/share/build.hxml b/share/build.hxml deleted file mode 100644 index 62bcb1c3..00000000 --- a/share/build.hxml +++ /dev/null @@ -1,11 +0,0 @@ ---class-path src ---dce full ---define analyzer-optimize ---define js-es=6 ---define js-global=globalThis ---define no-deprecation-warnings ---library asys ---library hxnodejs ---library tink_cli ---library tink_http ---library tink_querystring diff --git a/test/php_minifier/FastTransformerTest.hx b/test/php_minifier/FastTransformerTest.hx index ff51ab0c..b1884f42 100644 --- a/test/php_minifier/FastTransformerTest.hx +++ b/test/php_minifier/FastTransformerTest.hx @@ -31,7 +31,7 @@ using StringTools; @:variant("__construct() { $this->property") public function transform(output: String) { final transformer = new FastTransformer(); - transformer.transform("share/sample.php") + transformer.transform("res/sample.php") .next(script -> transformer.close().next(_ -> asserts.assert(script.contains(output)))) .handle(asserts.handle); diff --git a/test/php_minifier/GulpPluginTest.hx b/test/php_minifier/GulpPluginTest.hx index 96da6858..7b303f00 100644 --- a/test/php_minifier/GulpPluginTest.hx +++ b/test/php_minifier/GulpPluginTest.hx @@ -15,7 +15,7 @@ using StringTools; @:variant(Fast) @:variant(Safe) public function transform(input: TransformMode) { - final file = new File({path: FileSystem.absolutePath("share/sample.php")}); + final file = new File({path: FileSystem.absolutePath("res/sample.php")}); final plugin = new GulpPlugin({mode: input, silent: true}); @:privateAccess plugin._transform(file, "utf8", (error, chunk) -> { plugin.emit("end"); diff --git a/test/php_minifier/SafeTransformerTest.hx b/test/php_minifier/SafeTransformerTest.hx index fe0aaae3..d1a4efef 100644 --- a/test/php_minifier/SafeTransformerTest.hx +++ b/test/php_minifier/SafeTransformerTest.hx @@ -22,7 +22,7 @@ using StringTools; @:variant("__construct() { $this->property") public function transform(output: String) { final transformer = new SafeTransformer(); - transformer.transform("share/sample.php") + transformer.transform("res/sample.php") .next(script -> transformer.close().next(_ -> asserts.assert(script.contains(output)))) .handle(asserts.handle);