@sdl/controls-react-wrappers
v0.1.0-59
Published
Exposes controls as React components.
Downloads
350
Keywords
Readme
SDL Controls React Wrappers
This repository consists of React wrappers for Controls.
It allows you to reuse Controls as React components.
Releases
See Releases.
Building
In order to build make sure you have Node.js installed (v6 or higher).
Installing the necessary packages
npm install gulp-cli -g
npm install
Gulp tasks
# Build (debug)
gulp build
# Build everything and setup a server (debug)
gulp serve
# Build everything and setup a server (release)
gulp serve:dist
# Build (release)
gulp
# Test (debug)
# Default browser is PhantomJS
gulp serve:test
gulp serve:test --browsers Chrome
gulp serve:test --browsers "Chrome,IE,Firefox,PhantomJS"
# Test (release)
# Default browser is PhantomJS
gulp test
gulp test --browsers Chrome
gulp test --browsers "Chrome,IE,Firefox,PhantomJS"
# Measure test coverage
# Default browser is PhantomJS
gulp test-coverage
gulp test-coverage --browsers Chrome
gulp test-coverage --browsers "Chrome,IE,Firefox,PhantomJS"
Setting up Visual Studio Code
Preffered IDE for GUI development is Visual Studio Code.
Some extensions you should install (Managing extensions):
- TSLint: get linting feedback as you type
- Editor Config: adds support for the .editorconfig file
- Document this: automatically generates detailed JSDoc comments in TypeScript and javascript files