This pull request fixes both cleaning scripts from the project being broken (see issue #11). It removes an incorrect call to start the express server whenever the file was imported, which resulted in either the npm run clean script never finishing or other various errors for npm run clean:all
New Changes:
Removed the unconditional call to start the express server in server-express.js.
Testing Instructions:
Pull this branch locally and switch to it.
Run the cleaning scripts with npm run clean and npm run clean:all.
Verify that no errors are returned.
Verify that other scripts (npm run dev, npm run start, etc) still work as expected
Technical Background Info:
The express server was previously started whenever server-express.js was imported due to an incorrect call. This has been fixed by removing the automatic call and only starting the server when the Start() function is called.
This pull request fixes both cleaning scripts from the project being broken (see issue #11). It removes an incorrect call to start the express server whenever the file was imported, which resulted in either the
npm run clean
script never finishing or other various errors fornpm run clean:all
New Changes:
server-express.js
.Testing Instructions:
npm run clean
andnpm run clean:all
.npm run dev
,npm run start
, etc) still work as expectedTechnical Background Info: The express server was previously started whenever
server-express.js
was imported due to an incorrect call. This has been fixed by removing the automatic call and only starting the server when theStart()
function is called.