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