Skip to content

Commit

Permalink
use vite instead of webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
syifan committed May 30, 2023
1 parent 3dbe5a5 commit e38e7bb
Show file tree
Hide file tree
Showing 55 changed files with 856 additions and 46,747 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"version": "0.2.0",
"configurations": [
{
"name": "Test github/sarchlab/akita/monitoring",
"name": "Test github.com/sarchlab/akita/monitoring",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${workspaceFolder}/monitoring"
},
{
"name": "Test github/sarchlab/akita",
"name": "Test github.com/sarchlab/akita",
"type": "go",
"request": "launch",
"mode": "test",
Expand Down
4 changes: 2 additions & 2 deletions doc/gomod.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Experiments usually require the user to start a new repo to hold the starting co
module gitlab.com/syifan/multi_gpu_experiments
require (
github/sarchlab/akita v1.2.3
github.com/sarchlab/akita v1.2.3
gitlab.com/akita/gcn3 v1.2.2
gitlab.com/akita/mem v1.1.2
gitlab.com/akita/noc v1.1.1
Expand All @@ -35,7 +35,7 @@ However, editing multiple repos sequentially is not always a solution. For examp
module gitlab.com/syifan/multi_gpu_experiments
require (
github/sarchlab/akita v1.2.3
github.com/sarchlab/akita v1.2.3
gitlab.com/akita/gcn3 v1.2.2
gitlab.com/akita/mem v1.1.2
gitlab.com/akita/noc v1.1.1
Expand Down
6 changes: 3 additions & 3 deletions doc/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ import (
"github.com/golang/mock/gomock"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github/sarchlab/akita"
"github/sarchlab/akita/mock_akita"
"github.com/sarchlab/akita"
"github.com/sarchlab/akita/mock_akita"
)

var _ = Describe("Forwarder", func() {
Expand Down Expand Up @@ -163,7 +163,7 @@ go install github.com/golang/mock/mockgen
Suppose we want to mock the `Port` interface, we can simply run:

```bash
mockgen github/sarchlab/akita Port > mock_akita/mock_port.go
mockgen github.com/sarchlab/akita Port > mock_akita/mock_port.go
```

## Integration Testing
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github/sarchlab/akita/v3
module github.com/sarchlab/akita/v3

require (
github.com/go-sql-driver/mysql v1.7.1
Expand Down
6 changes: 3 additions & 3 deletions monitoring/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import (
// Enable profiling
_ "net/http/pprof"

"github/sarchlab/akita/v3/monitoring/web"
"github/sarchlab/akita/v3/sim"
"github.com/sarchlab/akita/v3/sim"

"github.com/google/pprof/profile"
"github.com/gorilla/mux"
"github.com/sarchlab/akita/v3/monitoring/web/dist"

Check failure on line 28 in monitoring/monitor.go

View workflow job for this annotation

GitHub Actions / Unit Test

no required module provides package github.com/sarchlab/akita/v3/monitoring/web/dist; to add it:

Check failure on line 28 in monitoring/monitor.go

View workflow job for this annotation

GitHub Actions / Compile

no required module provides package github.com/sarchlab/akita/v3/monitoring/web/dist; to add it:
"github.com/shirou/gopsutil/process"
"github.com/syifan/goseth"
)
Expand Down Expand Up @@ -134,7 +134,7 @@ func (m *Monitor) CompleteProgressBar(pb *ProgressBar) {
func (m *Monitor) StartServer() {
r := mux.NewRouter()

fs := web.GetAssets()
fs := dist.GetAssets()
fServer := http.FileServer(fs)
r.HandleFunc("/api/pause", m.pauseEngine)
r.HandleFunc("/api/continue", m.continueEngine)
Expand Down
2 changes: 1 addition & 1 deletion monitoring/monitor_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package monitoring
import (
"reflect"

"github/sarchlab/akita/v3/sim"
"github.com/sarchlab/akita/v3/sim"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down
Binary file removed monitoring/web/.DS_Store
Binary file not shown.
25 changes: 24 additions & 1 deletion monitoring/web/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
node_modules
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
1 change: 0 additions & 1 deletion monitoring/web/compilation-stats.json

This file was deleted.

Loading

0 comments on commit e38e7bb

Please sign in to comment.