dphonegap

Prepare a project for a PhoneGap build by copy files and inject javascript tags into the index file

Usage no npm install needed!

<script type="module">
  import dphonegap from 'https://cdn.skypack.dev/dphonegap';
</script>

README

Dependency Status devDependency Status

Example

dphonegap.json (dependency)

{
  "copyfiles": [
    "..."
  ],
  "index": "..."
}

package.json (project)

{
  "scripts": {
    "postinstall": "dphonegap %dependency%"
  },
  "dependencies": {
    "%dependency%": ""
  }
}

dphonegap.json (project)

{
  "javascripts": [ "cordova.js" ]
}