Hello world for Remarkable API synchronization

This commit is contained in:
2021-10-01 22:53:10 -06:00
parent 564330da98
commit 779a169618
6 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1 @@
-lib remarkable-typescript

View File

View File

@@ -0,0 +1,23 @@
{
"name": "nat-archive-tool-js-externs",
"version": "0.0.0",
"description": "",
"main": "index.js",
"scripts": {
"postinstall": "dts2hx --all"
},
"repository": {
"type": "git",
"url": "git+https://github.com/NQNStudios/kisslang.git"
},
"author": "NQNStudios",
"license": "LGPL2",
"bugs": {
"url": "https://github.com/NQNStudios/kisslang/issues"
},
"homepage": "https://github.com/NQNStudios/kisslang#readme",
"devDependencies": {
"dts2hx": "^0.16.1",
"remarkable-typescript": "^1.1.3"
}
}

View File

@@ -153,6 +153,7 @@
// Add systems!
(archive.addSystem nameSystem)
(archive.addSystem (new RemarkableAPISystem))
(archive.addSystem (new WikipediaImageSystem))
(archive.addSystem (new ImageAttachmentSystem))
// Just for testing:

View File

@@ -0,0 +1,8 @@
package nat.systems;
import kiss.Prelude;
import kiss.List;
import nat.System;
@:build(kiss.Kiss.build())
class RemarkableAPISystem extends System {}

View File

@@ -0,0 +1,16 @@
(load "../Lib.kiss")
(defNew []
(super
->[archive e] false
->[archive e] null)
~(#extern String js
(object
hxmlFile "extern-files/js/args.hxml"
skipHaxelibInstall true
importHxFile "extern-files/js/import.hx"
langProjectFile "extern-files/js/package.json")
[]
(print "extern hello world!")))