Skip to content
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

Fix issue 603 #630

Merged
merged 4 commits into from
Nov 3, 2022
Merged

Fix issue 603 #630

merged 4 commits into from
Nov 3, 2022

Conversation

jeffesquivels
Copy link
Member

This PR fixes (with one exception, see below) the issue described in #603.

To fix #603, the way packages were created suffered an important change: before all the preparation/copy of files for the package was done via gulp, but since gulp itself is a dev dependency, this wouldn't work once the dev dependencies were removed from the package creation process, so now all that was previously done at the gulp level is done with a new shell script (and since a shell script is more flexible, I included what was previously done via package.json's scripts so that the whole package building process is done in one step and within only that bash script).

There was one other dev dependency that is used for package creation: node-deb, since this one would require a very big effort to replace, I'm moving it to be a non-dev dependency (it is still a good trade-off since node-deb is tiny and the rest of the dev dependencies are huge) but it should be replaced at some point (I've created issue #629 so that we don't forget).

node-deb must be moved to the production dependencies section in order
to use it to produce packages without any dev-dependencies (otherwise it
wouldn't be available to build the packages since that's done after the
removal of the dev-dependencies).

Eventually we should implement the proper fix (which means replacing
node-deb with standard Debian tools to create packages).
To remove dev dependencies from the final packages, they need to be
removed from the package creation process first. This commit does that
by replacing gulp with an external script during that process.
@jeffesquivels jeffesquivels self-assigned this Nov 3, 2022
@jeffesquivels jeffesquivels merged commit c23a4e5 into master Nov 3, 2022
@jeffesquivels jeffesquivels deleted the jeff/fix_603 branch November 3, 2022 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEB package includes dev dependencies
1 participant