npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

appstartup

v1.0.15

Published

此node模块是用来,创建一个Cordova模板工程中。主要功能有:检查当前系统的环境是否满足要求、创建Cordova工程、添加Android和iOS工程、添加基础插件、自动生成一个默认的Android的keystore签名.SDK需要下载Android Support Repository

Downloads

1

Readme

AppStartup

此node模块是用来,创建一个Cordova模板工程中。主要功能有:检查当前系统的环境是否满足要求、创建Cordova工程、添加Android和iOS工程、添加基础插件、自动生成一个默认的Android的keystore签名.SDK需要下载Android Support Repository

注:第一次运行需要下载较多库文件,请保持网络畅通与耐心!

需要的环境

node >=6.0.0

使用方法

安装node后,在命令行中使用 npm install -g appstartup

完成安装后,在命令行中执行 appstart。 在等待执行完毕后,就会生成一个工程。

图标和启动页

请将res/android和res/ios下的图片以相同尺寸名称替换掉即可

加入H5代码

将自己编写的H5代码,拷贝到生成的工程目录下的www文件(将原有的文件删除掉),然后在根目录下的config.xml中修改‘index.html’为你的H5代码的入口文件即可。

运行工程

在工程目录下,使用命令行cordova run android或者cordova run ios 即可运行工程。

导出安装包

android

  1. 在工程目录下执行cordova build android --debug(或者--release)
  2. 工程目录下的outputs目录中生成apk安装包。

iOS

  1. 使用前请在目录下的build.json文件中的ios结点下有说明的地方做相应的配置。
  2. 使用命令cordova build ios --device
  3. 安装包生成在outputs目录中,(企业级证书)

注意事项

  1. 如果执行过程中出错,只要在再次执行appstart即可从上次出错的地方继续执行。

添加的插件如下

cordova-plugin-device:获取设备相关信息如系统版本、uuid、手机品牌等

cordova-plugin-file:用来访问手机上的本地文件

cordova-plugin-app-version: 获取手机本App的应用版本等信息

cordova-plugin-file-transfer:用于下载和上传文件

cordova-plugin-geolocation:定位插件,一般是iOS使用,如果要在android上定位建议自己添加这个插件https://github.com/huangliop/BaiduLocation4Cordova

cordova-plugin-themeablebrowser:内置浏览器,用于打开网页或者打开本地文件(如打开下载好的更新apk包),支持自定义头,能够显示加载进度。

cordova-plugin-network-information:获得当前设备的网络状态

cordova-plugin-splashscreen:控制启动页开启和关闭等

cordova-plugin-statusbar:设置状态栏,做iOS状态栏透明时需要使用

cordova-plugin-zip:压缩、解压zip文件

cordova-plugin-crosswalk-webview:crosswalk高速浏览器内核

https://git.oschina.net/huangliop/chameleon-cordova-plugin.git:将H5文件拷贝到系统上运行,而不是在应用中运行;将最终打包好的应用文件拷贝到outputs目录;