mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-09 11:28:14 +08:00
Rename static dir
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
optuna_dashboard/static/components/PlotlyDarkMode.ts
|
||||
optuna_dashboard/ts/components/PlotlyDarkMode.ts
|
||||
+1
-1
@@ -7,7 +7,7 @@ RUN npm install
|
||||
|
||||
ADD ./tsconfig.json /usr/src/tsconfig.json
|
||||
ADD ./webpack.config.js /usr/src/webpack.config.js
|
||||
ADD ./optuna_dashboard/static/ /usr/src/optuna_dashboard/static
|
||||
ADD ./optuna_dashboard/ts/ /usr/src/optuna_dashboard/ts
|
||||
RUN mkdir -p /usr/src/optuna_dashboard/public
|
||||
RUN npm run build:prd
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { cleanup, render, fireEvent } from "@testing-library/react"
|
||||
import {
|
||||
DataGrid,
|
||||
DataGridColumn,
|
||||
} from "../optuna_dashboard/static/components/DataGrid"
|
||||
} from "../optuna_dashboard/ts/components/DataGrid"
|
||||
|
||||
afterEach(cleanup)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import React from "react"
|
||||
global.URL.createObjectURL = jest.fn()
|
||||
|
||||
import { cleanup, render, within, fireEvent } from "@testing-library/react"
|
||||
import { TrialTable } from "../optuna_dashboard/static/components/StudyDetail"
|
||||
import { TrialTable } from "../optuna_dashboard/ts/components/StudyDetail"
|
||||
|
||||
afterEach(cleanup)
|
||||
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@
|
||||
"description": "Dashboard for Optuna",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"fmt": "prettier --write \"optuna_dashboard/static/**/*.{ts,tsx}\" \"frontend_tests/*.{ts,tsx}\"",
|
||||
"lint": "eslint . --ext .ts,.tsx && prettier --list-different \"optuna_dashboard/static/**/*.{ts,tsx}\" \"frontend_tests/*.{ts,tsx}\"",
|
||||
"fmt": "prettier --write \"optuna_dashboard/ts/**/*.{ts,tsx}\" \"frontend_tests/*.{ts,tsx}\"",
|
||||
"lint": "eslint . --ext .ts,.tsx && prettier --list-different \"optuna_dashboard/ts/**/*.{ts,tsx}\" \"frontend_tests/*.{ts,tsx}\"",
|
||||
"watch": "NODE_ENV=development TYPESCRIPT_LOADER=esbuild-loader webpack --watch",
|
||||
"build": "webpack",
|
||||
"build:dev": "NODE_ENV=development TYPESCRIPT_LOADER=esbuild-loader webpack",
|
||||
|
||||
+2
-2
@@ -21,10 +21,10 @@
|
||||
"strict": true
|
||||
},
|
||||
"files": [
|
||||
"./optuna_dashboard/static/index.tsx"
|
||||
"./optuna_dashboard/ts/index.tsx"
|
||||
],
|
||||
"include": [
|
||||
"./optuna_dashboard/static/types/**/*",
|
||||
"./optuna_dashboard/ts/types/**/*",
|
||||
"./frontend_tests/**/*"
|
||||
],
|
||||
"types": ["node"]
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ const typeScriptLoader = process.env.TYPESCRIPT_LOADER === "esbuild-loader" ? {
|
||||
|
||||
var config = {
|
||||
mode,
|
||||
entry: [__dirname + '/optuna_dashboard/static/index.tsx'],
|
||||
entry: [__dirname + '/optuna_dashboard/ts/index.tsx'],
|
||||
output: {
|
||||
path: __dirname + '/optuna_dashboard/public/',
|
||||
filename: 'bundle.js',
|
||||
|
||||
Reference in New Issue
Block a user