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

grunt-phonegap-project

v0.1.5

Published

Create a new Cordova Application. Extra config: folder, bundleId, platforms and plugins.

Downloads

8

Readme

grunt-phonegap-project

Create a new Cordova Application. Extra config: folder, bundleId, platforms and plugins.

Built with Grunt Build Status GitHub version

NPM

Getting Started

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-phonegap-project --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-phonegap-project');

The "phonegap_project" Require

Platform SDK

To add support or rebuild a project for any platform, you need from the same machine that supports the platform's SDK.

Cordova

npm install cordova -g

The "phonegap_project" Options

All options are optional.

options.path

Type: String, Default: build Path to install the new app.

options.title

Type: String, Default: MyyApp

options.bundleId

Type: String, Default: de.myylinks.myyapp Unique identifier Package name for all Android Apps.

options.platforms

Type: Array, Default: []

options.plugins

Type: Array, Default: []

options.deleteOptionsPath

Type: Boolean, Default: false

Info: For create a new app need an empty folder. WARNING: If true they are delete folder of options.path.

The "phonegap_project" task

Overview

In your project's Gruntfile, add a section named phonegap_project to the data object passed into grunt.initConfig().

Full Examples

grunt.initConfig({
	phonegap_project: {
		app_1: {
			options: {
				deleteOptionsPath: true,
				path: "buildfolder",
				platforms: [
					"browser",
					"android"
				],
				plugins: [
					"cordova-plugin-battery-status",
					"cordova-plugin-camera"
				]
			}
		}
	}
});
	
grunt.registerTask('phonegap: create new app', ['phonegap_project:app_1']);

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

2017-02-22 v0.1.5
  • update grunt to 1.0.1
  • add multitasking
  • clean project
2017-02-22 v0.1.4
  • update
2014-08-14 v0.1.3
  • update grunt to 0.4.5
  • add lodash
  • add new variable deleteOptionsPath
  • bugfixes
2014-05-23 v0.1.2
  • bugfix some grunt functions
  • add travis
2014-05-22 v0.1.1
  • clean project for public
2014-04-24 v0.1.0
  • add some defaults cordova commands

License

Copyright (c) 2014 SvenLang Licensed under the MIT license.