8000 including scripts that help with development and migration · ethereumjs/ethereumjs-config@8c141aa · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 8c141aa

Browse files
committed
including scripts that help with development and migration
1 parent 77a8d28 commit 8c141aa

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

scripts/ethereumjs-config-localdev.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
# from 1.1.1 production to 2.0.0 development
4+
5+
npm remove @ethereumjs/config-nyc @ethereumjs/config-tsc @ethereumjs/config-prettier @ethereumjs/config-tslint
6+
7+
ETHEREUMJS_CONFIG_PATH=/Users/evertonfraga/Projects/Ethereum/ethereumjs-config
8+
9+
npm i --save-dev \
10+
@ethereumjs/config-coverage@file:$ETHEREUMJS_CONFIG_PATH/packages/coverage \
11+
@ethereumjs/config-typescript@file:$ETHEREUMJS_CONFIG_PATH/packages/typescript \
12+
@ethereumjs/config-format@file:$ETHEREUMJS_CONFIG_PATH/packages/format \
13+
@ethereumjs/eslint-config-defaults@file:$ETHEREUMJS_CONFIG_PATH/packages/lint

scripts/migrate-ethereumjs-config.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/sh
2+
3+
# This script helps migrating ethereumjs-config from 1.1.1 to 2.0.0
4+
5+
# 1. Some packages had their names changed, so we'll uninstall and install the new ones.
6+
7+
npm remove @ethereumjs/config-nyc @ethereumjs/config-tsc @ethereumjs/config-prettier @ethereumjs/config-tslint
8+
9+
npm i --save-dev @ethereumjs/config-coverage \
10+
@ethereumjs/config-typescript \
11+
@ethereumjs/config-format \
12+
@ethereumjs/eslint-config-helper \
13+
14+
# 2. Some scripts had changed name
15+
16+
# ethereumjs-config-tsc -> ethereumjs-config-ts-compile
17+
sed -E -e 's/ethereumjs\-config\-tsc/ethereumjs-config-ts-compile/' -ibak package.json
18+
19+
# ethereumjs-config-build -> ethereumjs-config-ts-build
20+
sed -E -e 's/ethereumjs\-config\-build/ethereumjs-config-ts-build/' -ibak package.json
21+
22+
23+
# 3. Some scripts are just gone
24+
25+
echo "Checking for deprecated scripts. Please remove the pointed scripts below (if any)."
26+
27+
# ethereumjs-config-coveralls -> ☠️
28+
grep -EHn "ethereumjs-config-coveralls" package.json
29+
30+
# ethereumjs-config-lint -> ☠️
31+
# ethereumjs-config-lint-fix -> ☠️
32+
grep -EHn "ethereumjs-config-tslint(-fix)?" package.json

0 commit comments

Comments
 (0)
0