Hello world for Remarkable API synchronization
This commit is contained in:
1
projects/nat-archive-tool/extern-files/js/args.hxml
Normal file
1
projects/nat-archive-tool/extern-files/js/args.hxml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-lib remarkable-typescript
|
||||||
0
projects/nat-archive-tool/extern-files/js/import.hx
Normal file
0
projects/nat-archive-tool/extern-files/js/import.hx
Normal file
23
projects/nat-archive-tool/extern-files/js/package.json
Normal file
23
projects/nat-archive-tool/extern-files/js/package.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -153,6 +153,7 @@
|
|||||||
|
|
||||||
// Add systems!
|
// Add systems!
|
||||||
(archive.addSystem nameSystem)
|
(archive.addSystem nameSystem)
|
||||||
|
(archive.addSystem (new RemarkableAPISystem))
|
||||||
(archive.addSystem (new WikipediaImageSystem))
|
(archive.addSystem (new WikipediaImageSystem))
|
||||||
(archive.addSystem (new ImageAttachmentSystem))
|
(archive.addSystem (new ImageAttachmentSystem))
|
||||||
// Just for testing:
|
// Just for testing:
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package nat.systems;
|
||||||
|
|
||||||
|
import kiss.Prelude;
|
||||||
|
import kiss.List;
|
||||||
|
import nat.System;
|
||||||
|
|
||||||
|
@:build(kiss.Kiss.build())
|
||||||
|
class RemarkableAPISystem extends System {}
|
||||||
@@ -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!")))
|
||||||
|
|
||||||
Reference in New Issue
Block a user