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 build system #781

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

herve0742
Copy link

8380bd3

From a master clone, after npm i launching make run npm i --dev then node app.js --cors launching the server.
Everything is correct except that each time I run make again, it always runs npm i --dev.

b94d176

Once the file static/ethercalc.js removed, while using node 12 or newer, make try to uglify and fails. But if I launch more times make, instead of re-trying to uglify, it never does and launch the server. Connecting to it succeed but creating new page or open existing one result in a "TypeError: SocialCalc.Sheet is undefined" JavaScript exception in the browser like #729. And ethercalc.js contains only one comment.

5b30fb5

Newer npm store more metadata.

82ce485

Like earlier, once the file static/ethercalc.js removed, while using node 12 or newer, make try to uglify and fails with the same error as #777. But running the same command with node v10 success and warn about deprecated function util.error. So this last commit update uglify-js, adapt option in Makefile and embed ethercalc.js and .map as the newer uglify uglifies differently the same source files.

Streamline is not installed by `npm i`, this results in executing the rule on each make invocation.
The first command of the rule of ethercalc.js is to echo in the target file,
updating it's timestamp, so even if the second command fails, the rule won't
be executed on next make invocation.
Uglify-js 2.14.5 uses deprecated functions that are no longer supported by latest node.
npm (8.5.0) installs uglify-js 3.15.3 that uses modified command line options.
With same source files, the newer uglify computes differents outputs.
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.

1 participant