{"id":15173104,"url":"https://github.com/inviqa/deck-task-registry","last_synced_at":"2025-10-01T10:31:30.021Z","repository":{"id":137883072,"uuid":"67222436","full_name":"inviqa/deck-task-registry","owner":"inviqa","description":"Undertaker task registry for use with the Deck Drupal theme","archived":true,"fork":false,"pushed_at":"2020-06-25T07:05:33.000Z","size":940,"stargazers_count":0,"open_issues_count":4,"forks_count":1,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-04-25T17:20:28.420Z","etag":null,"topics":["drupal","gulp-tasks"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inviqa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-02T12:54:16.000Z","updated_at":"2024-08-23T15:27:42.846Z","dependencies_parsed_at":null,"dependency_job_id":"90ffc7b0-f022-472e-a337-5308ea51e943","html_url":"https://github.com/inviqa/deck-task-registry","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inviqa%2Fdeck-task-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inviqa%2Fdeck-task-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inviqa%2Fdeck-task-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inviqa%2Fdeck-task-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inviqa","download_url":"https://codeload.github.com/inviqa/deck-task-registry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219875400,"owners_count":16554676,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drupal","gulp-tasks"],"created_at":"2024-09-27T10:41:09.041Z","updated_at":"2025-10-01T10:31:24.725Z","avatar_url":"https://github.com/inviqa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drupal Deck task registry\n\n[![Build Status](https://travis-ci.org/inviqa/deck-task-registry.svg?branch=master)](https://travis-ci.org/inviqa/deck-task-registry)\n\n\u003c!-- TOC depthFrom:2 depthTo:3 --\u003e\n\n- [Overview](#overview)\n- [Requirements](#requirements)\n- [Installation](#installation)\n  - [Into a new task suite](#into-a-new-task-suite)\n  - [Into an existing task suite](#into-an-existing-task-suite)\n- [Usage](#usage)\n  - [Basic usage](#basic-usage)\n  - [Build mode](#build-mode)\n- [Tasks](#tasks)\n  - [Styles](#styles)\n  - [Scripts](#scripts)\n  - [Images](#images)\n  - [Fonts](#fonts)\n  - [Build](#build)\n- [Contribution](#contribution)\n\n\u003c!-- /TOC --\u003e\n\n## Overview\n\nThis toolset is just a collection of Gulp based development and build tasks.\nThey were written primarily for use on Drupal sites using the Deck subtheme,\nbut there's no reason that they can't be used on other platforms/themes.\n\nThey use Gulp v4, but the latest version of Gulp CLI will ensure you don't need\nto remove your current v3 installation of Gulp.\n\n## Requirements\n\n* NodeJS \u003e= v6\n* Gulp CLI (`npm install -g gulp-cli`).\n\n## Installation\n\n### Into a new task suite\n\n1. Run `$ npm install deck-task-registry`\n2. If the stub files aren't created, then navigate to `node_modules/src/post-install/files` and copy the\n   `example.config.js` and `gulpfile.js` files into your Gulp tasks directory, removing any example prefixes.\n\n### Into an existing task suite\n\n1. Run `$ npm install deck-task-registry`\n2. If the stub files aren't created, then navigate to `node_modules/src/post-install/files` and copy the\n   `example.config.js` file into your Gulp tasks directory, removing any example prefixes.\n3. `require` your config and the `drupal-task-registry` module.\n4. Add the registry to your project by adding `gulp.registry(config)`\n\n## Usage\n\n### Basic usage\n\nThe tools are gulp tasks, so simply run `gulp TASKNAME`.\n\nTo see an available list if tasks, run `gulp --tasks`\n\n### Build mode\n\nThere are two build modes available to the toolset: development and production.\n\nBy default, all Gulp tasks will run in development mode. This means that you\nget all sourcemaps and uncompressed build assets this is also true of the main\n`build` task.\n\nTo enable production mode, simple pass `--production` or `--prod` to the Gulp\ntask you are running. Further information about what production mode does on a\nper-task basis can be found below.\n\n## Tasks\n\n### Styles\n\n#### build:styles\n\nCompiles your SASS and places it into the configured `css` directory.\n\nIt also pipes your styles through [AutoPrefixer][autoprefixer], using the\nprovided browser configuration.\n\n**Development mode**\n\n- Sourcemaps will be generated.\n\n**Production mode**\n\n- Sourcemaps are **not** generated.\n- Output CSS is minified.\n\n### Scripts\n\n#### build:scripts\n\nCompiles your JavaScript and/or TypeScript and places it into the configured\n`js` directory.\n\nIf `es2015` is set to `true`, then your scripts will be piped through the\nTypeScript transpiler. This will optimise your code, as well as enable the\nfollowing:\n\n- Ability to write ES2015 compliant code\n- Ability to write TypeScript compliant code.\n\nPlease note, that this does NOT include module loading. **There is no module\nloader available with these tools at this time**.\n\n**Development mode**\n\n- Sourcemaps will be generated\n\n**Production mode**\n\n- Sourcemaps will **not** be generated\n- Output JS is minified with Uglify. Variables are not truncated as it tends to\n  break `Drupal.behaviors`.\n\n#### lint:scripts\n\nLints your scripts using [ESLint][eslint] and [TSLint][tslint] (if using\nTypeScript). Configuration files are loaded by searching parent directories\nrelative to the scripts being linted, so generally if you want to override them\n- simply place a configuration file in your theme directory. In no `.eslintrc`\nfile is provided; ESLint will use the default configuration that ships with\nDrupal (if using Drupal 8). If you're writing ES2015; you'll also want a custom\n `.eslintrc` file.\n\n**Development mode**\n\n- Linting failure will not break return an error code.\n\n**Production mode***\n\n- Linting failure will prevent the build from continuing.\n\n### Images\n\n#### build:images\n\nCompress and optimise all images.\n\nThere are no differences between development and production mode for this task.\n\n### Fonts\n\nCopy all fonts found in the `src` directory to the `dest` directory.\n\nThere are no differences between development and production mode for this task.\n\n### Build\n\n#### build:clean\n\nRemove any and all assets from the destination directory of each resource type.\n\nThere are no differences between development and production mode for this task.\n\n#### build\n\nRun any linting and testing tasks, and then run build tasks providing the test\ntasks complete. At the time of writing, the task breakdown is as follows. Note;\nall tasks on the same level are run in parallel. Different levels denote series\nbased tasks.\n\n- `build:clean`\n  - `lint:scripts`\n    - `build:scripts`\n    - `build:styles`\n    - `build:images`\n    - `build:fonts`\n\n**Development/production mode**\n\n- All development mode settings for each individual task apply as they are run.\n  For example, in development mode; sourcemaps are generated, and the output is\n  not compressed for scripts and styles.\n\n## Contribution\n\n- Ensure there are tests where possible\n- In lieu of a formal styleguide; follow existing formatting, and ensure ESLint\n  doesn't fail.\n- Document your changes.\n\n[codeship-badge]: https://codeship.com/projects/079634a0-4cf5-0134-4c08-7e829346aa02/status?branch=master\n[autoprefixer]: https://github.com/postcss/autoprefixer\n[eslint]: http://eslint.org/\n[tslint]: https://palantir.github.io/tslint/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finviqa%2Fdeck-task-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finviqa%2Fdeck-task-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finviqa%2Fdeck-task-registry/lists"}