Skip to content

Commit

Permalink
Update project configuration files and package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
CarelessCourage committed Sep 17, 2024
1 parent ee06e84 commit c1279b4
Show file tree
Hide file tree
Showing 40 changed files with 167 additions and 178 deletions.
2 changes: 1 addition & 1 deletion apps/nobel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"vue": "^3.5.3"
},
"dependencies": {
"nobel": "workspace:*",
"@nobel/core": "workspace:*",
"@umbrajs/core": "workspace:*",
"@vueuse/components": "^11.0.3",
"@vueuse/core": "^11.0.3",
Expand Down
13 changes: 1 addition & 12 deletions apps/nobel/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
<script setup lang="ts">
import { ref } from 'vue'
import { useRoute } from 'vue-router'
import stuff from 'nobel'
import IconHome from './components/Icons/IconHome.vue'
import IconWidth from './components/Icons/IconWidth.vue'
import IconPaint from './components/Icons/IconPaint.vue'
import IconText from './components/Icons/IconText.vue'
import IconUI from './components/Icons/IconUI.vue'
import Button from './components/ui/Button/Button.vue'
import ButtonGroup from './components/ui/Button/ButtonGroup.vue'
import { Button, ButtonGroup, IconHome, IconWidth, IconPaint, IconText, IconUI } from '@nobel/core'
import TextScreen from './components/TextScreen.vue'
import { umbra } from '@umbrajs/core'
import type { Accent } from '@umbrajs/core'
Expand Down
2 changes: 1 addition & 1 deletion apps/nobel/src/pages/Sizes.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import Button from '../components/ui/Button/Button.vue'
import { Button } from '@nobel/core'
</script>

<template>
Expand Down
13 changes: 3 additions & 10 deletions apps/nobel/src/pages/UI.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
<script setup lang="ts">
import ButtonGroup from '../components/ui/Button/ButtonGroup.vue'
import Button from '../components/ui/Button/Button.vue'
import ButtonToggle from '../components/ui/Button/Toggle.vue'
import Chip from '../components/ui/Chip/Chip.vue'
import Radio from '../components/ui/Radio/Radio.vue'
import IconHome from '../components/Icons/IconHome.vue'
import IconPaint from '../components/Icons/IconPaint.vue'
import Slider from '../components/ui/Slider/Slider.vue'
import { Button, ButtonGroup, Toggle, Chip, Radio, Slider, IconHome, IconPaint } from '@nobel/core'
</script>

<template>
Expand Down Expand Up @@ -63,14 +56,14 @@ import Slider from '../components/ui/Slider/Slider.vue'
</ButtonGroup>

<section>
<ButtonToggle>
<Toggle>
<template #active>
<IconHome />
</template>
<template #inactive>
<IconPaint />
</template>
</ButtonToggle>
</Toggle>
</section>

<Slider />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "umbrajs",
"private": true,
"scripts": {
"dev": "cd packages/playground && pnpm run dev",
"dev": "cd apps/nobel && pnpm run dev",
"docs": "cd packages/docs && pnpm run dev",
"ui": "cd packages/nobel && pnpm run dev",
"dye": "cd packages/dye && pnpm run dev",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion packages/nobel/env.d.ts

This file was deleted.

File renamed without changes.
14 changes: 7 additions & 7 deletions packages/nobel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nobel",
"version": "0.0.1a",
"name": "@nobel/core",
"version": "1.0.0",
"author": "Samuel M. Bednarz<https://github.com/CarelessCourage>",
"repository": {
"type": "git",
Expand All @@ -14,14 +14,14 @@
"ui"
],
"type": "module",
"main": "dist/index.cjs",
"main": "index.ts",
"module": "dist/index.mjs",
"types": "./types/index.d.ts",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
"types": "./dist/index.d.ts",
"import": "./dist/core.js",
"require": "./dist/core.js"
},
"./*": "./*"
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 0 additions & 17 deletions packages/nobel/tsconfig.app.json

This file was deleted.

24 changes: 16 additions & 8 deletions packages/nobel/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
{
"files": [],
"references": [
{
"path": "./tsconfig.node.json"
},
{
"path": "./tsconfig.app.json"
"extends": "@vue/tsconfig/tsconfig.dom.json",
"exclude": ["./**/__tests__/*"],
"include": ["./**/*.ts", "./**/*.d.ts", "./**/*.vue", "index.ts"],
"compilerOptions": {
//...
"allowJs": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"declaration": true,
"outDir": "dist",
"declarationDir": "dist",
"baseUrl": ".",
"paths": {
"@/*": ["./*"]
}
]
}
}
19 changes: 0 additions & 19 deletions packages/nobel/tsconfig.node.json

This file was deleted.

4 changes: 2 additions & 2 deletions packages/nobel/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig({
plugins: [vue(), dts(), vueDevTools()],
build: {
lib: {
entry: fileURLToPath(new URL('./src/index.ts', import.meta.url)),
entry: fileURLToPath(new URL('./index.ts', import.meta.url)),
formats: ['es'],
name: 'Nobel'
},
Expand All @@ -19,7 +19,7 @@ export default defineConfig({
external: ['vue'],
output: {
globals: {
Vue: 'vue'
vue: 'vue'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// vite.config.ts
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///C:/Users/samue/source/repos/MyriadJS/core/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/samue/source/repos/MyriadJS/core/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import dts from "file:///C:/Users/samue/source/repos/MyriadJS/core/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite-plugin-dts/dist/index.mjs";
import vueDevTools from "file:///C:/Users/samue/source/repos/MyriadJS/core/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vite-plugin-vue-devtools/dist/vite.mjs";
var __vite_injected_original_import_meta_url = "file:///C:/Users/samue/source/repos/MyriadJS/core/packages/nobel/vite.config.ts";
var vite_config_default = defineConfig({
plugins: [vue(), dts(), vueDevTools()],
build: {
lib: {
entry: fileURLToPath(new URL("./src/index.ts", __vite_injected_original_import_meta_url)),
formats: ["es"],
name: "Nobel"
},
minify: false,
rollupOptions: {
external: ["vue"],
output: {
globals: {
Vue: "vue"
}
}
}
}
});
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxzYW11ZVxcXFxzb3VyY2VcXFxccmVwb3NcXFxcTXlyaWFkSlNcXFxcY29yZVxcXFxwYWNrYWdlc1xcXFxub2JlbFwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiQzpcXFxcVXNlcnNcXFxcc2FtdWVcXFxcc291cmNlXFxcXHJlcG9zXFxcXE15cmlhZEpTXFxcXGNvcmVcXFxccGFja2FnZXNcXFxcbm9iZWxcXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0M6L1VzZXJzL3NhbXVlL3NvdXJjZS9yZXBvcy9NeXJpYWRKUy9jb3JlL3BhY2thZ2VzL25vYmVsL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZmlsZVVSTFRvUGF0aCwgVVJMIH0gZnJvbSAnbm9kZTp1cmwnXHJcblxyXG5pbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tICd2aXRlJ1xyXG5pbXBvcnQgdnVl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