Skip to content

Commit 83366e6

Browse files
committed
Rewrite project
1 parent c7cda2c commit 83366e6

15 files changed

+361
-356
lines changed

.editorconfig

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
root = true
22

33
[*]
4-
indent_style = space
5-
indent_size = 2
6-
end_of_line = lf
74
charset = utf-8
8-
trim_trailing_whitespace = true
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
98
insert_final_newline = true
9+
trim_trailing_whitespace = true

.github/workflows/main.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
jobs:
2+
main:
3+
runs-on: ubuntu-latest
4+
steps:
5+
- uses: actions/checkout@v4
6+
- uses: actions/setup-node@v4
7+
with:
8+
node-version: node
9+
- run: npm install
10+
- run: npm test
11+
- uses: JamesIves/github-pages-deploy-action@releases/v4
12+
with:
13+
branch: gh-pages
14+
commit-message: .
15+
folder: dest
16+
git-config-email: [email protected]
17+
git-config-name: Titus Wormer
18+
single-commit: true
19+
name: main
20+
on:
21+
push:
22+
branches:
23+
- website

.gitignore

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
.DS_Store
2-
*.log
1+
dest/
32
node_modules/
3+
*.d.ts
4+
*.log
5+
*.map
6+
*.tsbuildinfo
7+
.DS_Store
48
yarn.lock
5-
dest/
9+
!/types.d.ts

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
ignore-scripts=true
12
package-lock=false

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
dest/
2+
*.html
3+
*.md

.travis.yml

-12
This file was deleted.

package.json

