twing/package.json

71 lines
2.2 KiB
JSON

{
"name": "twing",
"description": "First-class Twig engine for Node.js",
"author": "Eric MORAND <eric.morand@gmail.com>",
"keywords": [
"browser",
"compiler",
"template",
"twig",
"twig-engine",
"typescript"
],
"version": "0.0.0",
"homepage": "https://twing.nightlycommit.com",
"license": "BSD-2-Clause",
"repository": {
"type": "git",
"url": "https://gitlab.com/nightlycommit/twing"
},
"bugs": "https://gitlab.com/nightlycommit/twing/-/issues",
"main": "dist/cjs/lib.js",
"types": "dist/types/lib.d.ts",
"jsdelivr": "dist/lib.min.js",
"files": [
"dist"
],
"engines": {
"node": ">=6.0.0"
},
"scripts": {
"test": "node dist/test",
"build": "npm run build:cjs && npm run build:types && npm run bundle",
"build:cjs": "rimraf dist/cjs && tsc --project src/main --module commonjs --outDir dist/cjs",
"build:test": "rimraf dist && tsc --project src/test --outDir dist",
"build:types": "rimraf dist/types && tsc --project src/main --declaration true --emitDeclarationOnly true --outDir dist/types",
"bundle": "esbuild src/main/lib.ts --bundle --minify --metafile=dist/meta.json --format=esm --outfile=dist/lib.min.js",
"bundle:types": "npx dts-bundle-generator --external-inlines source-map --external-inlines twig-lexer -o dist/lib.min.d.ts src/main/lib.ts"
},
"dependencies": {
"capitalize": "^1.0.0",
"create-hash": "^1.2.0",
"htmlspecialchars": "^1.0.5",
"iconv-lite": "^0.6.3",
"levenshtein": "^1.0.5",
"locutus": "^2.0.31",
"luxon": "^1.19.3",
"path-browserify": "^1.0.1",
"readable-stream": "^4.6.0",
"regex-parser": "^2.2.8",
"runes": "^0.4.3",
"source-map": "^0.6.1",
"twig-lexer": "^0.9.0"
},
"devDependencies": {
"@types/create-hash": "^1.2.5",
"@types/locutus": "^0.0.8",
"@types/luxon": "^1.4.0",
"@types/node": "^20.17.10",
"@types/path-browserify": "^1.0.3",
"@types/readable-stream": "^4.0.18",
"@types/sinon": "^17.0.2",
"@types/tape": "^4.2.33",
"dts-bundle-generator": "^9.5.1",
"esbuild": "^0.24.2",
"rimraf": "^2.6.2",
"sinon": "^17.0.1",
"tape": "^5.9.0",
"typescript": "^5.2.2"
}
}