Build system reference - BlueOakJS/generator-blueoak GitHub Wiki

Gulp tasks

  • gulp build-spa [-d <env>] [--release | --debug] Builds the SPA.

  • gulp serve-spa [-d <env>] [--release | --debug] Builds the SPA, watches the source for changes, and starts a web server.

  • gulp build-android [-d <env>] [--release | --debug] Builds the Android app.

  • gulp build-android-nowww [-d <env>] [--release | --debug] Builds the Android app without first building the web assets.

  • gulp serve-android [-d <env>] [--release | --debug] [--device] Builds the Android app, watches the source for changes, and starts a web server.

  • gulp build-ios [-d <env>] [--release | --debug] [--profile <UUID>] Builds the iOS app.

  • gulp build-ios-nowww [-d <env>] [--release | --debug] [--profile <UUID>] Builds the iOS app without first building the web assets.

  • gulp serve-ios [-d <env>] [--release | --debug] [--profile <UUID>] [--device] Builds the iOS app, watches the source for changes, and starts a web server.

  • gulp clean Deletes contents of the dist/ directory.

  • gulp create-config [-d <env>] Writes the app.config.js file into the dist/ directory based on the environment selected with the -d switch and the contents of the app.config.json file.

  • gulp list-provisioning-profiles Lists the provisioning profiles installed on the logged in user's account (Mac only).

Command Line Options

  • -d <env> Uses the environment specified to select the configuration for the app. If not specified, the default environment is “local”.

  • --debug Builds for development. Overrides the build type specified in the config file.

  • --release Builds for production. Web assets are concatenated and minified. App builds are signed for production deployment. Overrides the build type specified in the config file.

  • --noshell For use with serve-android or serve-ios. Skips rebuilding the shell Cordova/MFP app. Starts browsersync, rebuilds the SPA, and reloads attached browsers. The user is responsible for launching the shell app on the device or emulator. Note that if the IP address of your development system has changed since the last time you built and deployed the shell app, it will not be able to connect and must be rebuilt.

  • --profile <name>|<UUID> Allows specifying the iOS provisioning profile by name or UUID. Note: MFP builds require the name to be specified, and don't allow specifying the UUID.

  • --device Run the Android / iOS app on the attached device. If not specified, will run the app on the emulator.

  • --storepass Password for the Android release build's keystore.

  • --keypass Password for the Android release build's key.

  • --pushpass Password for the iOS push notification certificate (used only in the MFP environment).

More information on the gulp tasks in the User Guide.

Environment variables

  • KEYSTORE_PASSWORD Password for the Android release build's keystore.

  • KEY_PASSWORD Password for the Android release build's key.

  • PUSH_PASSWORD Password for the iOS push notification certificate (used only in the MFP environment).

⚠️ **GitHub.com Fallback** ⚠️