chore(Makefile): simplify install_frontend target by removing unnecessary conditional statement
feat(Makefile): add install_frontendc target to install frontend dependencies using npm ci for clean installs feat(Makefile): add frontendc target to install frontend dependencies using npm ci and run frontend chore(ApiModal/index.tsx): reformat codesArray for better readability
This commit is contained in:
parent
9096fcd110
commit
16fa3a66b8
2 changed files with 15 additions and 6 deletions
13
Makefile
13
Makefile
|
|
@ -32,11 +32,10 @@ lint:
|
|||
poetry run ruff . --fix
|
||||
|
||||
install_frontend:
|
||||
@if [ "$(clean)" = "true" ]; then \
|
||||
cd src/frontend && npm ci; \
|
||||
else \
|
||||
cd src/frontend && npm install; \
|
||||
fi
|
||||
cd src/frontend && npm install;
|
||||
|
||||
install_frontendc:
|
||||
cd src/frontend && npm ci;
|
||||
|
||||
run_frontend:
|
||||
cd src/frontend && npm start
|
||||
|
|
@ -44,6 +43,10 @@ run_frontend:
|
|||
frontend:
|
||||
make install_frontend
|
||||
make run_frontend
|
||||
|
||||
frontendc:
|
||||
make install_frontendc
|
||||
make run_frontend
|
||||
|
||||
install_backend:
|
||||
poetry install
|
||||
|
|
|
|||
|
|
@ -49,7 +49,13 @@ const ApiModal = forwardRef(
|
|||
const pythonCode = getPythonCode(flow, tweak.current, tabsState);
|
||||
const widgetCode = getWidgetCode(flow, tabsState);
|
||||
const tweaksCode = buildTweaks(flow);
|
||||
const codesArray = [curl_code, pythonApiCode, pythonCode, widgetCode, pythonCode];
|
||||
const codesArray = [
|
||||
curl_code,
|
||||
pythonApiCode,
|
||||
pythonCode,
|
||||
widgetCode,
|
||||
pythonCode,
|
||||
];
|
||||
const [tabs, setTabs] = useState(tabsArray(codesArray, 0));
|
||||
|
||||
function startState() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue