Skip to content

cvan/websdk

Repository files navigation

WebSDK

The Universal SDK for Web Applications.

Features

Local development

Installation

  1. Install Node.js (which includes npm), if you haven't already.

  2. Clone this repository (WebVRRocks/moonrise):

    mkdir -p websdk
    git clone git@github.com:cvan/websdk.git websdk/websdk
  3. In the root directory of the cloned repository of the project, install the Node dependencies:

    cd websdk/websdk/
    npm install
  4. From the websdk/websdk/ directory, run these commands:

    # Start application for local development (w/ live-reloading, error handling).
    npm start
    
    # Generate packaged modules for distribution.
    npm run dist

Process

ES6 source files
       |
       |
    webpack
       |
       +--- babel, eslint
       |
  ready-to-use
     library
  in UMD format

NOTE: The library must be built before publishing. The files under the dist folder are the ones that should be distributed.

Building

To install the project's latest Node dependencies:

npm install

To generate the minified version of the library:

npm run build

Development

When all the latest dependencies are installed, run npm start (or npm run dev). This will generate a non-minified version of the library and will run a watcher so you get the compilation on file change.

Tests

To run the tests:

npm run test

Scripts

  • npm run dist – builds the distribution-ready production version of the library under the dist folder.
  • npm run build – builds the production version of the library under the build folder.
  • npm start – builds the development version of the library and runs a file watcher.
  • npm run test – runs tests.
  • npm run test:watch – runs tests in a continuous watch mode.

Acknowledgments

Thank you to the following projects and individuals:

Contributing

Contributions are very welcome!

License

All code and content within this source-code repository is licensed under the Creative Commons Zero v1.0 Universal license (CC0 1.0 Universal; Public Domain Dedication).

You can copy, modify, distribute and perform this work, even for commercial purposes, all without asking permission.

For more information, refer to these following links:

About

The Universal SDK for Web Applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published