0.1.1 • Published 1 year ago

event-planner-lib v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Non-UI library for the event planner project

!WARNING In order to compile this you'll need access to @terrestrialorigin/core (and in the future, possibly other @terrestrialorigin/* libraries). Those are private libraries at this time. There's a chance they might become available in the future.

If you need to compile and use this yourself and you don't have access to @terrestrialorigin/core just remove the @terrestrialorigin/core dependency and use this for the Item interface (change the imports to use that instead):

export class Task implements Item {
    id?: string;
    name?: string;
    description?: string;
    active?: boolean;
    created?: Date;
    modified?: Date;
    parents?: string[];

    constructor(name?: string, description?: string) {
        this.name = name;
        this.description = description;
        this.active = true;
        this.created = new Date();
        this.modified = new Date();
        this.parents = [];
    }
}

Don't forget to install the dependencies

npm install

While developing run:

npm run dev

To run the tests:

npm run test

Build the project

npm run build
0.1.1

1 year ago