The Universal SDK for Web Applications.
- Written using Webpack (version 2).
- JavaScript source code written in ES6.
- Exports an UMD format, so the library works everywhere.
- ES6-based test setup using Mocha and Chai.
- Linting with Semistandard.
-
Install Node.js (which includes npm), if you haven't already.
-
Clone this repository (
WebVRRocks/moonrise
):mkdir -p websdk git clone git@github.com:cvan/websdk.git websdk/websdk
-
In the root directory of the cloned repository of the project, install the Node dependencies:
cd websdk/websdk/ npm install
-
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
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.
To install the project's latest Node dependencies:
npm install
To generate the minified version of the library:
npm run build
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.
To run the tests:
npm run test
npm run dist
– builds the distribution-ready production version of the library under thedist
folder.npm run build
– builds the production version of the library under thebuild
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.
Thank you to the following projects and individuals:
- `webpack-library-starter (Licensed under MIT)
Contributions are very welcome!
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:
- a copy of the license in this source-code repository
- the human-readable summary of the full text of the legal code
- the full text of the legal code