UNPKG

@neo-one/server-plugin-project

Version:

NEO•ONE server plugin for project functionality.

63 lines (62 loc) 1.93 kB
import { CodegenFramework } from '@neo-one/smart-contract-codegen'; export interface BuildTaskListOptions { readonly command: 'build'; readonly rootDir: string; } export interface ResetTaskListOptions { readonly command: 'reset'; readonly projectID?: string; readonly rootDir?: string; } export declare type ExecuteTaskListOptions = BuildTaskListOptions | ResetTaskListOptions; export interface NetworkRequestOptions { readonly type: 'network'; readonly projectID: string; } export interface SourceMapsRequestOptions { readonly type: 'sourceMaps'; readonly projectID: string; } export interface NEOTrackerRequestOptions { readonly type: 'neotracker'; readonly projectID: string; } export declare type RequestOptions = NetworkRequestOptions | SourceMapsRequestOptions | NEOTrackerRequestOptions; export declare type CodegenLanguage = 'typescript' | 'javascript'; export interface ProjectConfig { readonly paths: { readonly contracts: string; readonly generated: string; }; readonly codegen: { readonly language: CodegenLanguage; readonly framework: CodegenFramework; readonly browser: boolean; }; } export declare const projectConfigSchema: { paths: { contracts: { readonly format: StringConstructor; readonly default: string; }; generated: { readonly format: StringConstructor; readonly default: string; }; }; codegen: { language: { readonly format: readonly ["typescript", "javascript"]; readonly default: "typescript"; }; framework: { readonly format: readonly ["none", "react", "angular", "vue"]; readonly default: "none"; }; browser: { readonly format: BooleanConstructor; readonly default: false; }; }; };