0.1.5 • Published 6 years ago

gulpstart v0.1.5

Weekly downloads
1
License
ISC MIT
Repository
github
Last release
6 years ago

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')

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')
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

#Next JS A few gulp tasks that will setup a next js project with and without graphql apollo client.

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

7 years ago

0.1.0

7 years ago