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:
- Standard webapp
- Chrome app
- Android app
- iOS app
It is built with the following technologies:
- App: ReactJS / Topcoat / SASS
- Tests: Mocha / Chai / SinonJS
- Build: GulpJS / Bower / Browserify / Cordova / MobileChromeApps
- Note: Will likely be taking a look at alternatives to Browserify such as Webpack
The project builds to:
build/jsunminified jsbuild/webstandard webappbuild/testmocha tests in the browserbuild/chromechrome appcordova/wwwis symlinked tobuild/chrome
Build tasks:
gulp cleandeletes./buildgulpbuilds everythinggulp build:webcreates./build/js,./build/web, and./build/testgulp build:chromecreates a chrome app in./build/chromegulp build:cordovacreates platforms (if not exists) and performs cordova perpare
Dist tasks:
gulp dist:webpackage webapp into./dist/webgulp dist:chrome[--chrome=<path to chrome>]package chrome.crxfile into./dist/chromegulp dist:androidpackage.apkinto./dist/androidTODO: sign the apk- (TODO)
gulp dist:iospackage ios file into./dist/ios
Run tasks:
gulp run:testruns mocha tests in consolegulp run:webruns the app athttp://localhost:3000and the mocha test server athttp://localhost:3000/test.htmlgulp run:android[--emulator]runs the androidgulp run:ios[--emulator]runs the ios app
Run: gulp run:web
Run gulp dist then go to chrome://extensions and either:
- drag
dist/chrome/react-topcoat.crxto the window - or load
build/chromeas an unpacked extension
Run: gulp run:ios --emulator (omit --emulator if you have a device connected)
Run: gulp run:android --emulator (omit --emulator if you have a device connected)




