<!--
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
-->
# Cordova Hooks
This directory may contain scripts used to customize cordova commands. This
directory used to exist at `.cordova/hooks`, but has now been moved to the
project root. Any scripts you add to these directories will be executed before
and after the commands corresponding to the directory name. Useful for
integrating your own build systems or integrating with version control systems.
__Remember__: Make your scripts executable.
## Hook Directories
The following subdirectories will be used for hooks:
after_build/
after_compile/
after_docs/
after_emulate/
after_platform_add/
after_platform_rm/
after_platform_ls/
after_plugin_add/
after_plugin_ls/
after_plugin_rm/
after_plugin_search/
after_prepare/
after_run/
after_serve/
before_build/
before_compile/
before_docs/
before_emulate/
before_platform_add/
before_platform_rm/
before_platform_ls/
before_plugin_add/
before_plugin_ls/
before_plugin_rm/
before_plugin_search/
before_prepare/
before_run/
before_serve/
pre_package/ <-- Windows 8 and Windows Phone only.
## Script Interface
All scripts are run from the project's root directory and have the root directory passes as the first argument. All other options are passed to the script using environment variables:
* CORDOVA_VERSION - The version of the Cordova-CLI.
* CORDOVA_PLATFORMS - Comma separated list of platforms that the command applies to (e.g.: android, ios).
* CORDOVA_PLUGINS - Comma separated list of plugin IDs that the command applies to (e.g.: org.apache.cordova.file, org.apache.cordova.file-transfer)
* CORDOVA_HOOK - Path to the hook that is being executed.
* CORDOVA_CMDLINE - The exact command-line arguments passed to cordova (e.g.: cordova run ios --emulate)
If a script returns a non-zero exit code, then the parent cordova command will be aborted.
## Writing hooks
We highly recommend writting your hooks using Node.js so that they are
cross-platform. Some good examples are shown here:
[http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/](http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/)
没有合适的资源?快使用搜索试试~ 我知道了~
基于Cordova的webapp管理浏览手机应用源码
共218个文件
scss:55个
png:51个
js:44个
需积分: 9 18 下载量 24 浏览量
2016-09-22
18:15:00
上传
评论 1
收藏 3.44MB ZIP 举报
温馨提示
Otaku!基于ionic+AngularJS+Cordova技术制作的html5移动应用中心 开源代码。设置分只为给予一个支持作者的机会 github:https://github.com/moonrailgun/otaku-for-cordova.git
资源推荐
资源详情
资源评论
收起资源包目录
基于Cordova的webapp管理浏览手机应用源码 (218个子文件)
.bowerrc 29B
ionic.css 247KB
ionic.min.css 195KB
font-awesome.css 34KB
font-awesome.min.css 28KB
base.css 19KB
project_base.css 16KB
default.css 6KB
normalize.css 2KB
radialindicator.css 850B
style.css 848B
.editorconfig 242B
ionicons.eot 118KB
fontawesome-webfont.eot 75KB
icomoon.eot 5KB
.gitignore 156B
index.html 14KB
shop-item-detail.html 4KB
index.html 2KB
assistiveTouch.html 2KB
tab-dash.html 1KB
tabs.html 1KB
tab-shop.html 887B
readme.html 844B
tab-account.html 657B
tab-download.html 375B
index.html 137B
1.jpg 25KB
2.jpg 18KB
ionic.bundle.js 2.29MB
angular.js 1.09MB
ionic.bundle.min.js 497KB
ionic.js 460KB
ionic-angular.js 449KB
ng-cordova.js 199KB
ionic.min.js 163KB
angular-ui-router.js 153KB
angular.min.js 152KB
angular-animate.js 146KB
ionic-angular.min.js 122KB
base.js 107KB
ng-cordova.min.js 91KB
jquery-3.1.0.min.js 84KB
angular-resource.js 31KB
angular-ui-router.min.js 28KB
angular-sanitize.js 25KB
project_base.js 25KB
angular-animate.min.js 25KB
radialIndicator.js 12KB
angular-sanitize.min.js 6KB
appService.js 5KB
shopService.js 5KB
demo.js 4KB
angular-resource.min.js 4KB
ShopController.js 4KB
radialIndicator.min.js 4KB
app.js 4KB
DashController.js 3KB
010_add_platform_class.js 3KB
angular.radialIndicator.js 2KB
010_register_plugin.js 2KB
downloadService.js 2KB
gulpfile.js 1KB
AccountController.js 939B
020_remove_sass_from_platforms.js 918B
010_deregister_plugin.js 867B
010_install_plugins.js 749B
init_directories.js 638B
localService.js 636B
utilsService.js 212B
DownloadController.js 153B
MainController.js 102B
mainService.js 39B
shop-item-list.json 1KB
package.json 1KB
catalog.json 328B
ionic.config.json 161B
bower.json 118B
package.json 102B
version.json 100B
package.json 83B
.io-config.json 82B
icons.less 45KB
variables.less 20KB
mixins.less 2KB
path.less 771B
animated.less 713B
rotated-flipped.less 622B
bordered-pulled.less 585B
font-awesome.less 495B
stacked.less 476B
core.less 452B
list.less 377B
larger.less 370B
fixed-width.less 119B
screen-reader.less 118B
README.md 3KB
README.md 1KB
FontAwesome.otf 122KB
3.PNG 208KB
共 218 条
- 1
- 2
- 3
资源评论
moonrailgun
- 粉丝: 24
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功