From 1c675b5f8f4df011211ffbf949f9521faf39dc23 Mon Sep 17 00:00:00 2001 From: Hydrazer Date: Sat, 2 Oct 2021 16:50:37 -0600 Subject: [PATCH] pkg(japt-2.0.0): add japt --- packages/japt/2.0.0/build.sh | 6 ++++++ packages/japt/2.0.0/environment | 5 +++++ packages/japt/2.0.0/metadata.json | 5 +++++ packages/japt/2.0.0/run | 4 ++++ packages/japt/2.0.0/test.japt | 1 + readme.md | 1 + 6 files changed, 22 insertions(+) create mode 100644 packages/japt/2.0.0/build.sh create mode 100644 packages/japt/2.0.0/environment create mode 100644 packages/japt/2.0.0/metadata.json create mode 100644 packages/japt/2.0.0/run create mode 100644 packages/japt/2.0.0/test.japt diff --git a/packages/japt/2.0.0/build.sh b/packages/japt/2.0.0/build.sh new file mode 100644 index 0000000..d31a5cc --- /dev/null +++ b/packages/japt/2.0.0/build.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# japt install +source ../../node/16.3.0/build.sh + +git clone -q "https://github.com/Hydrazer/japt.git" japt \ No newline at end of file diff --git a/packages/japt/2.0.0/environment b/packages/japt/2.0.0/environment new file mode 100644 index 0000000..1fd5f14 --- /dev/null +++ b/packages/japt/2.0.0/environment @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# node and japt path +export PATH=$PWD/bin:$PATH +export JAPT_PATH=$PWD/japt \ No newline at end of file diff --git a/packages/japt/2.0.0/metadata.json b/packages/japt/2.0.0/metadata.json new file mode 100644 index 0000000..7a3e5aa --- /dev/null +++ b/packages/japt/2.0.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "japt", + "version": "2.0.0", + "aliases": ["japt"] +} \ No newline at end of file diff --git a/packages/japt/2.0.0/run b/packages/japt/2.0.0/run new file mode 100644 index 0000000..80649c4 --- /dev/null +++ b/packages/japt/2.0.0/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# japt only takes filename and stdin +node "$JAPT_PATH"/node.js "$1" \ No newline at end of file diff --git a/packages/japt/2.0.0/test.japt b/packages/japt/2.0.0/test.japt new file mode 100644 index 0000000..d096585 --- /dev/null +++ b/packages/japt/2.0.0/test.japt @@ -0,0 +1 @@ +"OK \ No newline at end of file diff --git a/readme.md b/readme.md index 02a3a03..5b41e6a 100644 --- a/readme.md +++ b/readme.md @@ -346,6 +346,7 @@ Content-Type: application/json `groovy`, `haskell`, `iverilog`, +`japt`, `java`, `javascript`, `jelly`,