Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
05dd1c9
Setup environment for decaffeination
paul90 May 22, 2025
10846c6
rename the tests, from .coffee to .js
paul90 May 22, 2025
b2b699f
convert test to JavaScript
paul90 May 22, 2025
f89145f
Add forgotten prettier scripts
paul90 May 22, 2025
c5183a7
remove old version of action
paul90 May 22, 2025
0f0ae69
rename defaultargs
paul90 May 22, 2025
e1fe305
convert defaultargs to JavaScript
paul90 May 22, 2025
e318a83
rename page
paul90 May 22, 2025
8a1d6aa
convert page to JavaScript
paul90 May 22, 2025
f637db4
rename plugin
paul90 May 22, 2025
d944ea3
convert plugin to JavaScript
paul90 May 22, 2025
9dee990
rename random
paul90 May 22, 2025
d9d3b6a
convert random to JavaScript
paul90 May 22, 2025
65c9c42
rename security
paul90 May 22, 2025
4172ac7
convert security to JavaScript
paul90 May 22, 2025
f5a0fde
rename search
paul90 May 23, 2025
555f4d3
convert search to JavaScript
paul90 May 25, 2025
d3d72b9
rename sitemap
paul90 May 25, 2025
2a7473b
convert sitemap to JavaScript
paul90 May 26, 2025
3822d17
rename server
paul90 May 26, 2025
14a0702
convert server to JavaScript
paul90 May 27, 2025
e1dbb3c
Tidyup and fix search
paul90 May 28, 2025
68acedd
Fix lineup route
paul90 May 28, 2025
0d1110c
Remove use of Grunt
paul90 May 28, 2025
9063910
Support shorter sitemap timeout in test
paul90 May 28, 2025
1ecf4c2
update ignore files
paul90 May 28, 2025
1cc4f98
asSlug returns slug
paul90 Jun 1, 2025
026765d
replace should
paul90 Jun 1, 2025
9beea9e
Improve server shutdown when testing
paul90 Jun 2, 2025
71cdbac
Improve asynchronous behavior of page tests
paul90 Jun 2, 2025
ddef9e6
replace mocha with node test runner
paul90 Jun 2, 2025
110d035
update to express5, and devDependencies
paul90 Jun 19, 2025
104ccde
Only express 4 -> 5 change needed from run test.
paul90 Jun 19, 2025
5e6a5a2
Allow send of dotfiles
paul90 Jun 19, 2025
6069875
replace CoffeeScript template literals to JavaScript
paul90 Jun 24, 2025
3e9e29e
replace node-fetch with native fetch api
paul90 Jun 24, 2025
e8c7533
Merge pull request #198 from fedwiki/express5
paul90 Jun 24, 2025
7d61173
Merge branch 'fetch' into decaffeinate
paul90 Jun 24, 2025
16cdfc1
Cache plugin page locations during startup
paul90 Jun 27, 2025
0fc3d74
Replace glob-based plugin lookup with package.json scanning
paul90 Jun 27, 2025
6d31105
Replace glob with package.json dependencies lookup
paul90 Jun 30, 2025
aed7cf9
and remove glob package
paul90 Jun 30, 2025
f8da5db
Add test package.json, no need for a mock.
paul90 Jun 30, 2025
fd1f51c
Remember to remove `wiki-pligin-` from name
paul90 Jun 30, 2025
304e230
replace deprecated fs.exists with fs.access
paul90 Jul 1, 2025
5665d52
replace deprecated use of new Buffer()
paul90 Jul 1, 2025
a6c590d
Merge pull request #199 from fedwiki/deglob
paul90 Jul 2, 2025
2083328
Merge branch 'decaffeinate' into deprecated
paul90 Jul 2, 2025
d904717
Merge pull request #200 from fedwiki/deprecated
paul90 Jul 2, 2025
67cd70b
Replace async.map
paul90 Jul 7, 2025
8459578
Merge pull request #201 from fedwiki/replace-async
paul90 Jul 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Prettier Check

on: [pull_request]

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: npm ci

- name: Run Prettier check
run: npm run prettier:check

# - name: Annotate Pull Request with Results
# if: failure()
# uses: actions/github-script@v7
# with:
# script: |
# github.rest.issues.createComment({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: '⚠️ Prettier found formatting issues. Please fix them.'
# })
31 changes: 0 additions & 31 deletions .github/workflows/node.js.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
# Releases https://github.com/nodejs/release#release-schedule
node-version:
- 20.x # Maintenance
- 22.x # LTS
- 24.x # Current

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@
config.json
/data
/spec/data
/client/client.js
/client/test/testclient.js
/client/plugins/*.js
/client/plugins/**/*.js
/client/plugins/pushpin/**/*.js
/client/chart/
/client/garden/
/default-data/status/sitemap.json
node_modules
npm-debug.log
temp
coverage
10 changes: 9 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/data
config.json

.github/
.mailmap
.prettier*
.vscode/
.zed/
eslint.config.js
scripts/
test/
coverage
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"semi": false,
"singleQuote": true,
"bracketSpacing": true,
"bracketSameLine": true,
"arrowParens": "avoid",
"printWidth": 120
}
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
7 changes: 7 additions & 0 deletions .zed/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Folder-specific settings
//
// For a full list of overridable settings, and general information on folder-specific settings,
// see the documentation: https://zed.dev/docs/configuring-zed#settings-files
{
"format_on_save": "on"
}
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ Eric Dobbs <eric@dobbse.net>
Joshua Benuck <joshua_benuck@yahoo.com>
Tom Lieber <tom@alltom.com>
Andrew Shell <andrew@andrewshell.org>
jon r <jon@allmende.io>
55 changes: 0 additions & 55 deletions Gruntfile.js

This file was deleted.

24 changes: 24 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import globals from 'globals'
import pluginJs from '@eslint/js'

/** @type {import('eslint').Linter.Config[]} */
export default [
pluginJs.configs.recommended,
{
rules: {
'no-unused-vars': 'warn',
},
},
{ ignores: ['client/*'] },
{
languageOptions: {
sourceType: 'commonjs',
globals: {
wiki: 'readonly',
...globals.node,
...globals.nodeBuiltin,
...globals.mocha,
},
},
},
]
10 changes: 3 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
// Simple file so that if you require this directory
// in node it instead requires ./lib/server.coffee
// with coffee-script already loaded.
require('coffeescript');
require('coffeescript/register');
require('coffeescript')
require('coffeescript/register')

// set a default process exitCode, so we can diferentiate between exiting as
// part of a reload, and an exit after an uncaught error
process.exitCode = 1

module.exports = require('./lib/server');
module.exports = require('./lib/server')
77 changes: 0 additions & 77 deletions lib/defaultargs.coffee

This file was deleted.

Loading