mirror of
https://github.com/coder/code-server.git
synced 2025-07-25 02:43:42 +08:00

* Update Code to 1.94.2 * Convert from yarn to npm This is to match VS Code. We were already partially using npm for the releases so this is some nice alignment. * Update caniuse-lite This was complaining on every unit test. * Update eslint I was having a bunch of dependency conflicts and eslint seemed to be the culprit so I just removed it and set it up again, since it seems things have changed quite a bit. * Update test dependencies I was getting oom when running the unit tests...updating seems to work. * Remove package.json `scripts` property in release The new pre-install script was being included, which is dev-only. This was always the intent; did not realize jq's merge was recursive. * Remove jest and devDependencies in release as well * Update test extension dependencies This appears to be conflicting with the root dependencies. * Fix playwright exec npm does not let you run binaries like yarn does, as far as I know. * Fix import of server-main.js * Fix several tests by waiting for selectors
27 lines
952 B
Bash
Executable File
27 lines
952 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
main() {
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
doctoc --title '# FAQ' docs/FAQ.md > /dev/null
|
|
doctoc --title '# Setup Guide' docs/guide.md > /dev/null
|
|
doctoc --title '# Install' docs/install.md > /dev/null
|
|
doctoc --title '# npm Install Requirements' docs/npm.md > /dev/null
|
|
doctoc --title '# Contributing' docs/CONTRIBUTING.md > /dev/null
|
|
doctoc --title '# Maintaining' docs/MAINTAINING.md > /dev/null
|
|
doctoc --title '# Contributor Covenant Code of Conduct' docs/CODE_OF_CONDUCT.md > /dev/null
|
|
doctoc --title '# iPad' docs/ipad.md > /dev/null
|
|
doctoc --title '# Termux' docs/termux.md > /dev/null
|
|
|
|
if [[ ${CI-} && $(git ls-files --other --modified --exclude-standard) ]]; then
|
|
echo "Files need generation or are formatted incorrectly:"
|
|
git -c color.ui=always status | grep --color=no '\[31m'
|
|
echo "Please run the following locally:"
|
|
echo " npm run doctoc"
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
main "$@"
|