+71-59
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,45 @@
11
{
2-
"name": "www-retext-keywords",
3-
"private": true,
4-
"license": "MIT",
5-
"repository": "retextjs/retext-keywords",
6-
"bugs": "https://github.com/retextjs/retext-keywords/issues",
72
"author": "Titus Wormer <[email protected]> (https://wooorm.com)",
8-
"contributors": [
9-
"Titus Wormer <[email protected]> (https://wooorm.com)"
10-
],
11-
"devDependencies": {
12-
"browserify": "^16.0.0",
13-
"cssnano": "^4.0.0",
14-
"debounce": "^1.0.0",
15-
"global": "^4.0.0",
16-
"postcss-cli": "^6.0.0",
17-
"postcss-preset-env": "^6.0.0",
18-
"prettier": "^1.0.0",
19-
"rehype-cli": "^8.0.0",
20-
"rehype-preset-minify": "^4.0.0",
21-
"rehype-prevent-favicon-request": "^2.0.0",
22-
"remark-cli": "^7.0.0",
23-
"retext-pos": "^2.0.0",
24-
"remark-preset-wooorm": "^6.0.0",
25-
"retext-english": "^3.0.0",
26-
"retext-keywords": "^5.0.0",
27-
"stylelint": "^11.0.0",
28-
"stylelint-config-standard": "^19.0.0",
29-
"tinyify": "^2.0.0",
30-
"unified": "^8.0.0",
31-
"vfile": "^4.0.0",
32-
"virtual-dom": "^2.0.0",
33-
"xo": "^0.25.0"
34-
},
35-
"scripts": {
36-
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix && stylelint src/index.css --fix",
37-
"build:js": "browserify src -p tinyify -o dest/index.js",
38-
"build:css": "postcss src/index.css -o dest/index.css",
39-
"build:html": "rehype -u preset-minify -u prevent-favicon-request src -o dest",
40-
"build": "npm run build:js && npm run build:css && npm run build:html",
41-
"test": "npm run format && npm run build"
42-
},
43-
"prettier": {
44-
"tabWidth": 2,
45-
"useTabs": false,
46-
"singleQuote": true,
47-
"bracketSpacing": false,
48-
"semi": false,
49-
"trailingComma": "none"
50-
},
51-
"xo": {
52-
"prettier": true,
53-
"esnext": false,
54-
"rules": {
55-
"unicorn/prefer-node-append": "off"
56-
}
57-
},
58-
"stylelint": {
59-
"extends": "stylelint-config-standard"
60-
},
613
"browserslist": [
624
"> 1%",
635
"last 2 versions",
646
"not ie <= 8"
657
],
8+
"bugs": "https://github.com/retextjs/retext-keywords/issues",
9+
"contributors": [
10+
"Titus Wormer <[email protected]> (https://wooorm.com)"
11+
],
12+
"devDependencies": {
13+
"@types/nlcst": "^2.0.0",
14+
"@types/react": "^18.0.0",
15+
"@types/react-dom": "^18.0.0",
16+
"cssnano": "^7.0.0",
17+
"devlop": "^1.0.0",
18+
"esbuild": "^0.24.0",
19+
"postcss-cli": "^11.0.0",
20+
"postcss-preset-env": "^10.0.0",
21+
"prettier": "^3.0.0",
22+
"react": "^18.0.0",
23+
"react-dom": "^18.0.0",
24+
"rehype-cli": "^12.0.0",
25+
"rehype-preset-minify": "^7.0.0",
26+
"rehype-prevent-favicon-request": "^4.0.0",
27+
"remark-cli": "^12.0.0",
28+
"remark-preset-wooorm": "^10.0.0",
29+
"retext-english": "^5.0.0",
30+
"retext-keywords": "^8.0.0",
31+
"retext-pos": "^5.0.0",
32+
"retext-stringify": "^4.0.0",
33+
"stylelint": "^16.0.0",
34+
"stylelint-config-standard": "^36.0.0",
35+
"type-coverage": "^2.0.0",
36+
"typescript": "^5.0.0",
37+
"unified": "^11.0.0",
38+
"vfile": "^6.0.0",
39+
"xo": "^0.59.0"
40+
},
41+
"license": "MIT",
42+
"name": "www-retext-keywords",
6643
"postcss": {
6744
"plugins": {
6845
"postcss-preset-env": {},
@@ -71,9 +48,44 @@
7148
}
7249
}
7350
},
51+
"prettier": {
52+
"bracketSpacing": false,
53+
"semi": false,
54+
"singleQuote": true,
55+
"tabWidth": 2,
56+
"trailingComma": "none",
57+
"useTabs": false
58+
},
59+
"private": true,
7460
"remarkConfig": {
7561
"plugins": [
76-
"preset-wooorm"
62+
"remark-preset-wooorm"
7763
]
64+
},
65+
"repository": "retextjs/retext-keywords",
66+
"typeCoverage": {
67+
"atLeast": 100,
68+
"strict": true
69+
},
70+
"type": "module",
71+
"scripts": {
72+
"build": "tsc --build --clean && tsc --build && type-coverage",
73+
"format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo && stylelint src/index.css --fix",
74+
"generate:css": "postcss --output dest/index.css -- src/index.css",
75+
"generate:html": "rehype --frail --output dest/ --quiet --use rehype-preset-minify --use rehype-prevent-favicon-request -- src/",
76+
"generate:js:module": "esbuild src/index.jsx --bundle --conditions=browser,production --define:process.env.NODE_ENV=\\\"production\\\" --format=esm --loader:.js=jsx --log-level=warning --minify --outfile=dest/index.module.js --target=es2020",
77+
"generate:js:nomodule": "esbuild src/index.jsx --bundle --conditions=browser,production --define:process.env.NODE_ENV=\\\"production\\\" --loader:.js=jsx --log-level=warning --minify --outfile=dest/index.nomodule.js --target=es6",
78+
"generate:js": "npm run generate:js:module && npm run generate:js:nomodule",
79+
"generate": "npm run generate:css && npm run generate:html && npm run generate:js",
80+
"test": "npm run build && npm run format && npm run generate"
81+
},
82+
"stylelint": {
83+
"extends": "stylelint-config-standard"
84+
},
85+
"xo": {
86+
"prettier": true,
87+
"rules": {
88+
"logical-assignment-operators": "off"
89+
}
7890
}
7991
}

readme.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
## Related
66

7-
* [retext-sentiment](https://github.com/retextjs/retext-sentiment)
8-
* [retext-pos](https://github.com/retextjs/retext-pos)
9-
* [readability](https://github.com/wooorm/readability)
10-
* [write-music](https://github.com/wooorm/write-music)
11-
* [common-words](https://github.com/wooorm/common-words)
12-
* [short-words](https://github.com/wooorm/short-words)
7+
* [retext-sentiment](https://github.com/retextjs/retext-sentiment)
8+
* [retext-pos](https://github.com/retextjs/retext-pos)
9+
* [readability](https://github.com/wooorm/readability)
10+
* [write-music](https://github.com/wooorm/write-music)
11+
* [common-words](https://github.com/wooorm/common-words)
12+
* [short-words](https://github.com/wooorm/short-words)

0 commit comments

Comments
 (0)