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

[WIP] add node-report to core #19661

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
tools: add node-report update script
  • Loading branch information
richardlau committed Aug 14, 2018
commit 71b475edfd8c46a874658ac4a8ce6e21640a6c3f
31 changes: 31 additions & 0 deletions tools/update-node-report.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash

# Shell script to update ESLint in the source tree to the latest release.

# Depends on npm and node being in $PATH.

# This script must be be in the tools directory when it runs because it uses
# $BASH_SOURCE[0] to determine directories to work in.

cd "$( dirname "${BASH_SOURCE[0]}" )/../deps/"
rm -rf node-report
mkdir node-report-tmp
cd node-report-tmp
npm init --yes

LATEST=`npm view node-report version`
wget "https://github.com/nodejs/node-report/archive/v${LATEST}.tar.gz"
tar xfz "v${LATEST}.tar.gz"

cd "node-report-${LATEST}"
npm install --global-style --no-bin-links --production --no-package-lock --ignore-scripts

# Install dmn if it is not in path.
type -P dmn || npm install -g dmn

# Use dmn to remove some unneeded files.
dmn -f clean

cd ../..
mv "node-report-tmp/node-report-${LATEST}" node-report
rm -rf node-report-tmp/