mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-12-19 05:19:42 +08:00
a641f4d4bddc22da64b28685ecc79ed1ef535160
Ionic 2: Developer Preview
Ionic 2 is the next generation of Ionic, the open-source mobile app development SDK that makes it easy to build top quality mobile apps with web technologies.
Ionic 2 is based on the new 2.x version of AngularJS, and comes with many significant performance, usability, and feature improvements.
Current Angular 2 known issues:
- Angular 2 is still in alpha and is not production ready
- Angular team has first focused on developing what the core of Angular 2 "is"
- Angular 2 filesize has not been optimized for minification yet
- Angular 2 bootstrap time has not been optimized yet
- As Angular 2 reaches beta there will be significant performance improvements
ES6/Typescript
- Ionic's source is written using Typescript
- Ionic apps can be written in ES6
- Typescript is an optional feature to be used at the developers discretion
- Ionic 2 starters come with the necessary build tools to transpile ES6/Typescript
CSS Attribute Selectors:
- Simple
- Smaller markup
- Easier to read and understand
- Not an issue for today's mobile browsers
- No performance impacts have been found
Ionic 2 Starter Project
https://github.com/driftyco/ionic2-starter
Building & Running Ionic Source
npm installgulp watch- Go to http://localhost:8000/e2e/
- Stay cool
Building & Running Component Demos
- Clone the
ionic-siterepo inionic2/dist/:git clone git@github.com:driftyco/ionic-site.git
- You may need to remove the existing directory first:
rm -rf ionic2/dist/ionic-site
- Run
gulp demos:allfrom the top level directory - Navigate to
ionic2/dist/ionic-siteand runnpm install - Run
gulp watchin this directory - A browser should launch at
http://localhost:3000at which point you can navigate tohttp://localhost:3000/docs/v2/components/ - Any time you make a change to the demos repeat step 2
Running Snapshot
- Install Protractor:
npm install -g protractor - Export
IONIC_SNAPSHOT_KEY(get from someone) - Run
gulp snapshot
Running Tests
gulp karma
Distribution
Description
A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
angularcapacitorframeworkfrontendioniciosjavascriptmaterial-designmobilepwareactstencilstenciljstypescriptvuewebwebcomponents
Readme
MIT
2.5 GiB
Languages
TypeScript
60.5%
HTML
25.2%
SCSS
10.7%
JavaScript
2%
Vue
1%
Other
0.6%