Options
All
  • Public
  • Public/Protected
  • All
Menu
     

Class FOLDER

An class that represents and manages the public-folder of a project.

Hierarchy

  • FOLDER

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new FOLDER(location: string, age: number): FOLDER
  • Instantiates a new FOLDER instance.

    Parameters

    • location: string

      The path of the folder.

    • age: number

      The cookie-age of the files within the folder.

    Returns FOLDER

Properties

Private location

location: string

The path of the folder.

Private age

age: number

The cookie-age of the files within the folder.

Accessors

root

  • get root(): string
  • Gets the relative root-path of this folder.

    Returns string

fullDir

  • get fullDir(): string
  • Get the full-path of this folder.

    Returns string

dir

  • get dir(): any
  • Get an Array comprised of the project-root and the relative-path of this folder.

    Returns any

index

  • get index(): string
  • Gets the relative-path of the index file in this folder.

    Returns string

Methods

ext

  • ext(ext: string, file: string): string
  • TODO Generates the path of a the specified file with a specified extension.

    Parameters

    • ext: string

      The extension to add.

    • file: string

      The name of the file in this folder.

    Returns string

join

  • join(...parts: string): string
  • Joins the arguments into a path-string.

    Parameters

    • Rest ...parts: string

      The pieces of the path.

    Returns string

path

  • path(...parts: string): string
  • Joins the arguments into a full-path string in this folder.

    Parameters

    • Rest ...parts: string

      The pieces of the path.

    Returns string

html

  • html(file: string): string
  • Retrieves the relative-path of a file within the html folder of this folder.

    Parameters

    • file: string

      The name of the file in said folder.

    Returns string

js

  • js(file: string): string
  • Retrieves the relative-path of a file within the js folder of this folder.

    Parameters

    • file: string

      The name of the file in said folder.

    Returns string

css

  • css(file: string): string
  • Retrieves the relative-path of a file within the css folder of this folder.

    Parameters

    • file: string

      The name of the file in said folder.

    Returns string

comps

  • comps(file: string): string
  • Retrieves the relative-path of a file within the comps folder of this folder.

    Parameters

    • file: string

      The name of the file in said folder.

    Returns string

images

  • images(file: string): string
  • Retrieves the relative-path of a file within the images folder of this folder.

    Parameters

    • file: string

      The name of the file in said folder.

    Returns string

fonts

  • fonts(file: string): string
  • Retrieves the relative-path of a file within the fonts folder of this folder.

    Parameters

    • file: string

      The name of the file in said folder.

    Returns string