-
Notifications
You must be signed in to change notification settings - Fork 166
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
v0.3.0 #5
Comments
Are the urls not going to be versioned? |
@lucacasonato |
Interesting. I would be careful about magic resolving like that though. It will break all kinds of tooling (deno info, deno cache, deno vscode extension). |
Aleph.js looks very promising. I have some suggestions:
|
@mohsenkhanpour thanks for your kind suggestions!
|
// For default options:
plugins: [`aleph-plugin-sass`]
// For customized option:
plugins: [
{
resolve: `aleph-plugin-sass`,
options: {
postCssPlugins: [somePostCssPlugin()],
precision: 6,
},
},
] also having a naming convention for plugins would be very helpful, Gatsby uses like Having these kinds of convention can give meaningful purpose to plugin system and lead to a rich ecosystem. 2.Yes. What I meant was like less tangled folder structure. This is not necessary now as you said, however as the number of examples and plugins increase it could be a wise idea. 3.I wasn't talking about this repository, I was talking about the application. In the docs it says put your static files in 5.Just create a server, and put the link on the website/repo Readme.md , and please invite us. |
@ije // For global CSS
import ".\style.css" and // For CSS modules
import styles from ".\style.module.css" CRA, Next.js, and Gatbsyjs all support this out of the box. |
|
@mohsenkhanpour CSS modules will be supported directly in the future. |
What is needed for the API functions to be available in the Vercel? |
@shinspiegel If you take a look at the serverless functions Vercel docs it seems like only NodeJS is supported for serverless functions. Once Deno is supported, it should be able to work fine, though it may need some communication with the team on serverless functions for Vercel. |
@shinspiegel @shadowtime2000 this https://github.com/TooTallNate/vercel-deno can help, we should fork it to support aleph's routing |
I have tried serverless with Deno, Vercel definitely supports it. Vercel also supports Python, Ruby and Go. |
@masataka The // /api/hello/[name].ts
import type { APIRequest } from "https://deno.land/x/aleph/types.ts"
export default function handler(req: APIRequest) {
req.status(200).json({ name: 'Hello ' + req.params.name })
} This can not work in Vercel with vercel-deno. |
@ije I see. I confused it with client side routes, however you are refereeing to API routes. I suppose Netlify doesn't support such feature. Have you done any research? |
Forking it would be a great idea. I suppose people who use other frameworks could also benefit from using Deno on the serverless side. @ije BTW have you thought of how to implement custom server (oak)? I see it is in the check list, but there isn't much discussion about it. How does Sapper's custom server and custom API routing work? This is the custom server of default Sapper template: To make it work with Vercel's dynamic routing they just It's a bit confusing. Is Vercel able to run custom server instance? |
I don't believe so, Vercel runs on AWS Lambda and is purely serverless hence the cheaper pricings with frameworks like NextJS and BlitzJS (and soon AlephJS) with stuff like API routes |
@shadowtime2000 It might be that https://github.com/thgh/vercel-sapper converts the custom server to serverless friendly code. How do you think Aleph can implement custom server (eg. oak) in a serverless compatible way? |
@mohsenkhanpour That is probably what is going on, NextJS says you can't get the advantages of a serverless architecture when using a custom server implementation, I think it is best to go with that for now... we can probably implement conversion or something in v0.4. |
We could look into using an adapter system kind of like SvelteKit where you plug an adapter into the |
It seems like with the new project restructure the only thing we need JSDoc in now is EDIT: actually i think there are a couple other functions we need JSDoc for tho too |
@shadowtime2000 good to hear that! writing JSDoc is always hard for me... |
@mohsenkhanpour @shadowtime2000 Custom server is ready in the latest branch. with deno std http server: import { serve } from "https://deno.land/std/http/server.ts"
import { Application, Server } from "https://deno.land/x/aleph/server/mod.ts"
const app = new Appliaction()
const server = new Server(app)
const s = serve({ port: 8080 })
for await (const r of s) {
server.handle(r)
} with oak: import { Application as Oak } from "https://deno.land/x/oak/mod.ts";
import { Application, Server } from "https://deno.land/x/aleph/server/mod.ts"
const oak = new Oak()
const app = new Appliaction()
const server = new Server(app)
oak.use((ctx) => {
server.handle(ctx.request)
})
await oak.listen({ port: 8080 }) |
Great work. |
Server choice of std vs oak might be an option that could be picked from when the Init UI (#47) is in place. Could skip the need for documentation. |
I don't think this is the best way to do this - a custom server is a more "advanced" configuration so users should be able to implement it on their own. |
I disagree, oak is the Deno module (not NodeJS too, only Deno) with the most stars listed on deno.land. It means that many people use it, this choice should be available. |
@Hunam6 I don't think popularity should be the deciding factor. Just because many people use it shouldn't really mean that the choice should be available. Going for a custom server architecture instead of a basic serverless like option is something that should only done once you have a full grasp because if you mess up the entire app goes down. I think it is a good idea to instead kind of "force" people to read the docs on it so they can understand. |
@ije I think we need to add more details to |
What's the current state of Vercel API functions? I can help Maybe we can fork vercel-deno? https://github.com/TooTallNate/vercel-deno |
this probably isnt the best place to put this but could anyone give me some pointers on making a plugin for Aleph? |
@Lite5h4dow the docs updating will land later includes the plugin writing guid! |
Thankyou 😊 |
i implemented this forked from @lucacasonato prior works at https://github.com/alephjs/vercel-aleph |
Is Vue/pluggable-frameworks still a v0.4.0 goal? There's no specific issue for it that I can find, so there's nothing listed under milestones about it either, just passing mentions. |
Here's the roadmap for v0.3.0 updates.
Features
new jsx transformanalyze
for productionNew JSX transform
with new jsx transform, now we can use jsx without importingReact
.We have decided to postpone this feature until later. See #94 for details.
JSX magic
The new compiler will transpile the JSX intelligently, with this you don't need to import specific components, like
Head
,Link
, etc. Just use the native JSX elements instead:Inline CSS
Add inline CSS by
style
tag with SSR support:New Compiler & Bundler (#28)
es5Plugins
sass-loader (improved by @shadowtime2000 (SASS Support for SASS Plugin #41))wasm-loaderAPIs
decodeBody
readBody
(feat: add new method on Request class #35) thanks @shinspiegelServer
Improvements
init
command UI (Simple Init UI #47)Optimization
compilation symlink modeDeployment platform support
The text was updated successfully, but these errors were encountered: