Skip to content
This repository was archived by the owner on Aug 29, 2021. It is now read-only.

plaxdan/react-topcoat-demo

Repository files navigation

React Topcoat Demo

This repository is a sandbox for the react-topcoat library.

The project builds to a simple app containing each of the Topcoat components. This repo is also being used to experiment with various ways of packaging a webapp with including:

It is built with the following technologies:

Build

Imgur

The project builds to:

  • build/js unminified js
  • build/web standard webapp
  • build/test mocha tests in the browser
  • build/chrome chrome app
  • cordova/www is symlinked to build/chrome

Build tasks:

  • gulp clean deletes ./build
  • gulp builds everything
  • gulp build:web creates ./build/js, ./build/web, and ./build/test
  • gulp build:chrome creates a chrome app in ./build/chrome
  • gulp build:cordova creates platforms (if not exists) and performs cordova perpare

Dist tasks:

  • gulp dist:web package webapp into ./dist/web
  • gulp dist:chrome [--chrome=<path to chrome>] package chrome .crx file into ./dist/chrome
  • gulp dist:android package .apk into ./dist/android TODO: sign the apk
  • (TODO) gulp dist:ios package ios file into ./dist/ios

Run tasks:

Running as a Web App

Run: gulp run:web

Imgur

Running as a Chrome App

Run gulp dist then go to chrome://extensions and either:

  • drag dist/chrome/react-topcoat.crx to the window
  • or load build/chrome as an unpacked extension

Imgur

Running in the iOS Emulator

Run: gulp run:ios --emulator (omit --emulator if you have a device connected)

Imgur

Running in the Android Emulator

Run: gulp run:android --emulator (omit --emulator if you have a device connected)

Imgur

About

Demo app for Topcoat components written in React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •