No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gulp
.gitignore
README.md
index.js
package-lock.json
package.json

README.md

This package is a collection of gulp tasks.

#Setup

  1. Init project and install this package
npm init -y && npm i gulp gulpstart -D
  1. Make gulpfile and start with this
const gulp = require('gulp')
const start = require('gulpstart-wordpress')

start(gulp, {})
  1. Checkout all the tasks you can run
gulp --tasks

#Docker Commands

gulp dockerStopAll

Will stop and remove all currently running docker containers.

gulp startMongo

Will start a mongo db container

gulp stopMongo

Will stop and remove your mongo container

#Seed The seeder is a function can use in your gulp file. Example:

const gulp = require('gulp')
const start, { seed } = require('gulpstart-wordpress')
const faker = require('faker')

seed({
    gulp,
    taskName    : 'seedStaff',
    url         : 'http://localhost:3000/api/staffMembers',
    amount      : 2,
    seed        : () => ({
        name      : faker.name.findName(),
        position  : faker.name.findName(),
        bio       : faker.lorem.sentences(),
        email     : faker.internet.email()
    })
})

Specify the api endpoint, what you want to seed, and how many of them you want to seed, and the gulp task will execute the seeder.

#Deploy Deploy runs now and deploys your project

#Loopback A few gulp tasks that will setup loopback with mongo db after you have initialized a loopback project