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

Some *npm* scripts for maintainance. #1437

Merged
merged 1 commit into from
Jun 16, 2018
Merged

Conversation

Martii
Copy link
Member

@Martii Martii commented Jun 16, 2018

  • npm run clean ... clears the caches. This is usually done when uglify- (at some point terser) needs a refreshing after a dep update (and what I usually get to do by hand for the last few years)
  • Renamed existing scripts to match their counterpart names e.g.
  • npm run preinstall ... will get rid of that pesky package-lock.json when needed and is run on npm install always
  • npm run postinstall... well probably shouldn't run this directly at all but it's there none-the-less (unless you know the state of the checkout then it's okay but direct commands may be faster)

NOTE:

  • Most of these are meant to be very simple scripts. I'd use direct commands but then Windows users would be left out of the mix... so utilizing node native APIs (plus it's less bulky in the package.json)

Applies to #249

* `npm run clean` ... clears the caches. This is usually done when *uglify-* *(at some point terser)* needs a refreshing after a dep update *(and what I usually get to do by hand for the last few years)*
* Renamed existing scripts to match their counterpart names e.g.
* `npm run preinstall` ... will get rid of that pesky `package-lock.json` when needed and is run on `npm install` always
* `npm run postinstall`... well probably shouldn't run this directly at all but it's there none-the-less

NOTE:
* Most of these are meant to be very simple scripts. I'd use direct commands but then Windows users would be left out of the mix... so utilizing *node* native APIs

Applies to OpenUserJS#249
@Martii Martii added enhancement Something we do have implemented already but needs improvement upon to the best of knowledge. CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. labels Jun 16, 2018
@Martii Martii merged commit 3bc21c5 into OpenUserJS:master Jun 16, 2018
@Martii Martii deleted the Issue-249clean branch June 16, 2018 09:32
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. enhancement Something we do have implemented already but needs improvement upon to the best of knowledge.
Development

Successfully merging this pull request may close these issues.

1 participant