add webextension externs to firefox template
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
-lib kiss
|
||||
-lib webextension-polyfill
|
||||
-cp src
|
||||
-dce full
|
||||
--main template.Main
|
||||
--js bin/main.js
|
||||
-cmd zip -r template.zip . -x *.git* -x *.hxml -x *.zip -x src/\*
|
||||
-cmd zip -r template.zip . -x *.git* -x *.hxml -x *.zip -x src/\* -x node_modules/\*
|
15
template/package.json
Normal file
15
template/package.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "template",
|
||||
"version": "0.0.0",
|
||||
"description": "A Firefox extension made with Kisslang",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"postinstall": "dts2hx --all"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/webextension-polyfill": "^0.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"dts2hx": "^0.19.0"
|
||||
}
|
||||
}
|
7
template/test.sh
Normal file
7
template/test.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#! /bin/bash
|
||||
|
||||
if [ ! -d node_modules ]; then
|
||||
$(haxelib libpath kiss)/build-scripts/dts2hx-externs/regenerate.sh
|
||||
fi
|
||||
|
||||
haxe -D test build.hxml
|
Reference in New Issue
Block a user