Giter VIP home page Giter VIP logo

wp-cli-scaffold-movefile's Introduction

vccw-team/wp-cli-scaffold-movefile

Build Status

Get informations as YAML format for Wordmove's movefile.yml from WordPress.

Note: We changed the package name because the package index for package command is being deprecated. See installing.

$ wp scaffold movefile

For more details:

$ wp help scaffold movefile

Quick links: Installing | Contributing

Installing

Installing this package requires WP-CLI v0.23.0 or greater. Update to the latest stable release with:

$ wp cli update

Once you've done so, you can install this package with:

$ wp package install vccw-team/wp-cli-scaffold-movefile

We changed the package name because the package index for package command is being deprecated. https://make.wordpress.org/cli/2017/07/18/feature-development-discussion-recap/

So, if you are using this this command with the old name, please uninstall the package and install again with the new name.

$ wp package uninstall vccw/wp-cli-scaffold-movefile
$ wp package install vccw-team/wp-cli-scaffold-movefile

Customize a default template

You can customize a default template of the movefile.yml.

$ curl -o ~/.wp-cli/movefile.mustache https://raw.githubusercontent.com/vccw-team/wp-cli-scaffold-movefile/master/src/templates/movefile.mustache

Then edit ~/.wp-cli/movefile.mustache.

Contributing

Code and ideas are more than welcome.

Please open an issue with questions, feedback, and violent dissent. Pull requests are expected to include test coverage.

wp-cli-scaffold-movefile's People

Contributors

danielbachhuber avatar kkotaro0111 avatar miya0001 avatar nlemoine avatar torounit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wp-cli-scaffold-movefile's Issues

README.md の Customize a default template 取得URLが間違っている

README.md にある

$ curl -o ~/.wp-cli/movefile.mustache https://github.com/vccw-team/wp-cli-scaffold-movefile/blob/master/templates/movefile.mustache

を実行すると、Not Found が返ってきます。
たぶん、movefile.mustache のある場所が .../master/src/templates/movefile.mustache だから。

また、このURLだと、HTMLが返ってきてしまうので、このファイルのRAWである、

$ curl -o ~/.wp-cli/movefile.mustache https://raw.githubusercontent.com/vccw-team/wp-cli-scaffold-movefile/master/src/templates/movefile.mustache

とするのが良さそうです。

Generated movefile is poor readable

People can't understand where we should edit.

local:
  vhost: http://vccw.dev
  wordpress_path: /var/www/wordpress
  database:
    name: wordpress
    user: wordpress
    password: wordpress
    host: localhost
    charset: utf8
production:
  vhost: http://vccw.dev
  wordpress_path: /var/www/wordpress/
  database:
    name: wordpress
    user: wordpress
    password: wordpress
    host: localhost
    port: 3308
    mysqldump_options: --max_allowed_packet=50MB
    charset: utf8
  exclude:
    - .git/
    - .gitignore
    - .sass-cache/
    - bin/
    - 'tmp/*'
    - 'Gemfile*'
    - Movefile
    - wp-config.php
    - 'wp-content/*.sql'
  ssh:
    host: vccw.dev
    user: vagrant

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.