Skip to content

Commit 9a2710b

Browse files
committed
chore: refactor project structure
1 parent a4e94ec commit 9a2710b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+60
-59
lines changed

.idea/modules.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 4 additions & 4 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

package/package.json renamed to core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@vue3-styled-components/package",
2+
"name": "@vue-styled-components/core",
33
"version": "0.0.2",
44
"description": "",
55
"type": "module",
File renamed without changes.
File renamed without changes.
File renamed without changes.

package/types.d.ts renamed to core/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
declare module '@vue3-styled-components/package' {
1+
declare module '@vue-styled-components/core' {
22
export {
33
styled,
44
keyframes,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/.vitepress/config.mts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { demoblockPlugin, demoblockVitePlugin } from 'vitepress-theme-demoblock'
33

44
// https://vitepress.dev/reference/site-config
55
export default defineConfig({
6-
base: '/vue3-styled-components/',
7-
title: 'Vue3 Styled Components',
6+
base: '/vue-styled-components/',
7+
title: 'Vue Styled Components',
88
description: 'A tool for css in js.',
9-
head: [['link', { rel: 'icon', href: '/vue3-styled-components/logo.png ' }]],
9+
head: [['link', { rel: 'icon', href: '/vue-styled-components/logo.png ' }]],
1010
themeConfig: {
1111
logo: '/logo.png',
1212
demoblock: {
@@ -60,7 +60,7 @@ export default defineConfig({
6060
},
6161
],
6262

63-
socialLinks: [{ icon: 'github', link: 'https://github.com/vue-styled-components/vue3-styled-components' }],
63+
socialLinks: [{ icon: 'github', link: 'https://github.com/vue-styled-components/vue-styled-components' }],
6464
},
6565
markdown: {
6666
config: (md) => {
@@ -70,7 +70,7 @@ export default defineConfig({
7070
vite: {
7171
resolve: {
7272
alias: {
73-
'@': new URL('../../package', import.meta.url).pathname,
73+
'@': new URL('../../core', import.meta.url).pathname,
7474
},
7575
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue', '.less'],
7676
},

docs/guide/advances/theming.md

Lines changed: 4 additions & 4 deletions

docs/guide/api/core.md

Lines changed: 3 additions & 3 deletions

docs/guide/api/helper.md

Lines changed: 4 additions & 4 deletions

docs/guide/basic/animations.md

Lines changed: 1 addition & 1 deletion

docs/guide/basic/extending-styles.md

Lines changed: 2 additions & 2 deletions

docs/guide/basic/passed-props.md

Lines changed: 1 addition & 1 deletion

docs/guide/basic/quick-start.md

Lines changed: 4 additions & 4 deletions

docs/guide/basic/styling-any-component.md

Lines changed: 2 additions & 2 deletions

docs/index.md

Lines changed: 1 addition & 1 deletion

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"vitepress-theme-demoblock": "^3.0.7"
1818
},
1919
"dependencies": {
20-
"@vue3-styled-components/package": "workspace:^"
20+
"@vue-styled-components/core": "workspace:^"
2121
}
2222
}

example/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="tsx">
2-
import { styled, ThemeProvider, keyframes, useStyledClassName, withAttrs, css } from '@vue3-styled-components/package'
2+
import { styled, ThemeProvider, keyframes, useStyledClassName, withAttrs, css } from '@vue-styled-components/core'
33
import Component from './Component.vue'
44
import { ref } from 'vue'
55

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"preview": "vite preview"
88
},
99
"dependencies": {
10-
"@vue3-styled-components/package": "workspace:^0.0.2"
10+
"@vue-styled-components/core": "workspace:^0.0.2"
1111
}
1212
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "vue3-styled-components",
2+
"name": "vue-styled-components",
33
"private": true,
44
"version": "0.0.1",
55
"type": "module",
@@ -11,6 +11,7 @@
1111
"scripts": {
1212
"dev": "pnpm -C example dev",
1313
"build": "tsc && vite build",
14+
"test": "pnpm -C core test",
1415
"docs:dev": "pnpm -C docs docs:dev",
1516
"docs:build": "pnpm -C docs docs:build",
1617
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",

pnpm-lock.yaml

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
packages:
2-
- 'package/**'
2+
- 'core/**'
33
- 'example/**'
44
- 'docs/**'

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default defineConfig({
77
base: './',
88
resolve: {
99
alias: {
10-
'@': new URL('./package', import.meta.url).pathname
10+
'@': new URL('./core', import.meta.url).pathname
1111
},
1212
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue', '.less']
1313
},

0 commit comments

Comments
 (0)