Multiplatform Angular 2 project (Web, Mobile and Desktop).
Based (forked) on https://github.com/mgechev/angular-seed
Inspired on https://github.com/NathanWalker/angular-seed-advancedCheck those links for more details about the seed.
- Web
- Hybrid Mobile (Cordova)
- Desktop (Cordova)
- Test Web
- Test Browser (Cordova)
- Test Windows (Cordova)
- Test Android (Cordova)
- Test iOS (Cordova)
- Test OSx (Cordova)
- Test Ubuntu (Cordova)
- Test dev build
- Watch dev build for Cordova
- Test prod build
- Test others dev environment (Non Windows)
- Add Ionic2
With Template SB Admin https://github.com/jvitor83/angular-seed-hybrid-admin
- GIT: Have installed or Install GIT: https://git-scm.com/downloads
- NODE: Have installed or Install NODE (5.XX): https://nodejs.org/en/download/releases/
# Clone this repository
git clone https://github.com/jvitor83/angular-seed-hybrid-admin
cd angular-seed-hybrid-admin
# Install global dependencies
npm install --global cordova typescript ts-node gulp rimraf browser-sync
# Install the project's dependencies
npm install
At some cases is good to consider using Crosswalk for better compatibility and performance
# At root folder cd src/cordova cordova plugin add cordova-plugin-crosswalk-webview --save
PLATFORM | GUIDE (Tools, Sdk, etc) | INSTALL | RUN |
---|---|---|---|
Web | npm run start |
||
Android | Platform Guide | npm run install.android |
npm run start.android |
IOS | Platform Guide | npm run install.ios |
npm run start.ios |
Windows | Platform Guide | npm run install.windows |
npm run start.windows |
OSx | Platform Guide | npm run install.osx |
npm run start.osx |
Ubuntu (Linux) | Platform Guide | npm run install.ubuntu |
npm run start.ubuntu |
Browser | npm run install.browser |
npm run start.browser |
├── src
│ ├── client <- source code of the application
│ │ ├── app <- angular components
│ │ ├── assets
│ │ ├── css
│ └── cordova <- cordova project
The
src/cordova/app
directory contains two symbolic links, one tosrc/client/app
and another tosrc/client/assets
, this allow to reuse the same files from within those folders from the web build at the cordova build.
You can follow the Angular change log here.
MIT