forked from developit/htm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
78 lines (78 loc) · 2.16 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
{
"name": "htm",
"version": "2.0.0",
"description": "The Tagged Template syntax for Virtual DOM. Only browser-compatible syntax.",
"main": "dist/htm.js",
"umd:main": "dist/htm.umd.js",
"module": "dist/htm.mjs",
"scripts": {
"build": "npm run -s build:main && npm run -s build:preact && npm run -s build:babel",
"build:main": "microbundle src/index.mjs -f es,umd --no-sourcemap --target web && microbundle src/cjs.mjs -f iife --no-sourcemap --target web",
"build:preact": "cd src/integrations/preact && npm run build",
"build:babel": "cd packages/babel-plugin-htm && npm run build",
"test": "eslint src/**/*.mjs test/**/*.mjs && npm run build && jest test",
"release": "npm t && git commit -am \"$npm_package_version\" && git tag $npm_package_version && git push && git push --tags && npm publish"
},
"files": [
"dist",
"preact",
"src"
],
"eslintConfig": {
"extends": "developit",
"rules": {
"prefer-const": 0,
"no-fallthrough": 0
}
},
"jest": {
"testURL": "http://localhost",
"testMatch": [
"**/__tests__/**/*.?(m)js?(x)",
"**/?(*.)(spec|test).?(m)js?(x)"
],
"transform": {
"\\.m?js$": "babel-jest"
},
"moduleFileExtensions": [
"mjs",
"js"
],
"moduleNameMapper": {
"^babel-plugin-htm$": "<rootDir>/packages/babel-plugin-htm/index.mjs",
"^htm$": "<rootDir>/src/index.mjs",
"^htm/preact$": "<rootDir>/src/integrations/preact/index.mjs"
}
},
"babel": {
"presets": [
"env"
]
},
"repository": "developit/htm",
"keywords": [
"Hyperscript Tagged Markup",
"tagged template",
"template literals",
"html",
"htm",
"jsx",
"virtual dom",
"hyperscript"
],
"author": "Jason Miller <jason@developit.ca>",
"license": "Apache-2.0",
"homepage": "https://github.com/developit/htm",
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.1.6",
"babel-jest": "^23.6.0",
"babel-preset-env": "^1.7.0",
"eslint": "^5.2.0",
"eslint-config-developit": "^1.1.1",
"jest": "^23.4.2",
"microbundle": "^0.8.3",
"preact": "^8.2.9"
},
"dependencies": {}
}