forked from kalamuna/twig-drupal-filters
-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
136 lines (136 loc) · 3.86 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{
"name": "drupal-twig-extensions",
"version": "1.0.0-beta.5",
"description": "JavaScript implementation of Drupal’s Twig extensions",
"author": "John Albin Wilkins <virtually.johnalbin@gmail.com> (https://john.albin.net/)",
"homepage": "https://github.com/JohnAlbin/drupal-twig-extensions",
"repository": "https://github.com/JohnAlbin/drupal-twig-extensions.git",
"license": "(MIT OR GPL-2.0-only)",
"keywords": [
"Drupal",
"Twig",
"Twing"
],
"files": [
"lib/",
"dist/",
"index.cjs",
"state.cjs",
"twig.cjs",
"twing.cjs"
],
"module": "./lib/index.js",
"main": "./dist/index.cjs",
"exports": {
".": {
"import": "./lib/index.js",
"require": "./dist/index.cjs"
},
"./twig": {
"import": "./lib/twig.js",
"require": "./dist/twig.cjs"
},
"./twing": {
"import": "./lib/twing.js",
"require": "./dist/twing.cjs"
},
"./filters/twig": {
"import": "./lib/filters/twig.js",
"require": "./dist/filters/twig.cjs"
},
"./filters/twing": {
"import": "./lib/filters/twing.js",
"require": "./dist/filters/twing.cjs"
},
"./functions/twig": {
"import": "./lib/functions/twig.js",
"require": "./dist/functions/twig.cjs"
},
"./functions/twing": {
"import": "./lib/functions/twing.js",
"require": "./dist/functions/twing.cjs"
},
"./helpers/twig": {
"import": "./lib/helpers/twig.js",
"require": "./dist/helpers/twig.cjs"
},
"./helpers/twing": {
"import": "./lib/helpers/twing.js",
"require": "./dist/helpers/twing.cjs"
}
},
"imports": {
"#module": "./lib/index.js",
"#config": "./lib/config.js",
"#twig": "./lib/twig.js",
"#twing": "./lib/twing.js",
"#twig-fixture": "./tests/fixtures/twig-helpers.js",
"#twing-fixture": "./tests/fixtures/twing-helpers.js"
},
"type": "module",
"scripts": {
"build": "babel --delete-dir-on-start --out-file-extension '.cjs' -d dist lib/",
"postbuild": "replace-in-file '/(require\\(\"\\.[^\"]+)\\.js\"/g' '$1.cjs\"' 'dist/**/*.cjs' --isRegex",
"prepare": "npm run build",
"release": "standard-version",
"release:alpha": "standard-version --prerelease alpha",
"release:beta": "standard-version --prerelease beta",
"release:rc": "standard-version --prerelease rc",
"release:inspect": "npm run prepare && npx npm-packlist",
"lint": "eslint lib/ tests/",
"lint:fix": "eslint --fix lib/ tests/",
"prettier": "prettier --write \"{.*/**/*,*,**/*}.{js,jsx,ts,tsx,json,md,yml,css,scss}\"",
"prettier:check": "prettier --check \"{.*/**/*,*,**/*}.{js,jsx,ts,tsx,json,md,yml,css,scss}\"",
"format": "npm run lint:fix && npm run prettier",
"ci:lint": "npm run lint && npm run prettier:check",
"ci:test": "c8 ava",
"pretest": "npm run ci:lint",
"test": "npm run ci:test"
},
"dependencies": {
"drupal-attribute": "^1.0.2",
"locutus": "^2.0.16",
"lodash.clonedeep": "^4.5.0"
},
"optionalPeerDependencies": {
"twig": "^1.16.0",
"twing": "^5.1.4"
},
"devDependencies": {
"@babel/cli": "^7.22.15",
"@babel/core": "^7.22.19",
"@babel/preset-env": "^7.22.15",
"ava": "^5.3.1",
"c8": "^8.0.1",
"coveralls": "^3.1.1",
"eslint": "^8.49.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"prettier": "^3.0.3",
"replace-in-file": "^7.0.1",
"standard-version": "^9.5.0",
"twig": "^1.16.0",
"twing": "^5.1.4"
},
"c8": {
"all": true,
"include": [
"lib",
"index.cjs",
"state.cjs",
"twig.cjs",
"twing.cjs"
],
"check-coverage": true,
"statements": 100,
"branches": 100,
"functions": 100,
"lines": 100,
"reporter": [
"text-summary",
"lcov"
]
}
}