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

add clean command in npm scripts #250

Open
hsiaoyi0504 opened this issue Oct 25, 2018 · 0 comments
Open

add clean command in npm scripts #250

hsiaoyi0504 opened this issue Oct 25, 2018 · 0 comments

Comments

@hsiaoyi0504
Copy link
Member

hsiaoyi0504 commented Oct 25, 2018

The idea of this is to have a npm script that can clean up files copied from node_modules folder to the place we want by webpack. This enhancement have at least following two benefits:

  1. Reduce the complexity of developing front-end javascript/css based on new npm packages
  2. boost the robustness of the deployment through deploy.sh

That is because currently we need to manually clean up files collected by webpack.

High level usage

Run this command: npm run clean.

When we want update (deploy) new genomics-workspace from one version to another version, the procedure will be following:

  1. npm run clean
  2. use git switch to newer version
  3. npm run build
  4. deploy.sh

Low level details

The current implementation in my mind is to have a script would remove files listed in .gitignore, but would not remove media folder.

@hsiaoyi0504 hsiaoyi0504 changed the title add cleanup in npm scripts add cleanup command in npm scripts Oct 25, 2018
@hsiaoyi0504 hsiaoyi0504 changed the title add cleanup command in npm scripts add clean command in npm scripts Dec 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant