npm install -g cordova
npm install -g gulp
notepad
, Visual Studio Code; commercial: Sublime Text, WebStorm)The gulp tasks will build iOS, Windows UWP, Android apps as well as desktop applications for Mac OSX, Windows and Linux. To get it working, please do the following:
npm i --no-progress
within the root folder of this repositorygulp watch-web
to start a live server, which is best when developing the appgulp watch-cordova-ios
to orchestrate the cordova ios app with live reloading. When this task runs, go to dist/mobile
and use cordova run ios
to open a simulator which will live reload.gulp watch-electron
to start a live reloading electron appgulp
to build the web appgulp build-all
to build all apps in debug modegulp build-web
to build the web appgulp build-cordova
to build all phone related appsgulp build-electron
to build all desktop related appsUse gulp watch-web
as mentioned above to start the browser version of BoardZ.
To run the cordova project, open a terminal and point it to dist/mobile
. Use one of the following commands to start:
cordova run ios
: Runs the iOS version of BoardZ. Requires a Maccordova run android
: Runs the Android version of BoardZ. Requires Android SDK to be installed and at least a simulatorIf a device is connected, the run
command will automatically deploy the App to your device, so you can start it directly on your device.
To start the electron packaged app, go to dist/desktop/build
and open one of the directories suiting your current operating system. Then open the executable as used to.
If you want to change Android's SDK version, open cordova/config.xml and search for android-minSdkVersion
or android-targetSdkVersion
:
android-minSdkVersion
: An integer designating the minimum API Level required for the application to run.android-targetSdkVersion
: An integer designating the API Level that the application targets. If not set, the default value equals that given to minSdkVersion.