Go to repository

Interface FileDefinition

Models a project type's file definition and the expected behavior of the file.

interface FileDefinition {
    copyOnEject: boolean;
    copyOnInit: boolean;
    copyOnUpdate: boolean;
    gobstonesScriptsLocation: string[];
    isOverridable: boolean;
    name: keyof ProjectTypeDefinition;
    projectLocation: string[];
    requiresReferenceUpdate: boolean;
    requiresTestDataInjection: boolean;
}

Hierarchy (view full)

Properties

copyOnEject: boolean

Whether this file should be copied on project ejection.

copyOnInit: boolean

Whether this file should be copied on project initialization.

copyOnUpdate: boolean

Whether this file should be copied on project update.

gobstonesScriptsLocation: string[]

The location of one or more files in the gobstones-script's path.

isOverridable: boolean

Whether this file represents tooling configuration files that can be overwritten with local configurations.

The internal name for this file descriptor. Will automatically be set to the key name when creating the list of files.

projectLocation: string[]

The location that the files should have in the local project's folder.

requiresReferenceUpdate: boolean

Whether this file contains reference to the generic project name that should be updates.

requiresTestDataInjection: boolean

Whether this file requires the data for testing (verdaccio server data) to be inserted to it.