1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | { //package.json "name": "iamsaying", "version": "0.0.1", "author": "Ionic Framework", "homepage": "http://ionicframework.com/", "private": true, "scripts": {// 可运行的任务 "clean": "ionic-app-scripts clean", "build": "ionic-app-scripts build", "lint": "ionic-app-scripts lint", "ionic:build": "ionic-app-scripts build", "ionic:serve": "ionic-app-scripts serve" } //更多 } |
1 2 3 4 5 6 7 8 | //gulpfile.babel.js gulp.task('bower', function () { return gulp.src(paths.views.main) .pipe(wiredep({ directory: yeoman.app + '/bower_components' })) .pipe(gulp.dest(yeoman.app)); }); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | <!-- build:js(.) scripts/vendor.js --> <!-- bower:js --> <script src="bower_components/jquery/dist/jquery.js"></script> <script src="bower_components/jquery-ui/jquery-ui.js"></script> <script src="bower_components/angular/angular.js"></script> <script src="bower_components/bootstrap/dist/js/bootstrap.js"></script> <!-- endbower --> <!-- endbuild --> <!-- build:js(app) scripts/scripts.js --> <!-- 3rd party packages should lay before scripts in projects--> <script src="build-scripts/app.js"></script> <script src="build-scripts/controllers/main.js"></script> <script src="build-scripts/controllers/task/management.js"></script> <script src="build-scripts/controllers/label/management.js"></script> <script src="build-scripts/controllers/system/management.js"></script> <!-- endbuild --> |
1 2 3 4 | import { AboutPage } from '../pages/about/about'; import { ContactPage } from '../pages/contact/contact'; import { HomePage } from '../pages/home/home'; import { TabsPage } from '../pages/tabs/tabs'; |
1 2 3 4 5 6 7 8 9 10 11 12 | export class MyApp { rootPage:any = TabsPage; constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) { platform.ready().then(() => { // Okay, so the platform is ready and our plugins are available. // Here you can do any higher level native things you might need. statusBar.styleDefault(); splashScreen.hide(); }); } } |
1 2 3 4 | > npm install -g @angular/cli > ng new project > cd project > ng serve |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |