Skip to content

Commit

Permalink
Remove experimental HMR server (#61)
Browse files Browse the repository at this point in the history
* Bump npm dependencies

* 0.12.1

* Remove experimental HMR server

* 0.13.0
  • Loading branch information
rvanasa authored Apr 15, 2024
1 parent ab9f8b5 commit 590a856
Show file tree
Hide file tree
Showing 8 changed files with 159 additions and 250 deletions.
231 changes: 144 additions & 87 deletions package-lock.json

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mo-dev",
"version": "0.12.0",
"version": "0.13.0",
"description": "A live reload development server for Motoko smart contracts.",
"author": "DFINITY Foundation (https://dfinity.org)",
"license": "Apache-2.0",
Expand Down Expand Up @@ -30,21 +30,21 @@
"prepublishOnly": "run-s build test"
},
"dependencies": {
"@dfinity/candid": "0.15.4",
"@dfinity/principal": "0.15.4",
"body-parser": "1.20.2",
"chokidar": "3.5.3",
"commander": "10.0.0",
"cookie-parser": "1.4.6",
"cors": "2.8.5",
"debug": "4.3.4",
"execa": "5.1.1",
"express": "4.19.2",
"fast-glob": "3.2.12",
"morgan": "1.10.0",
"motoko": "3.6.1",
"@dfinity/candid": "^1.2.0",
"@dfinity/principal": "^1.2.0",
"body-parser": "^1.20.2",
"chokidar": "^3.5.3",
"commander": "^10.0.0",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"debug": "^4.3.4",
"execa": "^5.1.1",
"express": "^4.19.2",
"fast-glob": "^3.2.12",
"morgan": "^1.10.0",
"motoko": "^3.6.16",
"node-cleanup": "^2.1.2",
"picocolors": "1.0.0",
"picocolors": "^1.0.0",
"shell-escape": "^0.2.0"
},
"devDependencies": {
Expand Down
33 changes: 0 additions & 33 deletions src/app.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/commands/mo-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,6 @@ const {
.option('-g, --generate', `run \`dfx generate\` on file change`)
.option('-x, --exec <exec>', `execute command on file change`)
.option('-v, --verbose', `show more details in console`, increaseVerbosity)
.addOption(
new Option(
'--hot-reload',
`hot module replacement server (experimental)`,
).hideHelp(),
)
.addOption(
new Option(
'--port <port>',
`hot module replacement server port (default: ${defaultSettings.port})`,
).hideHelp(),
)
.parse()
.opts();

Expand Down
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { serve } from './server';
import { Settings, defaultSettings, validateSettings } from './settings';
import wasm from './wasm';
import { watch } from './watch';
Expand All @@ -12,10 +11,8 @@ export default async function devServer(options: Partial<Settings> = {}) {

const output = {
watcher: await watch(settings),
server: settings.hotReload ? await serve(settings) : null,
close() {
output.watcher.close();
output.server?.close();
},
};
return output;
Expand Down
74 changes: 0 additions & 74 deletions src/routes/canister.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/routes/index.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/server.ts

This file was deleted.

0 comments on commit 590a856

Please sign in to comment.