Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
ba460382
Commit
ba460382
authored
Feb 05, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove type-gen script
parent
e35225ff
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
29 deletions
+3
-29
frontend-tests.yml
.github/workflows/frontend-tests.yml
+0
-4
Dockerfile
Dockerfile
+1
-1
development.md
docs/development.md
+1
-1
build.ps1
scripts/build.ps1
+1
-5
build.sh
scripts/build.sh
+0
-8
start.ps1
scripts/start.ps1
+0
-10
No files found.
.github/workflows/frontend-tests.yml
View file @
ba460382
...
...
@@ -25,8 +25,6 @@ jobs:
cache-dependency-path
:
"
web/pnpm-lock.yaml"
-
run
:
pnpm install
working-directory
:
web
-
run
:
pnpm type-gen
working-directory
:
web
-
name
:
Run eslint check
run
:
pnpm lint
working-directory
:
web
...
...
@@ -45,8 +43,6 @@ jobs:
cache-dependency-path
:
"
web/pnpm-lock.yaml"
-
run
:
pnpm install
working-directory
:
web
-
run
:
pnpm type-gen
working-directory
:
web
-
name
:
Run frontend build
run
:
pnpm build
working-directory
:
web
Dockerfile
View file @
ba460382
...
...
@@ -6,7 +6,7 @@ COPY . .
WORKDIR
/frontend-build/web
RUN
corepack
enable
&&
pnpm i
--frozen-lockfile
&&
pnpm type-gen
RUN
corepack
enable
&&
pnpm i
--frozen-lockfile
RUN
pnpm build
...
...
docs/development.md
View file @
ba460382
...
...
@@ -30,7 +30,7 @@ Memos is built with a curated tech stack. It is optimized for developer experien
3.
Install frontend dependencies and generate TypeScript code from protobuf
```
cd web && pnpm i
&& pnpm type-gen
cd web && pnpm i
```
4.
Start the dev server of frontend
...
...
scripts/build.ps1
View file @
ba460382
...
...
@@ -73,11 +73,7 @@ if (!$?) {
Write-Host
"Frontend built!"
-f green
}
Write-Host
"
`n
Generating buf types..."
-f DarkYellow
$frontendTime
=
Measure-Command
{
&pnpm
type
-gen | Out-Host
}
if
(!
$?
)
{
f
(!
$?
)
{
Write-Host
-BackgroundColor red -ForegroundColor white
"Could not generate buf types. See above."
Exit
1
}
else
{
...
...
scripts/build.sh
View file @
ba460382
...
...
@@ -74,14 +74,6 @@ if [ $? -ne 0 ]; then
fi
echo
-e
"
\0
33[32mFrontend dependencies installed!
\0
33[0m"
echo
-e
"
\n\0
33[33mGenerating buf types...
\0
33[0m"
pnpm type-gen
if
[
$?
-ne
0
]
;
then
echo
-e
"
\0
33[0;31mCould not generate buf types! Exiting.
\0
33[0m"
exit
1
fi
echo
-e
"
\0
33[32mbuf types generated!
\0
33[0m"
echo
-e
"
\n\0
33[33mBuilding frontend...
\0
33[0m"
pnpm build
if
[
$?
-ne
0
]
;
then
...
...
scripts/start.ps1
View file @
ba460382
...
...
@@ -28,16 +28,6 @@ $runTasks = @(
Dir
=
"
$repoRoot
/web"
Wait
=
$true
;
}
,
@
{
Desc
=
"generate buf types"
;
Exe
=
"powershell.exe"
;
Args
=
(
"-Command"
,
"pnpm type-gen"
)
;
Dir
=
"
$repoRoot
/web"
Wait
=
$true
;
}
,
@
{
Desc
=
"start backend with live reload"
;
Exe
=
"air.exe"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment