0.0.34 ā€¢ Published 3 years ago

frusal v0.0.34

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

CLI script to manage frusal.com workspace access library

Provides statically typed access to the data and schema at frusal.com workspace.

šŸš§ The project is in development and is not available for general public yet.

Facilitates usage of browser, node or flexible frusal libraries. Follow one of those links to see some code examples, or see the tutorials listed below.

Overview

Frusal CLI script has two basic functions:

  1. Initially configures your project through the wizard style interactive UI
  2. Continuously updates local declarations to match online workspace schema

This would enable your application to access frusal.com workspace data and schema (class structure). Both can be changed through the API with type validation.

An IDE like Visual Studio Code would use our live declarations to perform source code static analysis, type validation and auto completion (IntelliSense).

The CLI could be ran in watch mode, which would update the declarations live.

Prerequisites

  • Installed Node.js, which includes npm and npx command line tools.
  • A project using package.json to manage its dependencies.

First Launch

Run in your project directory:

npx frusal

On the first run, frusal CLI takes you though interactive configuration wizard which results in frusal.json file creation. Further adjustments are to be done by editing this file directly.

Some tutorials referenced below, shows examples of the actual UI in use.

Configuration

Once logged on, your access token is stored in a .npm-frusal file typically located in your home directory. Though, the file is first searched up the directory ancestry which allows to override the default location. For instance, it can be added to your source control system.

Other parameters required to generate stubs and declarations are stored in frusal.json. This file is in your project root, next to the package.json. It is initially created on the first run of this CLI, and maintained by directly editing it. The up-to-date set of options could be found in the source code here.

Usage

Common parameters to the CLI are status, login, update, watch and help.

The most important parameter calls to create the actual declarations and stubs (concrete classes to add custom logic in):

npx frusal update

The up-to-date parameter list and functions could be found in the source code here.

Tutorials

Notes

You can access frusal.com workspace by using the library directly. This CLI and declarations it generates is just a convenience which helps to produce better quality code, quicker.

This npm package can be used as a node library itself. It is convenient for use in scripts, like database or schema population scripts. See this usage example.

0.0.34

3 years ago

0.0.33

4 years ago

0.0.32

4 years ago

0.0.31

4 years ago

0.0.30

4 years ago

0.0.29

4 years ago

0.0.28

4 years ago

0.0.27

4 years ago

0.0.26

4 years ago

0.0.25

4 years ago

0.0.24

4 years ago

0.0.21

4 years ago

0.0.23

4 years ago

0.0.20

4 years ago

0.0.18

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago