Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(developer): Keyman Developer Server #6073

Merged
merged 34 commits into from Jan 28, 2022
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
06c5464
feat(developer): web debugger ngrok integration
mcdurdin Dec 15, 2021
0a29123
feat(developer): ngrok configuration
mcdurdin Dec 17, 2021
e569f0a
chore(developer): Merge branch 'master' into feat/developer/node-base…
mcdurdin Dec 19, 2021
44b0335
feat(developer): Keyman Developer Server
mcdurdin Dec 20, 2021
51dc6e4
chore(developer): cleanup build and remove old ngrok code
mcdurdin Dec 21, 2021
f67a5ed
chore(developer): fixup release build
mcdurdin Dec 21, 2021
e172480
chore(developer): add typescript dev-dependency for server
mcdurdin Dec 21, 2021
2c01b19
chore: cleanup
mcdurdin Dec 21, 2021
2a38c69
chore(developer): minor web server refactors and cleanup
mcdurdin Dec 21, 2021
cfbcc36
chore: more cleanup and polish
mcdurdin Dec 21, 2021
64b4a25
chore(developer): rename WebHost to Server
mcdurdin Dec 21, 2021
e35d4e8
chore(developer): polish web debug display on mobile
mcdurdin Dec 21, 2021
eb46acf
chore(developer): validate paths in api
mcdurdin Dec 21, 2021
a858c51
feat(developer): sentry integration into server
mcdurdin Dec 22, 2021
bfcdb5a
feat(developer): last-use and expire old resources
mcdurdin Dec 22, 2021
c1881bc
chore: fix npm install
mcdurdin Dec 22, 2021
7b90496
chore(developer): update icon and fix link
mcdurdin Dec 22, 2021
24063ad
chore(developer): update to node 16 lts
mcdurdin Jan 18, 2022
4dd5904
fix(developer): refresh web host on compile
mcdurdin Jan 19, 2022
76e1c54
fix(developer): update addins for node 16
mcdurdin Jan 19, 2022
8a49377
fix(developer): update addins readme for node 16
mcdurdin Jan 19, 2022
a690702
feat(developer): improve server tray icon
mcdurdin Jan 19, 2022
12baef9
chore(developer): add open npm package, fix typo
mcdurdin Jan 19, 2022
d258d29
chore(developer): fix typo
mcdurdin Jan 19, 2022
86112ca
feat(developer): polish Keyman Developer Server
mcdurdin Jan 19, 2022
619873c
feat(developer): build addins during server build
mcdurdin Jan 20, 2022
19b6579
chore(developer): more cleanup of server
mcdurdin Jan 20, 2022
a3dd159
chore(developer): use github-based packages for node addins
mcdurdin Jan 21, 2022
6228c87
chore(developer): cleanup from code review
mcdurdin Jan 21, 2022
490bc97
chore(developer): attempt to get lerna going again
mcdurdin Jan 21, 2022
9c5b126
chore(developer): Merge branch 'master' into feat/developer/node-base…
mcdurdin Jan 21, 2022
59c1216
chore(developer): ensure tests run when building Server
mcdurdin Jan 23, 2022
64fbded
chore: address review comments
mcdurdin Jan 28, 2022
b428a8a
chore(developer): Merge branch 'master' into feat/developer/node-base…
mcdurdin Jan 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 3 additions & 41 deletions common/models/types/build.sh
Expand Up @@ -73,45 +73,9 @@ else
DRY_RUN=
fi

publish_version=`cat "$KEYMAN_ROOT/VERSION.md"`
publish_tier=`cat "$KEYMAN_ROOT/TIER.md"`

# Validate the publish_version
if [ ! -z "$publish_version" ]; then
# Remove final component if more than 3 components passed
publish_version=` echo "$publish_version" | cut -d "." -f1,2,3 -`
[[ $publish_version =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)$ ]] || fail "-version must be dotted numeric string, e.g. 1.2.3."
fi

if [ -n "$publish_tier" ]; then
# Make sure we're either setting the version or publishing:
if [ -z "$publish_version" ] && (( !should_publish )) ; then
fail "-tier cannot be specified without -version or -publish-to-npm"
fi

case "$publish_tier" in
alpha)
publish_tier=-alpha
npm_dist_tag=alpha
;;
beta)
publish_tier=-beta
npm_dist_tag=beta
;;
stable)
# Stable releases intentionally have a blank publish tier:
publish_tier=
npm_dist_tag=latest
;;
*)
fail "-tier must be one of alpha, beta or stable"
esac
publish_version=$publish_version$publish_tier
fi

# Check that we're doing any task at all!
if (( !run_tests )) && (( !should_publish )) && [ -z "$publish_version" ]; then
echo "$0: Must do at least one of: -test, -version, -publish-npm" >&2
if (( !run_tests )) && (( !should_publish )); then
echo "$0: Must do at least one of: -test, -publish-npm" >&2
display_usage
exit $EX_USAGE
fi
Expand All @@ -124,9 +88,7 @@ if (( install_dependencies )) ; then
npm install || fail "Could not download dependencies."
fi

if [ -n "$publish_version" ]; then
set_npm_version "$publish_version" || fail "Setting version failed."
fi
set_npm_version || fail "Setting version failed."

if (( run_tests )); then
npm test || fail "Tests failed"
Expand Down
804 changes: 413 additions & 391 deletions developer/inst/dist/CHANGELOG.md

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions developer/inst/dist/Keyman_README.md
@@ -0,0 +1,7 @@
# Bundled node.js

We are bundling node 16 here at present.

Note that if we change the node version, we will need to
rebuild the binary modules in /developer/server/src/win32/
to match the NAPI version.
230 changes: 159 additions & 71 deletions developer/inst/dist/LICENSE

Large diffs are not rendered by default.