-
Notifications
You must be signed in to change notification settings - Fork 0
BlueOak Quickstart Guide
Andre Asselin edited this page Dec 23, 2016
·
1 revision
- git
- NodeJS (4.2 or higher)
- Use
node -vto check your current version. - On a Mac, use
sudo npm install -g nand thensudo n stableto upgrade your version of node. Note: You will need to donpm installagain on any node projects you have on your system to reinstall native code modules compatible with the new version of node you installed. - WARNING: The newest version of NodeJS may cause issues with gulp. It is recommended to install the Long Term Support version.
- Use
- npm (3.5.2)
- yeoman (1.8)
- gulp (3.9.0)
- bower (1.5.2)
- Cordova (5.4.1) -If you plan to create a hybrid Cordova app
- ios-sim
- ios-deploy (may need to use --unsafe-perm flag)
- MFP (7.1) -If you plan to create a hybrid IBM MobileFirst Platform app
- Clone the
generator-blueoakgit repository- run
git clone https://github.com/PointSource/generator-blueoak
- run
- Navigate to the
[git_repo_name]/blueoakdirectory - run
npm link. Note: You might needsudohere. - run
yo --help- Verify that everything installed. (You should see the 'blueoak' generator and its sub-generators)
- Create a new directory for the project you would like to generate
- Navigate to your new directory
- run
yo blueoak- This will start the BlueOak project generator
- Complete the subsequent prompts to customize your new project
- Note: See Troubleshooting if you run into issues with this command.
- run
yo --helpto see a list of blueoak sub-generators. These can be used to create a new asset for your project.- ex.
yo blueoak:controller [name]will create a new AngularJS Controller in[project_name]/client/src/app/ - ex.
yo blueoak:service [name]will create a new AngularJS Service[project_name]/client/src/app/
- ex.
- Note: For more information on the BlueOak sub-generators, see the list of sub-generators
- To build and deploy a SPA
- Navigate to the
[project_name]/clientdirectory - run
gulp serve-spa
- Navigate to the
- To build/deploy iOS
- run
gulp serve-ios - IMPORTANT: You must first disable bitcode on iOS MFP projects or the builds will fail.
- To do this: On the Xcode Build Settings tab, in the Build Options group, set
Enable BitcodetoNo - See: http://www-01.ibm.com/support/docview.wss?uid=swg21966655&aid=1
- To do this: On the Xcode Build Settings tab, in the Build Options group, set
- IMPORTANT: Add this line to your
Build Settings -> Search Paths -> Header Search Paths:-
"$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include"- DO NOT replace the existing line that looks similar, that is still needed to be backwards compatible with Xcode 7 and Xcode 6.4.
-
- run
- To build/deploy android
- run
gulp serve-android
- run
- For a full list of provided gulp commands, see Usage#Gulp