Skip to content

Commit

Permalink
build: reorganise stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb committed Feb 10, 2022
1 parent d501d26 commit ddac7f2
Show file tree
Hide file tree
Showing 88 changed files with 42 additions and 395 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"scripts": {
"dev": "npm run dev -w=@blitzar/components",
"dev:docs": "concurrently -n 'docs,components,utils' -c 'green,blue,gray' 'npm run dev -w=docs' 'npm run dev -w=@blitzar/components' 'npm run dev -w=@blitzar/utils'",
"dev:docs": "concurrently -n 'docs,components,types,utils' -c 'green,blue,yellow,gray' 'npm run dev -w=docs' 'npm run dev -w=@blitzar/components' 'npm run dev -w=@blitzar/types' 'npm run dev -w=@blitzar/utils'",
"dev:quasar": "npm run dev -w example-quasar",
"build": "lerna run build",
"publish": "lerna publish && npm run _deploy:post",
Expand Down
10 changes: 5 additions & 5 deletions packages/blitzar/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export default defineConfig({
entry: path.resolve(__dirname, 'src/index.ts'),
name: namePascal,
formats: ['es', 'cjs'],
fileName: (format) =>
({
es: 'index.es.js',
cjs: 'index.cjs',
}[format]),
fileName: (format) => {
if (format === 'es') return 'index.es.js'
if (format === 'cjs') return 'index.cjs'
return ''
},
},
rollupOptions: {
// make sure to externalize deps that shouldn't be bundled
Expand Down
10 changes: 5 additions & 5 deletions packages/components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export default defineConfig({
entry: path.resolve(__dirname, 'src/index.ts'),
name: namePascal,
formats: ['es', 'cjs'],
fileName: (format) =>
({
es: 'index.es.js',
cjs: 'index.cjs',
}[format]),
fileName: (format) => {
if (format === 'es') return 'index.es.js'
if (format === 'cjs') return 'index.cjs'
return ''
},
},
rollupOptions: {
// make sure to externalize deps that shouldn't be bundled
Expand Down
323 changes: 0 additions & 323 deletions packages/docs/components/BaseInput.vue

This file was deleted.

8 changes: 4 additions & 4 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "docs",
"private": true,
"type": "module",
"version": "1.1.7",
"description": "Blitzar Docs",
"author": "Luca Ban - Mesqueeb",
"funding": "https://github.com/sponsors/mesqueeb",
"main": "index.js",
"scripts": {
"dev": "vitepress dev docs",
"build": "vitepress build docs",
"serve": "vitepress serve docs"
"dev": "vitepress dev src",
"build": "vitepress build src",
"serve": "vitepress serve src"
},
"dependencies": {
"@adamdehaven/vue-custom-tooltip": "^2.6.0",
Expand Down
Loading

0 comments on commit ddac7f2

Please sign in to comment.