This commit is contained in:
Sanchime 2022-05-02 17:11:27 +08:00
parent b92bffffb1
commit a9ba5c8093
9 changed files with 0 additions and 96 deletions

View File

@ -1,5 +0,0 @@
namespace {{namespace}};
public class {{name}}
{
}

View File

@ -1,3 +0,0 @@
export class {{name}} {
}

View File

@ -1,9 +0,0 @@
Imports System
Namespace {{namespace}}
Public Class {{name}}
End Class
End Namespace

View File

@ -1,3 +0,0 @@
export default {{name}} {
}

View File

@ -1,5 +0,0 @@
namespace {{namespace}};
public enum {{name}}
{
}

View File

@ -1,5 +0,0 @@
namespace {{namespace}};
public interface {{name}}
{
}

View File

@ -1,3 +0,0 @@
export interface {{name}} {
}

View File

@ -1,46 +0,0 @@
{
"templates": [
{
"name": "Class",
"extension": "cs",
"file": "./class.cs-template",
"parameters": "./template-parameters.js"
},
{
"name": "Interface",
"extension": "cs",
"file": "./interface.cs-template",
"parameters": "./template-parameters.js"
},
{
"name": "Enum",
"extension": "cs",
"file": "./enum.cs-template",
"parameters": "./template-parameters.js"
},
{
"name": "Class",
"extension": "ts",
"file": "./class.ts-template",
"parameters": "./template-parameters.js"
},
{
"name": "Interface",
"extension": "ts",
"file": "./interface.ts-template",
"parameters": "./template-parameters.js"
},
{
"name": "Default",
"extension": "ts",
"file": "./default.ts-template",
"parameters": "./template-parameters.js"
},
{
"name": "Class",
"extension": "vb",
"file": "./class.vb-template",
"parameters": "./template-parameters.js"
}
]
}

View File

@ -1,17 +0,0 @@
var path = require("path");
module.exports = function(filename, projectPath, folderPath) {
var namespace = "Unknown";
if (projectPath) {
namespace = path.basename(projectPath, path.extname(projectPath));
if (folderPath) {
namespace += "." + folderPath.replace(path.dirname(projectPath), "").substring(1).replace(/[\\\/]/g, ".");
}
namespace = namespace.replace(/[\\\-]/g, "_");
}
return {
namespace: namespace,
name: path.basename(filename, path.extname(filename))
}
};