Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 35eef337
authored
Nov 02, 2024
by
Vben
Committed by
GitHub
Nov 02, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refactor: upgrade unbuild to 3.0.0 rc version (#4797)
1 parent
422936a9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
11 deletions
internal/tailwind-config/build.config.ts
internal/tailwind-config/package.json
internal/tailwind-config/src/index.ts
internal/vite-config/src/config/common.ts
pnpm-lock.yaml
pnpm-workspace.yaml
scripts/turbo-run/src/run.ts
turbo.json
internal/tailwind-config/build.config.ts
View file @
35eef33
...
@@ -4,7 +4,6 @@ export default defineBuildConfig({
...
@@ -4,7 +4,6 @@ export default defineBuildConfig({
clean
:
true
,
clean
:
true
,
declaration
:
true
,
declaration
:
true
,
entries
:
[
'src/index'
,
'./src/postcss.config'
],
entries
:
[
'src/index'
,
'./src/postcss.config'
],
externals
:
[
'@vben/node-utils'
],
rollup
:
{
rollup
:
{
emitCJS
:
true
,
emitCJS
:
true
,
},
},
...
...
internal/tailwind-config/package.json
View file @
35eef33
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
"license"
:
"MIT"
,
"license"
:
"MIT"
,
"type"
:
"module"
,
"type"
:
"module"
,
"scripts"
:
{
"scripts"
:
{
"stub"
:
"pnpm unbuild
--stub
"
"stub"
:
"pnpm unbuild"
},
},
"files"
:
[
"files"
:
[
"dist"
"dist"
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
"dependencies"
:
{
"dependencies"
:
{
"@iconify/json"
:
"catalog:"
,
"@iconify/json"
:
"catalog:"
,
"@iconify/tailwind"
:
"catalog:"
,
"@iconify/tailwind"
:
"catalog:"
,
"@manypkg/get-packages"
:
"catalog:"
,
"@tailwindcss/nesting"
:
"catalog:"
,
"@tailwindcss/nesting"
:
"catalog:"
,
"@tailwindcss/typography"
:
"catalog:"
,
"@tailwindcss/typography"
:
"catalog:"
,
"autoprefixer"
:
"catalog:"
,
"autoprefixer"
:
"catalog:"
,
...
@@ -60,7 +61,6 @@
...
@@ -60,7 +61,6 @@
"tailwindcss-animate"
:
"catalog:"
"tailwindcss-animate"
:
"catalog:"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@types/postcss-import"
:
"catalog:"
,
"@types/postcss-import"
:
"catalog:"
"@vben/node-utils"
:
"workspace:*"
}
}
}
}
internal/tailwind-config/src/index.ts
View file @
35eef33
...
@@ -2,9 +2,8 @@ import type { Config } from 'tailwindcss';
...
@@ -2,9 +2,8 @@ import type { Config } from 'tailwindcss';
import
path
from
'node:path'
;
import
path
from
'node:path'
;
import
{
getPackagesSync
}
from
'@vben/node-utils'
;
import
{
addDynamicIconSelectors
}
from
'@iconify/tailwind'
;
import
{
addDynamicIconSelectors
}
from
'@iconify/tailwind'
;
import
{
getPackagesSync
}
from
'@manypkg/get-packages'
;
import
typographyPlugin
from
'@tailwindcss/typography'
;
import
typographyPlugin
from
'@tailwindcss/typography'
;
import
animate
from
'tailwindcss-animate'
;
import
animate
from
'tailwindcss-animate'
;
...
@@ -12,7 +11,7 @@ import { enterAnimationPlugin } from './plugins/entry';
...
@@ -12,7 +11,7 @@ import { enterAnimationPlugin } from './plugins/entry';
// import defaultTheme from 'tailwindcss/defaultTheme';
// import defaultTheme from 'tailwindcss/defaultTheme';
const
{
packages
}
=
getPackagesSync
();
const
{
packages
}
=
getPackagesSync
(
process
.
cwd
()
);
const
tailwindPackages
:
string
[]
=
[];
const
tailwindPackages
:
string
[]
=
[];
...
...
internal/vite-config/src/config/common.ts
View file @
35eef33
...
@@ -3,7 +3,7 @@ import type { UserConfig } from 'vite';
...
@@ -3,7 +3,7 @@ import type { UserConfig } from 'vite';
async
function
getCommonConfig
():
Promise
<
UserConfig
>
{
async
function
getCommonConfig
():
Promise
<
UserConfig
>
{
return
{
return
{
build
:
{
build
:
{
chunkSizeWarningLimit
:
1
000
,
chunkSizeWarningLimit
:
2
000
,
reportCompressedSize
:
false
,
reportCompressedSize
:
false
,
sourcemap
:
false
,
sourcemap
:
false
,
},
},
...
...
pnpm-lock.yaml
View file @
35eef33
This diff is collapsed.
Click to expand it.
pnpm-workspace.yaml
View file @
35eef33
...
@@ -154,7 +154,7 @@ catalog:
...
@@ -154,7 +154,7 @@ catalog:
theme-colors
:
^0.1.0
theme-colors
:
^0.1.0
turbo
:
^2.2.3
turbo
:
^2.2.3
typescript
:
^5.6.3
typescript
:
^5.6.3
unbuild
:
^
2.0.0
unbuild
:
^
3.0.0-rc.11
unplugin-element-plus
:
^0.8.0
unplugin-element-plus
:
^0.8.0
vee-validate
:
^4.14.6
vee-validate
:
^4.14.6
vite
:
^5.4.10
vite
:
^5.4.10
...
...
scripts/turbo-run/src/run.ts
View file @
35eef33
...
@@ -46,7 +46,6 @@ export async function run(options: RunOptions) {
...
@@ -46,7 +46,6 @@ export async function run(options: RunOptions) {
process
.
exit
(
1
);
process
.
exit
(
1
);
}
}
process
.
env
.
VITE_CJS_IGNORE_WARNING
=
'1'
;
execaCommand
(
`pnpm --filter=
${
selectPkg
}
run
${
command
}
`
,
{
execaCommand
(
`pnpm --filter=
${
selectPkg
}
run
${
command
}
`
,
{
stdio
:
'inherit'
,
stdio
:
'inherit'
,
});
});
...
...
turbo.json
View file @
35eef33
...
@@ -16,7 +16,12 @@
...
@@ -16,7 +16,12 @@
"tasks"
:
{
"tasks"
:
{
"build"
:
{
"build"
:
{
"dependsOn"
:
[
"^build"
],
"dependsOn"
:
[
"^build"
],
"outputs"
:
[
"dist/**"
,
"dist.zip"
]
"outputs"
:
[
"dist/**"
,
"dist.zip"
,
".vitepress/dist.zip"
,
".vitepress/dist/**"
]
},
},
"preview"
:
{
"preview"
:
{
"dependsOn"
:
[
"^build"
],
"dependsOn"
:
[
"^build"
],
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment