Giter VIP home page Giter VIP logo

drop's Introduction

Drop manages your Drupal project for you

	$ drop init
	$ drop -- build
	$ drop mytestenv.yml install
	$ drop live.yml script scripts/sync-content.sh
	$ drop ./docroot fix-missing-modules
	$ drop ../v2/docroot drush cc all

Available commands

fix-missing-modules

Fixes the missing module error message. [https://www.drupal.org/project/module_missing_message_fixer]

db-sql [--no-db] SQL

Runs an SQL Query against database. You can choose to omit the database auto-detection.

$ drop drop.yml db-sql select nid, type, title, from node
$ drop drop.yml db-sql --no-db "create database new_db; use new_db; create table example (name varchar(20) not null);"

TODO

  • get database as a prefix when installing
  • add list of all commands

drop's People

Contributors

pendashteh avatar

Stargazers

 avatar

Watchers

 avatar  avatar

drop's Issues

Plugin system

Similar to git plugins, if a command was not found look for drop-$command executable.

Build and Rebuild

Currently build and rebuild won't create drupal_docroot if does not exists.

One of them need to create it if it doesn't exists.

There should also be a way to force deleting it and recreating it again.

Using docroot path as an alternative to drop.yml

Most drop commands only need to know where the docroot is.

So, maybe, in case of the absence of a drop.yml file we can check that argument for a directory and take it as a docroot.

In this case, we can do the following:

$ drop ./docroot/ fix-missing-modules

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.