You've already forked AstralRinth
forked from didirus/AstralRinth
Fix packaging to correctly handle utils/
This commit is contained in:
10
src/plugins/generator/index.d.ts
vendored
10
src/plugins/generator/index.d.ts
vendored
@@ -1,10 +0,0 @@
|
||||
export default function Generator(options: PluginOptions): {
|
||||
name: string
|
||||
buildStart(): Promise<void>
|
||||
}
|
||||
export interface PluginOptions {
|
||||
projectColors: boolean
|
||||
landingPage: boolean
|
||||
gameVersions: boolean
|
||||
tags: boolean
|
||||
}
|
||||
@@ -12,6 +12,21 @@ const API_URL =
|
||||
// Time to live: 7 days
|
||||
const TTL = 7 * 24 * 60 * 60 * 1000
|
||||
|
||||
/**
|
||||
* @typedef {Object} PluginResult
|
||||
* @property {string} name
|
||||
* @property {() => Promise<void>} buildStart
|
||||
*/
|
||||
|
||||
/**
|
||||
* Generate JSON data from the backend
|
||||
* @param {Object} options Plugin options
|
||||
* @param {boolean} options.projectColors
|
||||
* @param {boolean} options.landingPage
|
||||
* @param {boolean} options.gameVersions
|
||||
* @param {boolean} options.tags
|
||||
* @returns {PluginResult}
|
||||
*/
|
||||
export default function Generator(options) {
|
||||
return {
|
||||
name: 'rollup-plugin-omorphia-generator',
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export declare function gameVersions(API_URL: string): Promise<void>
|
||||
@@ -1 +0,0 @@
|
||||
export declare function landingPage(API_URL: string): Promise<void>
|
||||
@@ -1 +0,0 @@
|
||||
export declare function projectColors(API_URL: string): Promise<void>
|
||||
1
src/plugins/generator/outputs/tags.d.ts
vendored
1
src/plugins/generator/outputs/tags.d.ts
vendored
@@ -1 +0,0 @@
|
||||
export declare function tags(API_URL: string): Promise<void>
|
||||
Reference in New Issue
Block a user