Skip to content

Commit

Permalink
Remove browser build
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 30, 2021
1 parent 20a619c commit 57ecbee
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 71 deletions.
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
node_modules
coverage
node_modules/
coverage/
.DS_Store
*.log
rehype.js
rehype.min.js
yarn.lock
5 changes: 1 addition & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
coverage
rehype.js
rehype.min.js
coverage/
*.html
*.json
*.md
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
},
"devDependencies": {
"bail": "^1.0.0",
"browserify": "^17.0.0",
"c8": "^7.0.0",
"dtslint": "^4.0.0",
"hast-util-assert": "^2.0.0",
Expand All @@ -20,7 +19,6 @@
"remark-cli": "^9.0.0",
"remark-preset-wooorm": "^8.0.0",
"tape": "^5.0.0",
"tinyify": "^3.0.0",
"to-vfile": "^6.0.0",
"unist-builder": "^2.0.0",
"unist-util-remove-position": "^3.0.0",
Expand All @@ -29,13 +27,10 @@
"scripts": {
"postinstall": "lerna bootstrap --no-ci",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"build-bundle": "browserify packages/rehype -s rehype > rehype.js",
"build-mangle": "browserify packages/rehype -p tinyify -s rehype > rehype.min.js",
"build": "npm run build-bundle && npm run build-mangle",
"test-api": "node --conditions development test/index.js",
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test/index.js",
"test-types": "dtslint packages/rehype-parse/types && dtslint packages/rehype-stringify/types && dtslint packages/rehype/types",
"test": "npm run format && npm run build && npm run test-coverage && npm run test-types"
"test": "npm run format && npm run test-coverage && npm run test-types"
},
"prettier": {
"tabWidth": 2,
Expand All @@ -55,7 +50,6 @@
"unicorn/string-content": "off"
},
"ignores": [
"rehype.js",
"**/*.ts"
]
},
Expand Down
16 changes: 4 additions & 12 deletions test/fixtures/aria/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,7 @@
"type": "element",
"tagName": "label",
"properties": {
"htmlFor": [
"username"
]
"htmlFor": ["username"]
},
"children": [
{
Expand Down Expand Up @@ -258,9 +256,7 @@
"tagName": "input",
"properties": {
"id": "username",
"ariaDescribedBy": [
"username-tip"
],
"ariaDescribedBy": ["username-tip"],
"required": true
},
"children": [],
Expand Down Expand Up @@ -402,9 +398,7 @@
"type": "element",
"tagName": "label",
"properties": {
"htmlFor": [
"password"
]
"htmlFor": ["password"]
},
"children": [
{
Expand Down Expand Up @@ -458,9 +452,7 @@
"tagName": "input",
"properties": {
"id": "password",
"ariaDescribedBy": [
"password-tip"
],
"ariaDescribedBy": ["password-tip"],
"required": true
},
"children": [],
Expand Down
4 changes: 1 addition & 3 deletions test/fixtures/body-body-attributes/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
"properties": {
"id": "a",
"title": "b",
"className": [
"c"
],
"className": ["c"],
"onClick": "e"
},
"children": [
Expand Down
8 changes: 2 additions & 6 deletions test/fixtures/body-html-attributes/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"type": "element",
"tagName": "html",
"properties": {
"className": [
"d"
],
"className": ["d"],
"onClick": "e"
},
"children": [
Expand All @@ -23,9 +21,7 @@
"properties": {
"id": "a",
"title": "b",
"className": [
"c"
]
"className": ["c"]
},
"children": [
{
Expand Down
40 changes: 9 additions & 31 deletions test/fixtures/element-attributes/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
"tagName": "a",
"properties": {
"href": "http://alpha.com",
"className": [
"bravo"
],
"className": ["bravo"],
"download": true
},
"children": [],
Expand Down Expand Up @@ -402,10 +400,7 @@
"type": "element",
"tagName": "code",
"properties": {
"className": [
"language-foo",
"bar"
]
"className": ["language-foo", "bar"]
},
"children": [],
"position": {
Expand Down Expand Up @@ -581,10 +576,7 @@
"type": "element",
"tagName": "img",
"properties": {
"srcSet": [
"medium.jpg 1000w",
"large.jpg 2000w"
]
"srcSet": ["medium.jpg 1000w", "large.jpg 2000w"]
},
"children": [],
"position": {
Expand Down Expand Up @@ -620,9 +612,7 @@
"type": "element",
"tagName": "img",
"properties": {
"srcSet": [
"medium.jpg 1000w"
]
"srcSet": ["medium.jpg 1000w"]
},
"children": [],
"position": {
Expand Down Expand Up @@ -730,9 +720,7 @@
"type": "element",
"tagName": "img",
"properties": {
"srcSet": [
""
]
"srcSet": [""]
},
"children": [],
"position": {
Expand Down Expand Up @@ -768,9 +756,7 @@
"type": "element",
"tagName": "img",
"properties": {
"srcSet": [
""
]
"srcSet": [""]
},
"children": [],
"position": {
Expand Down Expand Up @@ -806,10 +792,7 @@
"type": "element",
"tagName": "img",
"properties": {
"srcSet": [
"",
"foo"
]
"srcSet": ["", "foo"]
},
"children": [],
"position": {
Expand Down Expand Up @@ -845,9 +828,7 @@
"type": "element",
"tagName": "img",
"properties": {
"srcSet": [
"bar"
]
"srcSet": ["bar"]
},
"children": [],
"position": {
Expand Down Expand Up @@ -883,10 +864,7 @@
"type": "element",
"tagName": "img",
"properties": {
"srcSet": [
"",
"baz"
]
"srcSet": ["", "baz"]
},
"children": [],
"position": {
Expand Down
4 changes: 1 addition & 3 deletions test/fixtures/html-in-svg-in-html/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@
"properties": {
"width": "200",
"height": "100",
"requiredExtensions": [
"http://www.w3.org/1999/xhtml"
]
"requiredExtensions": ["http://www.w3.org/1999/xhtml"]
},
"children": [
{
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/svg/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"fragment": true,
"closeEmptyElements": true,
"tightSelfClosing": true
}
}

0 comments on commit 57ecbee

Please sign in to comment.