{"id":15379387,"url":"https://github.com/tadatuta/enb-define","last_synced_at":"2025-04-09T03:16:15.211Z","repository":{"id":57225082,"uuid":"48239696","full_name":"tadatuta/enb-define","owner":"tadatuta","description":"webpack DefinePlugin for ENB","archived":false,"fork":false,"pushed_at":"2019-09-26T15:19:44.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T15:45:18.833Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tadatuta.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-18T14:34:34.000Z","updated_at":"2019-09-26T15:19:40.000Z","dependencies_parsed_at":"2022-08-24T11:01:08.678Z","dependency_job_id":null,"html_url":"https://github.com/tadatuta/enb-define","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tadatuta%2Fenb-define","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tadatuta%2Fenb-define/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tadatuta%2Fenb-define/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tadatuta%2Fenb-define/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tadatuta","download_url":"https://codeload.github.com/tadatuta/enb-define/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247968377,"owners_count":21025823,"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":[],"created_at":"2024-10-01T14:19:00.878Z","updated_at":"2025-04-09T03:16:15.186Z","avatar_url":"https://github.com/tadatuta.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"enb-define\n======\n\n[![NPM version](https://img.shields.io/npm/v/enb-define.svg?style=flat)](https://www.npmjs.org/package/enb-define)\n[![Build Status](https://img.shields.io/travis/tadatuta/enb-define/master.svg?style=flat\u0026label=tests)](https://travis-ci.org/tadatuta/enb-define)\n[![Coverage Status](https://img.shields.io/coveralls/tadatuta/enb-define.svg?style=flat)](https://coveralls.io/r/tadatuta/enb-define?branch=master)\n[![Dependency Status](https://img.shields.io/david/tadatuta/enb-define.svg?style=flat)](https://david-dm.org/tadatuta/enb-define)\n\nПакет предоставляет [ENB](https://ru.bem.info/tools/bem/enb-bem/)-технологию для сборки, заменяющую плейсхолдеры вида `%%%SOME_VARIABLE_NAME%%%` на переданное значение.\n\nСимволы, обозначающие плейсхолдер, можно конфигурировать с помощью опции `placeholder` (принимает строку или объект вида `{ before: '___', after: '$$$' }`).\n\n## Установка\n\nУстановите пакет `enb-define`:\n\n```sh\n$ npm install --save-dev enb-define\n```\n\n**Требования:** зависимость от пакета `enb` версии `0.16.0` или выше.\n\nБыстрый старт\n-------------\n\n```js\nmodule.exports = function(config) {\n    config.nodes('*.bundles/*', function(nodeConfig) {\n        nodeConfig.addTechs([\n            [require('enb-define/techs/define'), {\n                target: '?.js',\n                source: '?.pre.js',\n                variables: {\n                    basePath: '/'\n                },\n                sourcemap: true\n            }]\n        ]);\n    });\n};\n```\n\nЛицензия\n--------\n\n© 2015 YANDEX LLC. Код лицензирован [Mozilla Public License 2.0](LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftadatuta%2Fenb-define","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftadatuta%2Fenb-define","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftadatuta%2Fenb-define/lists"}