Compare commits
6
Commits
2.0.0
...
57f7e88fab
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
57f7e88fab | ||
|
|
7f62df2364 | ||
|
|
6622d53167 | ||
|
|
561dd99cba | ||
|
|
bc77380aba | ||
|
|
a20e98d730 |
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "gulp-haxetool",
|
"name": "gulp-haxetool",
|
||||||
"version": "2.0.0",
|
"version": "2.0.3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "gulp-haxetool",
|
"name": "gulp-haxetool",
|
||||||
"version": "2.0.0",
|
"version": "2.0.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ajv": "^8.20.0",
|
"ajv": "^8.20.0",
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "gulp-haxetool",
|
"name": "gulp-haxetool",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.0.0",
|
"version": "2.0.3",
|
||||||
"description": "HaXe Tool with Gulp",
|
"description": "HaXe Tool with Gulp",
|
||||||
"exports": {
|
"exports": {
|
||||||
"./bin/cli": "./dist/bin/cli.mjs",
|
"./bin/cli": "./dist/bin/cli.mjs",
|
||||||
|
|||||||
+1
-1
@@ -5,5 +5,5 @@ const __filename = fileURLToPath(import.meta.url);
|
|||||||
const __dirname = path.dirname(__filename);
|
const __dirname = path.dirname(__filename);
|
||||||
|
|
||||||
export default (name: string): string => {
|
export default (name: string): string => {
|
||||||
return path.join(__dirname, "..", "assets", name);
|
return path.join(__dirname, "assets", name);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ export default new Eta({
|
|||||||
autoFilter: true,
|
autoFilter: true,
|
||||||
filterFunction: (val: unknown): string => (val === null || val === undefined ? "" : String(val)),
|
filterFunction: (val: unknown): string => (val === null || val === undefined ? "" : String(val)),
|
||||||
useWith: true,
|
useWith: true,
|
||||||
views: path.join(__dirname, "..", "template"),
|
views: path.join(__dirname, "template"),
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -81,7 +81,7 @@ export class Haxe extends Sdk {
|
|||||||
prepare() {
|
prepare() {
|
||||||
return Promise.all([this.neko.prepare(), super.prepare()]).then(() => {
|
return Promise.all([this.neko.prepare(), super.prepare()]).then(() => {
|
||||||
fs.copyFileSync(
|
fs.copyFileSync(
|
||||||
path.resolve(import.meta.dirname, "..", "template/haxe/activate"),
|
path.resolve(import.meta.dirname, "template/haxe/activate"),
|
||||||
path.resolve(this.path, "activate"),
|
path.resolve(this.path, "activate"),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -73,7 +73,7 @@ export class Neko extends Sdk {
|
|||||||
prepare() {
|
prepare() {
|
||||||
return Promise.all([super.prepare()]).then(() => {
|
return Promise.all([super.prepare()]).then(() => {
|
||||||
fs.copyFileSync(
|
fs.copyFileSync(
|
||||||
path.resolve(import.meta.dirname, "..", "template/neko/activate"),
|
path.resolve(import.meta.dirname, "template/neko/activate"),
|
||||||
path.resolve(this.path, "activate"),
|
path.resolve(this.path, "activate"),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export class FlashHTMLPacker extends Packer {
|
|||||||
const target = this.targetPath;
|
const target = this.targetPath;
|
||||||
const index = template.render("flash/index.html", this.config);
|
const index = template.render("flash/index.html", this.config);
|
||||||
fs.writeFileSync(path.resolve(target, "index.html"), index);
|
fs.writeFileSync(path.resolve(target, "index.html"), index);
|
||||||
fs.copyFileSync(path.resolve(import.meta.dirname, "..", "template/flash/swf.js"), path.resolve(target, "swf.js"));
|
fs.copyFileSync(path.resolve(import.meta.dirname, "template/flash/swf.js"), path.resolve(target, "swf.js"));
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user