Skip to content

ekreative/ionic-starter-kit

Repository files navigation

IonicKit from eKreative

JavaScript Style Guide

Get started

Setup (required Node 4.x)

cp www/js/main/config.<dev or release>.js.dist www/js/main/config.js

yarn

Add a platform

ionic platform add <platform>

Run on a device

ionic run <platform>

Run a dev server

yarn serve

Create a build

ionic build <platform>

Emulating in real time

ionic emulate <platform> -l -c -s

Tests

yarn test

This ionicKit includes:

  1. Added and installed ngCordova - a collection of AngularJS extensions on top of the Cordova API;

  2. API service for different requests ( in config.xml and <meta http-equiv="Content-Security-Policy" ...> in index.html) - more info here cordova-plugin-whitelist;

  3. Gulp tasks with ionic’s commands: serve, build, run:

  • sourcemaps for scss and js files;

  • js-files manipulations: sourcemaps, babel, ngAnnotate, concat, uglify -> so now we have only 1 js-file in index.html.