gocodebox / lifterlms-lib-tasks

gulp tasks and node utilities for LifterLMS and LifterLMS add-on development
1 stars 1 forks source link

lifterlms-lib-tasks

Gulp tasks and Node utilities for LifterLMS and LifterLMS add-on development

Installation

npm install --save-dev lifterlms-lib-tasks

Create a gulpfile in the root of your project (gulpfile.js)

The file must contain, at a minimum:

var gulp = require('gulp');

require( 'lifterlms-lib-tasks' )( gulp );

Config File

Create a file named .llmsconfig in the root directory of your project

Example:


{
  "build": {
    "custom": [ "custom_build_task_1", "custom_build_task_2" ]
  },
  "pot": {
    "bugReport": "https://mybugreports.tld",
    "domain": "my-text-domain",
    "dest": "i18n/",
    "jsClassname": "LLMS_SLUG_l10n",
    "jsFilename": "class-llms-slug-l10n.php",
    "jsSince": "1.0.0",
    "lastTranslator": "Jeffrey Lebowski <thedude@earthlink.com>",
    "team": "Team Name <team@myteam.com>",
    "package": "my-package-name",
  },
  "scripts": {
    "src": [ "assets/js/\*\*/\*.js", "!assets/js/\*\*/\*.min.js" ],
    "dest": "assets/js/"
  },
  "watch": {
    "custom": [
      {
        "glob": [ "path/to/files/**.js" ],
        "tasks": [ "watch_task_1", "watch_task_2" ]
      }
    ],
  }
}

Tasks