Rename static dir

This commit is contained in:
c-bata
2022-03-20 02:03:35 +09:00
parent 1a7554e6e6
commit 3af6444f84
26 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -1 +1 @@
optuna_dashboard/static/components/PlotlyDarkMode.ts
optuna_dashboard/ts/components/PlotlyDarkMode.ts
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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',