-
Hello.. I tried to manually upgrade from 1.3.0 to 1.4.0 following the git log. Is there any an easy way please? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 15 replies
-
Look at the new Elderjs/template, package.json. you should have a new
script `dev`. The two main change are dynamic routes and unification of
elder and roll up, so the scrip to start elder change.
Le sam. 15 mai 2021 à 19:03, Sai Krishna ***@***.***> a
écrit :
… Hello..
I tried to manually upgrade from 1.3.0 to 1.4.0 following the git log. Is
there any an easy way please?
thank you.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#174>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADA4KPENE6NRJPMAIB3TCK3TN2SOPANCNFSM446CBJ7A>
.
|
Beta Was this translation helpful? Give feedback.
-
@s-kris See the release notes: https://github.com/Elderjs/elderjs/releases/tag/1.4.0 Basically this change shouldn't be breaking for most people in prod unless you're using the For development, I refactored to |
Beta Was this translation helpful? Give feedback.
-
Maybe we should move some code from the template to the main repo to avoid those kind of confusion. Quick though on it, we can:
// Default behavior
server: {
type: 'polka',
options: {
cors: true,
compression: 6,
...
}
}
// OR, for a more custom server :
// Where the elder argument is:
// const { Elder } = require('@elderjs/elderjs');
//const elder = new Elder({ context: 'server' });
server: (elder) => {
// Custom server call
} This way, the template would only be made of:
If we are going this direction, we can even make With these changes, a quick start guide without a template may also be easy to write. |
Beta Was this translation helpful? Give feedback.
-
Seems legit :)
Le dim. 16 mai 2021 à 17:48, Nick Reese ***@***.***> a écrit :
… @kiuKisas <https://github.com/kiuKisas> I like the idea of having a quick
start guide, but moving each of these into the core results in less
flexibility for most projects. It may appeal to beginners more, but I think
mid level devs will be more comfortable when things are obvious.
If the goal is to appeal to beginners I'd rather spend the effort building
a full fledged blog template, with email subscribe, etc.
Notes on each:
- The goal of keeping svelte.config.js and rollup.config.js separate
is to minimize magic and give users full control over their project. It
also keeps the complexity down on our end. As long as the user has
something like below in their rollup.config.js then they'll pickup
future changes. For example on each of my projects we have other rollup
configs that we use in addition to the Elder.js one.
const { getRollupConfig } = ***@***.***/elderjs');const svelteConfig = require('./svelte.config');module.exports = [...getRollupConfig({ svelteConfig })];
-
Build could be moved into the core but then we'd probably want to
offer a CLI to trigger it. I'm more of the opinion that keeping things
obvious is the right move. Most of our internal projects trigger something
before/after build, that is why it was built this way.
-
server with most devs having at least some experience with express,
hapi, polka, fastify, etc. Having this be obvious is key. It allows
for easy implementation of sessions and any other middleware in SSR
mode. For instance in one of our installs we run Elder.js in SSR mode with
a postgraphile middleware that powers querying things on the client
and data piping on the server. I fear moving these into the core would make
things easier for beginners but slow down power users.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#174 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADA4KPEVKYKSQ2JQ2C3I6N3TN7SMHANCNFSM446CBJ7A>
.
|
Beta Was this translation helpful? Give feedback.
-
People.. I upgraded my second codebase today and started seeing errors in dev. But here's the thing, kindly observe how the errors popup upon on route navigation.
|
Beta Was this translation helpful? Give feedback.
@s-kris See the release notes: https://github.com/Elderjs/elderjs/releases/tag/1.4.0
Basically this change shouldn't be breaking for most people in prod unless you're using the
middleware
hook. Everything else is backwards compatible.For development, I refactored to
npm run dev:rollup
andnpm run dev:server
into a single process.