{"id":15207812,"url":"https://github.com/dmoosocool/gulp-lich-include","last_synced_at":"2026-03-11T00:04:18.803Z","repository":{"id":57146857,"uuid":"101161639","full_name":"dmoosocool/gulp-Lich-include","owner":"dmoosocool","description":":dark_sunglasses: Lich.js dynamic include static resource gulpjs plugin.","archived":false,"fork":false,"pushed_at":"2017-09-05T06:57:20.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T22:42:38.429Z","etag":null,"topics":["gulp-plugin","lichjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmoosocool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-23T09:16:27.000Z","updated_at":"2017-08-24T11:38:21.000Z","dependencies_parsed_at":"2022-08-29T19:41:08.703Z","dependency_job_id":null,"html_url":"https://github.com/dmoosocool/gulp-Lich-include","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/dmoosocool%2Fgulp-Lich-include","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fgulp-Lich-include/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fgulp-Lich-include/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fgulp-Lich-include/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmoosocool","download_url":"https://codeload.github.com/dmoosocool/gulp-Lich-include/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242250926,"owners_count":20096897,"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":["gulp-plugin","lichjs"],"created_at":"2024-09-28T07:00:48.719Z","updated_at":"2026-03-11T00:04:18.773Z","avatar_url":"https://github.com/dmoosocool.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-lich-include\n[![npm version](https://badge.fury.io/js/gulp-lich-include.svg)](https://badge.fury.io/js/gulp-lich-include)\n[![GitHub version](https://badge.fury.io/gh/dmoosocool%2Fgulp-lich-include.svg)](https://badge.fury.io/gh/dmoosocool%2Fgulp-lich-include)\n[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)\n[![Build Status](https://travis-ci.org/dmoosocool/gulp-Lich-include.svg?branch=master)](https://travis-ci.org/dmoosocool/gulp-Lich-include)\n[![Coverage Status](https://coveralls.io/repos/github/dmoosocool/gulp-Lich-include/badge.svg?branch=master)](https://coveralls.io/github/dmoosocool/gulp-Lich-include?branch=master)\n[![bitHound Dependencies](https://www.bithound.io/github/dmoosocool/gulp-Lich-include/badges/dependencies.svg)](https://www.bithound.io/github/dmoosocool/gulp-Lich-include/master/dependencies/npm)\n[![bitHound Dev Dependencies](https://www.bithound.io/github/dmoosocool/gulp-Lich-include/badges/devDependencies.svg)](https://www.bithound.io/github/dmoosocool/gulp-Lich-include/master/dependencies/npm)\n[![bitHound Code](https://www.bithound.io/github/dmoosocool/gulp-Lich-include/badges/code.svg)](https://www.bithound.io/github/dmoosocool/gulp-Lich-include)\n\n```\nLich.js dynamic include static resource gulpjs plugin.\n```\n# Instructions.\n\n## install plugin.\n```javascript\nnpm i gulp-lich-include -D\n```\n\n## In gulpfiles.\n```javascript\nlet gulp = require('gulp'),\n    include = require('gulp-lich-include'),\n    // Config File.\n    config = require('./Lich.rules.config');\n\nlet test = function () {\n    let injectObject = {\n        env: 'test',\n        name: 'dmoo'\n    };\n\n    return gulp.src('src/test.html', {base: './src'})\n        .pipe(include(config, injectObject))\n        .pipe(gulp.dest('./dist'));\n};\n\ngulp.task('default', test);\n```\n\n## For more examples, see the [example](https://github.com/dmoosocool/gulp-Lich-include/tree/master/examples) folder\n\n## Define a config file. Like `Lich.rules.config.js`\n\n```javascript\nmodule.exports = {\n    // developer directory.\n    devDir: path.resolve(__dirname, 'src'),\n\n    // template extension.\n    tplExtension: '.swig',\n\n    // javascript extension.\n    jsExtension: '.js',\n\n    // css extension.\n    cssExtension: '.css',\n\n    // command name.\n    command: 'Lich',\n\n    // declare rules.\n    rules: {\n        commonScripts: [{\n            type: 'js-local',\n            list: [\n                'js/test.rule',\n                'js/test1.rule'\n            ]\n        }, {\n            type: 'js-npm',\n            list: [\n                'jquery/dist/jquery.min'\n            ]\n        }],\n        commonStyles: [{\n            type: 'css-local',\n            list: [\n                'css/test1',\n                'css/test2'\n            ]\n        }, {\n            type: 'css-npm',\n            list: [\n                'animate.css/animate'\n            ]\n        }]\n    }\n};\n```\n\n## Local javascript include.\n```HTML\n\u003c!--Lich js-local=\"path/to/script\"--\u003e\n\u003c!--Lich js-local=\"path/to/script,path/to/other\"--\u003e\n```\n\n## Local javascript merge.\n```HTML\n\u003c!-- Lich js-local-merge=\"path/to/merge.min:path/to/test1,path/to/test2\"--\u003e\n\n```\n## Npm javascript include.\n```HTML\n\u003c!-- Lich js-npm=\"path/tp/script\"--\u003e\n\u003c!-- Lich js-npm=\"path/to/script,path/to/other\"--\u003e\n```\n\n## Local style include.\n```HTML\n\u003c!--Lich css-local=\"path/to/style\"--\u003e\n\u003c!--Lich css-local=\"path/to/style,path/to/other\"--\u003e\n```\n\n## Local style merge.\n```HTML\n\u003c!--Lich css-local-merge=\"path/to/merge:path/to/test,path/to/test1\"--\u003e\n```\n\n## Npm style include.\n```HTML\n\u003c!-- Lich css-npm=\"path/to/style\"--\u003e\n\u003c!-- Lich css-npm=\"path/to/style,path/to/other\"--\u003e\n```\n\n## Template include.\n```HTML\n\u003c!--Lich tpl=\"path/to/tpl\"--\u003e\n```\n\n## Rule include.\n```HTML\n\u003c!--Lich rule=\"rule\"--\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmoosocool%2Fgulp-lich-include","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmoosocool%2Fgulp-lich-include","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmoosocool%2Fgulp-lich-include/lists"}