Giter VIP home page Giter VIP logo

wp-composer's People

Contributors

danielbachhuber avatar rxnlabs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

endriu84

wp-composer's Issues

Save composer.json file to same location no matter where wp-cli command was run

Sometimes the composer.json file will be saved to the directory where the wp-cli command was run from. The composer.json file should always be saved to the same place (preferably the site root).

This occurs when using commands such as:

wp plugin install akismet
wp theme install twentysixteen

A new composer.json file will be created in the directory where the command was run.

json_encode error breaks package

i updated to the latest version and my composer.json file is emptied out:

$ wp plugin install wordpress-importer --activate
Installing WordPress Importer (0.6.3)
Downloading install package from https://downloads.wordpress.org/plugin/wordpress-importer.0.6.3.zip...
Using cached file '/Users/ben/.wp-cli/cache/plugin/wordpress-importer-0.6.3.zip'...
Unpacking the package...
Installing the plugin...
Plugin installed successfully.
Activating 'wordpress-importer'...
Plugin 'wordpress-importer' activated.
Success: Installed 1 of 1 plugins.
Adding plugin wordpress-importer. Using version *
PHP Warning:  json_encode() expects parameter 2 to be integer, string given in /Users/ben/.wp-cli/packages/vendor/camspiers/json-pretty/src/Camspiers/JsonPretty/JsonPretty.php on line 25
Warning: json_encode() expects parameter 2 to be integer, string given in /Users/ben/.wp-cli/packages/vendor/camspiers/json-pretty/src/Camspiers/JsonPretty/JsonPretty.php on line 25
Success: Saved wordpress-importer plugin as a dependency to /Users/ben/Sites/valet/bedrock/composer.json

my composer.json was originally just the stock one from bedrock: https://github.com/roots/bedrock/blob/master/composer.json

No write permission

Without write permission composer.json is not created and there is no error message.

Consider adding functional tests to this project

Functional tests are an integral ingredient of highly-quality, maintainable commands. WP-CLI tries to make it as easy as possible to add functional tests to your package with its wp scaffold package-tests command:

https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-tests

I'd encourage you to consider adding functional tests to your package :) By starting your functional tests early on, it also makes it much easier to maintain your project over time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.