ionic-team / ionic-package-hooks

Cordova hooks that you can run in Ionic Package
Other
68 stars 38 forks source link

Script file does't exist and will be skipped #2

Closed aureliosaraiva closed 8 years ago

aureliosaraiva commented 8 years ago

I'm having trouble running the hooks.

Am I doing something wrong?

Script file does't exist and will be skipped: /home/package/workspace/ionic_dash-857a12a1-41/cordova/package-hooks/009_remove_values.js Script file does't exist and will be skipped: /home/package/workspace/ionic_dash-857a12a1-41/cordova/package-hooks/010_add_platform_class.js Script file does't exist and will be skipped: /home/package/workspace/ionic_dash-857a12a1-41/cordova/package-hooks/011_change_api_url.js Script file does't exist and will be skipped: /home/package/workspace/ionic_dash-857a12a1-41/cordova/package-hooks/012_remove_script_index.js

imhoffd commented 8 years ago

You are trying to run local Cordova hooks, which won't work in Package. Package will only run the hooks within this repository. See README.md for usage.

If you think your hook(s) would be beneficial to the Ionic community, consider submitting a pull request to this repository with your hook(s). See CONTRIBUTING.md for details.

aureliosaraiva commented 8 years ago

Is there any way to create custom hooks for my project?

For example: https://github.com/phonegap/phonegap-plugin-barcodescanner plugin does not compile successfully because the files android / res / values- *.

I have a hook script to remove these bushy before compilation.

imhoffd commented 8 years ago

Custom hooks are not allowed right now. That plugin is giving a few people some trouble.

If you have a hook that fixes it, please submit a pull request to this repository. That way, you can use it and other people can use it, too.