@thescaffold/jsx-blobs
v0.2.21
Published
## JSX Blobs
Downloads
40
Readme
Scaffold
JSX Blobs
Introduction
Supported Platforms
- Browser
- Node.js (Javascript/Typescript)
Installation
- NPM
$ npm i @thescaffold/jsx-blobs- CDN
Usage & API
- Initialization
import { init } from '@thescaffold/jsx-blobs';
init({
// config
});- Events
- identify
import { events } from '@thescaffold/jsx-blobs';
events.identify(id, payload, options);- track
import { events } from '@thescaffold/jsx-blobs';
events.track(id, payload, options);- Jobs
- Schedule a new job
import { jobs } from '@thescaffold/jsx-blobs'
jobs.schedule(id, payload, options)- Files
- Upload file
import { files } from '@thescaffold/jsx-blobs'
files.upload(name, files, options)- Forms
- Submit form
import { forms } from '@thescaffold/jsx-blobs'
forms.submit(name, payload, options)- Webhooks
- register webhook
import { webhooks } from '@thescaffold/jsx-blobs'
webhooks.register(name, payload, options)- Logs
- identify
import { events } from '@thescaffold/jsx-blobs';
events.identify(id, payload, options);- track
import { events } from '@thescaffold/jsx-blobs';
events.track(id, payload, options);Commands
DTS scaffolds your new library inside /src.
To run DTS, use:
npm start # or yarn startThis builds to /dist and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.
To do a one-off build, use npm run build or yarn build.
To run tests, use npm test or yarn test.
Custom Commands
# build and sync locally
$ node ./build --env=dev --sync=true
# build and publish
$ node ./build --env=prod --sync=true --version=x.x.xPublish
$ git tag <version e.g v0.0.0>
$ git push origin <version>