-
Notifications
You must be signed in to change notification settings - Fork 45
/
package.json
166 lines (166 loc) 路 5.34 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"name": "dna-engine",
"version": "3.2.4",
"description": "An uncomplicated user interface library for cloning semantic templates",
"license": "MIT",
"type": "module",
"module": "dist/dna-engine.js",
"browser": "dist/dna-engine.min.js",
"style": "dist/dna-engine.css",
"types": "dist/dna-engine.d.ts",
"exports": {
".": "./dist/dna-engine.js",
"./": "./dist/"
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "git+https://github.com/dna-engine/dna-engine.git"
},
"homepage": "https://dna-engine.org",
"bugs": "https://github.com/dna-engine/dna-engine/issues",
"docs": "https://dna-engine.org/docs",
"author": "Center Key (https://centerkey.com)",
"keywords": [
"clone",
"dom",
"engine",
"html",
"jamstack",
"json",
"template",
"templating",
"typescript",
"ui"
],
"meta": {
"summary": "dna-engine is a lightweight easy-to-use UI library enabling developers to rapidly build maintainable JavaScript applications."
},
"jshintConfig": {
"esversion": 11,
"strict": "implied",
"eqeqeq": true,
"singleGroups": true,
"nonbsp": true,
"undef": true,
"unused": true,
"varstmt": true,
"browser": true,
"mocha": true,
"node": true,
"globals": {
"dna": true
}
},
"eslintConfig": {
"ignorePatterns": [
"build",
"dist",
"node_modules"
],
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-non-null-assertion": "off"
}
},
"websiteInfo": {
"gzipSize": "9 kb gzip",
"jsFiddle": {
"addABook": "12nrev6j",
"bookFinder": "ztsr4qm9",
"clickEvents": "Lkejw4sd",
"liveModel": "p5exnfuq",
"panelsClick": "5kguwjaq",
"panelsDropDown": "2cmkzxt0",
"photoUpload": "f4y5cjon",
"smartUpdates": "pj8vkxrw",
"toDo": "4jkua81f"
},
"youTube": {
"intro": "1CrYAFZPdAg",
"tutorial": "5ZTP0FxFiYA"
}
},
"runScriptsConfig": {
"clean": [
"rimraf build dist"
],
"lint": [
"jshint . --exclude-path .gitignore",
"eslint --max-warnings 0 src --ext .ts"
],
"build": [
"tsc",
"copy-file src/dna-engine.css --folder build",
"copy-file website/static/panel-nav.css --folder build",
"esm-to-plain-js --cd=build dna-engine.js dna-engine.dev.js",
"uglifyjs build/dna-engine.dev.js --output build/dna-engine.min.js",
"add-dist-header build dist",
"replacer spec/visual.html spec --rename=visual.min.html --find=dist/dna-engine.dev.js --replacement=dist/dna-engine.min.js",
"html-validator spec"
],
"dev": [
"tsc --watch --preserveWatchOutput",
"chokidar 'src/dna-engine.ts' --command 'src/eslint dna-engine.ts'",
"chokidar 'build/dna-engine' --command 'npm run step:10'",
"browser-sync . --directory --startPath spec/visual.html --files dist spec"
],
"web": [
"rimraf website-target",
"copy-folder website/static website-target/prod",
"replacer website/static --ext=.html website-target/prod",
"replacer website/root --ext=.html website-target/prod",
"replacer spec/visual.html spec --rename=visual.min.html --find=dist/dna-engine.dev.js --replacement=dist/dna-engine.min.js --note=also-in-build",
"replacer spec --ext=.html website-target/prod/spec --find=../dist/ --replacement=https://cdn.jsdelivr.net/npm/dna-engine@{{package.version{{pipe}}minor-version}}/dist/",
"html-validator website-target/prod",
"copy-file website-target/prod/project.html docs/index.html",
"copy-folder website-target/prod website-target/dev",
"replacer website-target/prod --ext=.html website-target/dev '--regex=/https:.*dna-engine.min.js/m' --replacement=/dist/dna-engine.dev.js{{space}}class{{equals}}dev-mode"
]
},
"scripts": {
"pretest": "run-scripts clean lint build",
"test": "mocha spec/*.spec.js",
"dev": "npm test && run-scripts dev --parallel",
"build-website": "run-scripts web",
"interactive": "browser-sync . --startPath website-target/dev --files website-target/dev"
},
"devDependencies": {
"@eslint/js": "~9.6",
"@fortawesome/fontawesome-free": "~6.5",
"@types/node": "~20.14",
"add-dist-header": "~1.4",
"assert-deep-strict-equal": "~1.2",
"browser-sync": "~3.0",
"chokidar-cli": "~3.0",
"copy-file-util": "~1.2",
"copy-folder-util": "~1.1",
"eslint": "8.57.0",
"esm-to-plain-js": "~1.1",
"fetch-json": "~3.3",
"highlight.js": "~11.9",
"hljs-enhance": "~2.0",
"jsdom": "~24.1",
"jshint": "~2.13",
"mocha": "~10.5",
"replacer-util": "~1.3",
"rimraf": "~5.0",
"run-scripts-util": "~1.2",
"serve": "~14.2",
"typescript": "~5.5",
"typescript-eslint": "~7.14",
"uglify-js": "~3.18",
"w3c-html-validator": "~1.8",
"web-ignition": "~2.2"
}
}