-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
Improve developper experience with scripts and migrations #494
Comments
Actually we have the same problem with the migrations: npm run build:app
# Generate the migration file based on the entities changes
npm run migration:generate -- -n name-of-this-migration
# Build the migration files
npm run build:migrations |
Maybe the simpler solution could be to just extend the This would also remove |
Yeap, I agree, I can't think about a case in which I would NOT want the compiled js files to be overwritten. build folder should sctrictly be the product of the rest of the files, so it should always be ok to prune it and regenerate it from sources. |
Yes the first idea of having three separate tsconfig for the migrations, scripts and application was to make the compilation faster. But I'm not sure this is really true since This would simplify user experience IMO |
It would be great to have an out of the box solution for recompiling a ts app as fast as possible in dev mode, there are many options available |
@opensas yes I have a draft that describes version 2. I'll open an issue on this when I'll get a chance. The main idea of v2 will be to remove some hacky solutions and technical debts that require some breaking changes. |
Feature added in v2 (version will be released in the summer). |
Previous issue name: Make "foal run" build and run the script
Issue
As mentioned in #467, in development, it is tedious to always have to run
npm run build:scripts
beforefoal run xxx
.SolutionAdd a configuration keysettings.scripts.autoBuild
which, when set to true, tells thefoal run
command to build the script before.This behavior could be override with the flag--no-build
(note: update the threefoal run create-user
in the tutorial).Each new project will have a.env
file with the configuration set to true.Since this file is not commited, the commandfoal run
won't try to build the scripts on deployed servers.The text was updated successfully, but these errors were encountered: