
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@itgenio/edik-compiler
Advanced tools
Браузерный компилятор, собирающий CJS модули для работы с install
Для сборки JS используется esbuild-wasm.
Для сборки CSS используется less.
На выходе получается файл с названием [name].[hash].js
, например:
type CompilerFile = { name: string; content: string };
const someFiles: CompilerFile[] = [
{
name: 'index.js',
content: `
import { logger } from './utils/logger.js';
console.log(logger());
`,
},
{
name: 'utils/logger.js',
content: `
export const logger = () => 'logs';
`,
},
];
const moduleFile: CompilerFile = {
name: 'index.KLIO2BFQ.js',
content: `edikInstall({'node_modules':{'index.KLIO2BFQ.js'(require,exports,module) {
const logger = () => 'logs';
console.log(logger());
}}},{extensions:['.js','.css','.less','.ts','.json']})`,
};
На выходе получается файл с названием style.css
В сборке участвуют следующие типы ресурсов:
Эти ресурсы могут быть расположены на любом уровне вложенности.
Существуют специальные папки, которые меняют правила сборки:
редактор
| packages/some-component/index.js -> './packages/some-component/index.js'
| folder
| utils.js -> './folder/utils.js'
| main.js -> './main.js'
entrypoint.js
(невидимый), в котором импортируем все файлы. Порядок не имеет значения, так как далее будет строиться дерево зависимостей и код скомпилируется в нужном порядке.import './packages/some-component/index.js';
import './folder/utils.js';
import './main.js';
entrypoint.js
передаются в ESBuild чтобы собрались файлы исполнения (executable files
). Эти файлы далее будут запущены на выполнение с помощью Executor-ов.FAQs
Web-based compiler for Edik resources
The npm package @itgenio/edik-compiler receives a total of 2 weekly downloads. As such, @itgenio/edik-compiler popularity was classified as not popular.
We found that @itgenio/edik-compiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.