Skip to content

Commit

Permalink
Adding build:dev script for spectrum testing.
Browse files Browse the repository at this point in the history
- In `spectrum`:
```bash
cp ../search/search.local.tar.gz ./
gtar -xzf search.local.tar.gz -C public --transform=s%search/index.html%search/app.html% --strip-components=1
```
  • Loading branch information
erinesullivan committed Aug 18, 2023
1 parent ccf7227 commit aec3cbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ coverage

# production
build
*.tar.gz

# misc
.DS_Store
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
},
"scripts": {
"build": "react-scripts build",
"build:dev": "CI=false REACT_APP_LOGIN_BASE_URL=http://localhost:3000 REACT_APP_SPECTRUM_BASE_URL=http://localhost:3000/spectrum npm run build && gtar -C build --transform s/./search/ -czf search.local.tar.gz .",
"develop": "npm run start",
"eject": "react-scripts eject",
"lint": "npx eslint src/**/*.js",
Expand Down

0 comments on commit aec3cbb

Please sign in to comment.