You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Group Income current uses grunt. Grunt is a bit outdated. New Chelonia-based projects should use the chel command for doing almost everything.
Grunt, though sporting many nice features, is not tailor suited for what we're doing and has some rather annoying behaviors, especially as it relates to errors.
For example, you cannot do this:
try{grunt.task.run(['build',`_pin:${version}`])}catch(e){grunt.log.error(e)packageJSON.contractsVersion=savedContractsVersiontry{writePackageJSON(savedContractsVersion)}catch(e2){grunt.log.error(chalk.red("couldn't restore package.json contractsVersion! please update it manually!"),e2)}process.exit(1)}
Exceptions thrown by tasks run by grunt.task.run cannot be caught like this. It will result in an error like this:
The https://github.com/okTurtles/chel/ project should be updated and issues created (and implemented) to replicate some of the features we're currently implementing using grunt, e.g. like grunt pin, grunt deploy, grunt serve etc.
We probably don't want to implement our own build system, so that we can integrate with other projects out there, e.g. Vite, rolldown, esbuild, etc. But a lot of these other commands should be done by chel.
Ideally we want a workflow that mimics what we have in Group Income but can be implemented without a Gruntfile.js and only using npm scripts / deno tasks.
The text was updated successfully, but these errors were encountered:
Problem
Group Income current uses grunt. Grunt is a bit outdated. New Chelonia-based projects should use the
chel
command for doing almost everything.Grunt, though sporting many nice features, is not tailor suited for what we're doing and has some rather annoying behaviors, especially as it relates to errors.
For example, you cannot do this:
Exceptions thrown by tasks run by
grunt.task.run
cannot be caught like this. It will result in an error like this:Solution
The https://github.com/okTurtles/chel/ project should be updated and issues created (and implemented) to replicate some of the features we're currently implementing using
grunt
, e.g. likegrunt pin
,grunt deploy
,grunt serve
etc.We probably don't want to implement our own build system, so that we can integrate with other projects out there, e.g. Vite, rolldown, esbuild, etc. But a lot of these other commands should be done by
chel
.Ideally we want a workflow that mimics what we have in Group Income but can be implemented without a
Gruntfile.js
and only using npm scripts / deno tasks.The text was updated successfully, but these errors were encountered: