fbx-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

logo

FancyBox SDK

Description

FancyBox SDK written in Typescript

Table of Contents

Getting started

Step 1: Set up the Development Environment

You need to set up your development environment before you can do anything.

install latest 16.x NodeJS LTS version

Install Node.js and NPM (install latest 16.x LTS version)

  • on OSX use homebrew brew install node
  • on Windows use chocolatey choco install nodejs
  • with nvm nvm install v16

Install yarn globally

yarn install yarn -g

If you work with a mac, we recommend to use homebrew and nvm for the installation.

Husky commands

Create a file in ~/.huskyrc with the following command:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

Step 2: Create new Project

Pull this repository then copy the ./config/configs.json.example file and rename it to ./config/configs.json.

edit this file with... TODO

Step 3: Start your App in development

Go to the project dir and start your app with this yarn script.

yarn start:dev

This starts a local server using nodemon, which will watch for any file changes and will restart the sever according to these changes.

Build application and run locally

Go to the project dir and build your app with this yarn script.

yarn build

Publish on NPM (2FA required)

Add your npm token in the .npmrc file and then run the following command. You will be asked for 2FA code.

npm publish ./

Run test script

NODE_ENV=development node -r ts-node/register ./scripts/test_script.ts

Readme

Keywords

none

Package Sidebar

Install

npm i fbx-sdk

Weekly Downloads

3

Version

0.4.1

License

SEE LICENSE IN LICENSE

Unpacked Size

8.55 MB

Total Files

66

Last publish

Collaborators

  • tommaso.berlose
  • gfoiani
  • michele.tedeschi