lwsjs / lws Goto Github PK
View Code? Open in Web Editor NEWA lean, modular web server for rapid full-stack development.
License: MIT License
A lean, modular web server for rapid full-stack development.
License: MIT License
When the CLI module errors out, it simply logs it and then quits with a zero (success) exit code.
I propose adding process.exitCode=1
to lws/lib/cli-app.js
under Line 25.
If necessary, this can be behind a command line option such as --use-exit-code
if worried about existing implementations.
Related issue: lwsjs/local-web-server#148
Hi,
I faced a weird bug, while trying to load some custom made middleware. The console output an error about my middleware not being found. After some investigation I found that custom middleware are expected to be in a path in lower case (see this line)
This is a very big assumption as many filesystem are case sensitive. Would it be possible to get rid of that limitation ?
What do you think about using the https://allcontributors.org/ bot to automatically generate a contributors section on README?
I think this is a good way to welcome more contributors.
I'm storing my config in lws.config.js
, in my project root. Running npx lws
results in a stackdump:
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:777:11)
at Loader.resolve (internal/modules/esm/loader.js:88:40)
at Loader.getModuleJob (internal/modules/esm/loader.js:241:28)
at Loader.import (internal/modules/esm/loader.js:176:28)
at importModuleDynamically (internal/modules/esm/translators.js:114:35)
at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14)
at getStoredConfig (file:///C:/Workspace/my-project/node_modules/lws/lib/util.mjs:60:7)
at LwsCli.getConfig (file:///C:/Workspace/my-project/node_modules/lws/lib/cli-app.mjs:137:32)
at LwsCli.start (file:///C:/Workspace/my-project/node_modules/lws/lib/cli-app.mjs:26:33)
at file:///C:/Workspace/my-project/node_modules/lws/bin/cli.mjs:5:5
The problem is that this dynamic import is getting the Windows-style literal path C:\Workspace\my-project\lws.config.js
instead of a file URL. Since you already require a pretty modern Node, I think you can safely use pathToFileURL
which should work correctly on any platform.
As I'm working on the issue #13 I'm writing here a first version CONTRIBUTING.md guidelines, using as references:
Is that ok?
I think the SSL certificate that gets bundled here has already expired.
So using --https won't work anymore on Chrome for example.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.