build: use typescript
This commit is contained in:
+1
-1
@@ -2,5 +2,5 @@ root = true
|
|||||||
|
|
||||||
[*]
|
[*]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 2
|
||||||
max_line_length = 120
|
max_line_length = 120
|
||||||
+1
-2
@@ -1,4 +1,3 @@
|
|||||||
/.idea
|
|
||||||
node_modules/
|
node_modules/
|
||||||
target/
|
target/
|
||||||
*.iml
|
dist/
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
System: require('./haxetool/system'),
|
|
||||||
Sdk: require('./haxetool/sdk'),
|
|
||||||
Haxe: require('./haxetool/haxe'),
|
|
||||||
FlashPlayer: require('./haxetool/flashplayer'),
|
|
||||||
RufflePlayer: require('./haxetool/ruffle'),
|
|
||||||
Android: require('./haxetool/android'),
|
|
||||||
AdobeAir: require('./haxetool/adobe_air'),
|
|
||||||
Project: require('./haxetool/project'),
|
|
||||||
};
|
|
||||||
Generated
+2563
-1
File diff suppressed because it is too large
Load Diff
+33
-14
@@ -1,8 +1,31 @@
|
|||||||
{
|
{
|
||||||
"name": "gulp-haxetool",
|
"name": "gulp-haxetool",
|
||||||
|
"type": "module",
|
||||||
"version": "0.2.2",
|
"version": "0.2.2",
|
||||||
"description": "HaXe Tool for Gulp",
|
"description": "HaXe Tool for Gulp",
|
||||||
"main": "index.js",
|
"exports": {
|
||||||
|
".": "./dist/index.mjs",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
|
"scripts": {
|
||||||
|
"build": "tsdown",
|
||||||
|
"dev": "tsdown --watch",
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.shmyga.ru/InfernalGames/gulp-haxetool.git"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"gulp",
|
||||||
|
"haxe"
|
||||||
|
],
|
||||||
|
"author": "shmyga",
|
||||||
|
"license": "MIT",
|
||||||
|
"homepage": "https://git.shmyga.ru/InfernalGames/gulp-haxetool#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ansi-colors": "^1.1.0",
|
"ansi-colors": "^1.1.0",
|
||||||
"async": "^2.6.0",
|
"async": "^2.6.0",
|
||||||
@@ -30,18 +53,14 @@
|
|||||||
"vinyl": "^2.1.0",
|
"vinyl": "^2.1.0",
|
||||||
"vinyl-fs": "^3.0.2"
|
"vinyl-fs": "^3.0.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"devDependencies": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"@types/node": "^26.1.1",
|
||||||
|
"eslint": "^10.12.0",
|
||||||
|
"prettier": "^3.9.10",
|
||||||
|
"tsdown": "0.22.14",
|
||||||
|
"typescript": "^7.0.2"
|
||||||
},
|
},
|
||||||
"repository": {
|
"inlinedDependencies": {
|
||||||
"type": "git",
|
"time-stamp": "1.1.0"
|
||||||
"url": "https://git.shmyga.ru/InfernalGames/gulp-haxetool.git"
|
}
|
||||||
},
|
|
||||||
"keywords": [
|
|
||||||
"gulp",
|
|
||||||
"haxe"
|
|
||||||
],
|
|
||||||
"author": "shmyga",
|
|
||||||
"license": "ISC",
|
|
||||||
"homepage": "https://git.shmyga.ru/InfernalGames/gulp-haxetool#readme"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
module.exports = {
|
||||||
|
System: require("./haxetool/system"),
|
||||||
|
Sdk: require("./haxetool/sdk"),
|
||||||
|
Haxe: require("./haxetool/haxe"),
|
||||||
|
FlashPlayer: require("./haxetool/flashplayer"),
|
||||||
|
RufflePlayer: require("./haxetool/ruffle"),
|
||||||
|
Android: require("./haxetool/android"),
|
||||||
|
AdobeAir: require("./haxetool/adobe_air"),
|
||||||
|
Project: require("./haxetool/project"),
|
||||||
|
};
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "esnext",
|
||||||
|
"lib": ["es2023"],
|
||||||
|
"moduleDetection": "force",
|
||||||
|
"module": "preserve",
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"types": ["node"],
|
||||||
|
"strict": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"declaration": true,
|
||||||
|
"emitDeclarationOnly": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"verbatimModuleSyntax": true,
|
||||||
|
"skipLibCheck": true
|
||||||
|
},
|
||||||
|
"include": ["src"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import { defineConfig } from "tsdown";
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
dts: {
|
||||||
|
tsgo: true,
|
||||||
|
},
|
||||||
|
exports: true,
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user