Giter Site home page Giter Site logo

wordpress-new-project-config's Introduction

Wordpress New Project Config

##What is Wordpress New Project Config? This little script will save you the hassle of all the repetitives tasks each time you start a new wordpress project.

##So what it does? The script will

  • Prompt you for a project name
  • Create a new folder with the project name
  • Fetch and Install the latest wordpress build
  • Remove readme.html and license.txt
  • Fetch your favorite starter theme and rename it with your project name
  • Remove twentyten, twentyeleven and twentytwelve themes
  • Fetch a list of plugins you want on every projects
  • Remove Hello Dolly plugin
  • Fetch H5BP server-configs .htaccess
  • Create a database with your project name
  • Prompt you for a table prefix
  • Configure wp-config.php and change update salt strings
  • Create a wp-config-local.php file for local database parameters
  • Exclude wp-config-local.php in .gitignore and Sublime ftp config file
  • Create a Sublime text 2 project config file (projectName.sublime-project)
  • Configure .sublime-project file with 3 folders :
    • My theme
    • plugins
    • All website (it will be helpfull for the 1st migration on a remote server)
  • Prompt you if you want to configure ftp for Sublime text 2
  • Create a Sublime text 2 sFTP config file sftp-config.json in each folder.
  • Create a new project in codeKit
  • Launch your project in Sublime text 2
  • Open your newly created wordpress website in your favourite browser

##Requirements

  • I created this script for MAC, I don't know if it works on other platforms.
  • MAMP
  • git
  • codeKit
  • sublime text 2
  • and sFTP plugin if you want

##Installation Just duplicate config-sample.cfg to config.cfg

##Configuration You can edit the script with your favourite code editor and change some variables.

  • DIRECTORY you can type your projects folder path
  • WORDPRESS_URL must be a zip to download, I use zip download rather than a git repository cause I personally fetch a locale (french) version of wordpress
  • THEME_URL must be a git repository
  • PLUGINS_URL is a list of plugins from the wordpress.org plugin directory
  • DB_USER, DB_PASSWORD, DB_HOST these are the defaults for MAMP
  • LOCAL_URL default is localhost:8888/ for MAMP but you could have changed it

and for sure, you can modify or delete some part not useful for you

##Why a .command extension? The script is a common shell script with normally a .sh extension
The .command extension allow to make the script double clickable
Tip : If you are using Alfred or an other launcher application, you can execute the script from everywhere!

##Changelog

###v1.3.3

  • recursively clone submodules in theme repository
  • Remove twentyfifteen and twentysixteen themes

###v1.3.2

  • fixe a mySQL issue
  • Remove twentythirteen and twentyfourteen themes
  • Update fetching of the new H5BP .htaccess

###v1.3.1

  • Add mysql path in the config file
  • Add sublime text path in the config file

###v1.3

  • Now you can fetch a list a plugins from the wordpress.org plugin directory

###v1.2.2

  • Fixed the path for browser launching (thanks to Aarow)

###v1.2.1

###v1.2

  • Do not allow empty strings on FTP config, and allow to abort process (thanks to Carles Jove)

###v1.1.2

  • Empty values are now not allowed for project name (thanks to Carles Jove)

###v1.1.1

  • Fixed table_prefix issue

###v1.1

  • Split the configuration part in an another file config.cfg
  • gitignore config.cfg

wordpress-new-project-config's People

Contributors

jeremycastelli avatar

Watchers

 avatar

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.