Skip to content

Commit

Permalink
Removed babel from private catapult-rest (#571)
Browse files Browse the repository at this point in the history
Removed necessary build (that just copies from src to _build)
  • Loading branch information
fboucquez authored Aug 20, 2021
1 parent 5d8c1e9 commit 4d993b1
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 1,727 deletions.
3 changes: 1 addition & 2 deletions client/rest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ WORKDIR /app
COPY . /app/catapult-rest
RUN cd catapult-rest \
&& ./yarn_setup.sh
RUN cd catapult-rest/rest \
&& yarn build
RUN cd catapult-rest/rest
WORKDIR /app/catapult-rest/rest
3 changes: 0 additions & 3 deletions client/rest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Catapult REST gateway combines HTTP and WebSockets to perform read and write act

```
cd rest
yarn build
yarn bootstrap-start
```

Expand All @@ -48,7 +47,6 @@ Alternatively, you can run bootstrap in `detached` mode to avoid opening a new t

```
cd rest
yarn build
yarn bootstrap-start-detached
yarn start:dev
yarn bootstrap-stop
Expand All @@ -58,7 +56,6 @@ Useful for test automation:

```
cd rest
yarn build
yarn bootstrap-start-detached
yarn test
yarn bootstrap-stop
Expand Down
8 changes: 0 additions & 8 deletions client/rest/catapult-sdk/.babelrc

This file was deleted.

9 changes: 1 addition & 8 deletions client/rest/catapult-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
"name": "catapult-sdk",
"version": "0.0.0",
"description": "Catapult SDK core",
"main": "_build/index.js",
"main": "src/index.js",
"scripts": {
"clean": "rimraf _build && mkdir _build && rimraf _build_browser && mkdir _build_browser",
"build": "ncp src/ _build && cross-env BABEL_ENV=production babel src -d _build_browser --source-maps",
"rebuild": "npm run clean && npm run build",
"test": "mocha --full-trace --recursive",
"test:coverage": "nyc npm test && nyc report --reporter=text-lcov",
"test:jenkins": "cross-env JUNIT_REPORT_PATH=test-results.xml mocha --reporter mocha-jenkins-reporter --forbid-only --full-trace --recursive test || exit 0",
Expand All @@ -19,10 +16,6 @@
"author": "",
"license": "ISC",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-plugin-transform-inline-environment-variables": "^6.8.0",
"babel-preset-env": "^1.7.0",
"chai": "^4.2.0",
"coveralls": "^3.0.9",
"cross-env": "^5.2.0",
Expand Down
Loading

0 comments on commit 4d993b1

Please sign in to comment.