Skip to content

Commit

Permalink
moved frontend out
Browse files Browse the repository at this point in the history
  • Loading branch information
visualDust committed Dec 2, 2023
1 parent 39d4925 commit 03b44cd
Show file tree
Hide file tree
Showing 59 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-and-publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
with:
node-version: 18
cache: "yarn"
cache-dependency-path: "neetbox/frontend/yarn.lock"
cache-dependency-path: "frontend/yarn.lock"
- name: setup yarn
run: corepack enable
working-directory: neetbox/frontend
working-directory: frontend
- run: yarn install --frozen-lockfile
working-directory: neetbox/frontend
working-directory: frontend
- run: yarn build
working-directory: neetbox/frontend
working-directory: frontend
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ name: Frontend Build & Lint
on:
push:
paths:
- 'neetbox/frontend/**'
- 'frontend/**'
pull_request:
paths:
- 'neetbox/frontend/**'
- 'frontend/**'


jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: neetbox/frontend
working-directory: frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: 'neetbox/frontend/yarn.lock'
cache-dependency-path: 'frontend/yarn.lock'
- name: setup yarn
run: corepack enable
- run: yarn install --frozen-lockfile
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/maunal-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
with:
node-version: 18
cache: "yarn"
cache-dependency-path: "neetbox/frontend/yarn.lock"
cache-dependency-path: "frontend/yarn.lock"
- name: setup yarn
run: corepack enable
working-directory: neetbox/frontend
working-directory: frontend
- run: yarn install --frozen-lockfile
working-directory: neetbox/frontend
working-directory: frontend
- run: yarn build
working-directory: neetbox/frontend
working-directory: frontend
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ export default defineConfig({
},
},
build: {
outDir: "../frontend_dist",
outDir: "../neetbox/frontend_dist",
},
});
File renamed without changes.
4 changes: 2 additions & 2 deletions neetbox.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"path": "."
},
{
"path": "neetbox/frontend"
"path": "frontend"
}
],
"settings": {}
}
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Topic :: Utilities",
]

exclude = ["neetbox/frontend"]
exclude = ["frontend"]
include = ["neetbox/frontend_dist"]

# [[tool.poetry.source]]
Expand Down
2 changes: 1 addition & 1 deletion scripts/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tmux split-window -h
tmux send 'cd tests/client' ENTER
tmux send 'python test.py' ENTER
tmux split-window -f
tmux send 'cd neetbox/frontend' ENTER
tmux send 'cd frontend' ENTER
tmux send 'yarn dev' ENTER
tmux set mouse on
tmux a -t neetbox
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
cd $(dirname $0)/..

tmux new-session -d -s neetbox 'poetry install || sleep 5'
tmux split-window -c neetbox/frontend 'yarn || sleep 5'
tmux split-window -c frontend 'yarn || sleep 5'
tmux a -t neetbox
2 changes: 1 addition & 1 deletion scripts/release.linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
cd $(dirname $0)/..

# build frontend
pushd neetbox/frontend
pushd frontend
yarn build
popd

Expand Down

0 comments on commit 03b44cd

Please sign in to comment.