Skip to content

Latest commit

 

History

History
executable file
·
79 lines (58 loc) · 2.02 KB

README.md

File metadata and controls

executable file
·
79 lines (58 loc) · 2.02 KB

hello

just another wordpress theme


early stage - currently bootstraping the repo 😁


history

This gulp app is based on the gulp webapp generator for yeoman.

Notes :

The test features included in the generator have been disabled.

The jade template engine was added for the mockups generation.
(the following recipe was used)

TODO : add deploy


install

  1. pull the repo
  2. install gulp globally
npm install -g gulp

(might require a sudo) 3. install node modules (building libraries) and bower component (front end libraries) locally

npm install && bower install
  1. create a file named .deployrc at the root of your working directory and fill it using this template
{
    "dev": {
      "host": "ftp.your-awesome-server.com",
      "port": "21",
      "user": "awesome-ftp-user",
      "password": "awesome-ftp-password",
      "path": "/dev/wp-content/themes/hello"
    },
    "prod": {
      "host": "ftp.your-awesome-server.com",
      "port": "21",
      "user": "awesome-ftp-user",
      "password": "awesome-ftp-password",
      "path": "/www/wp-content/themes/hello"
    }
}

do not sync this file and leave it in the .gitignore config file

build

Since we use gulp to play in your local environment, the following task are available :

gulp

will build & pack the whole app in the dist folder

gulp serve

will build the app and serve it on http://localhost:9000/

gulp deploy:dev (beta)

deploy the template code (dist folder) to your development ftp server (see .deployrc)

gulp deploy:watch (beta)

watch and deploy to your development ftp server 👍

gulp deploy:prod (beta)

deploy the template code (dist folder) to your production ftp server (see .deployrc)