@cbutep_n/pico-ui 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.js ADDED
@@ -0,0 +1,82 @@
1
+ module.exports = {
2
+ extends: ['plugin:vue/recommended', 'plugin:prettier-vue/recommended'],
3
+
4
+ settings: {
5
+ 'prettier-vue': {
6
+ // Settings for how to process Vue SFC Blocks
7
+ SFCBlocks: {
8
+ /**
9
+ * Use prettier to process `<template>` blocks or not
10
+ *
11
+ * If set to `false`, you may need to enable those vue rules that are disabled by `eslint-config-prettier`,
12
+ * because you need them to lint `<template>` blocks
13
+ *
14
+ * @default true
15
+ */
16
+ template: true,
17
+
18
+ /**
19
+ * Use prettier to process `<script>` blocks or not
20
+ *
21
+ * If set to `false`, you may need to enable those rules that are disabled by `eslint-config-prettier`,
22
+ * because you need them to lint `<script>` blocks
23
+ *
24
+ * @default true
25
+ */
26
+ script: true,
27
+
28
+ /**
29
+ * Use prettier to process `<style>` blocks or not
30
+ *
31
+ * @default true
32
+ */
33
+ style: true,
34
+
35
+ // Settings for how to process custom blocks
36
+ customBlocks: {
37
+ // Treat the `<docs>` block as a `.markdown` file
38
+ docs: { lang: 'markdown' },
39
+
40
+ // Treat the `<config>` block as a `.json` file
41
+ config: { lang: 'json' },
42
+
43
+ // Treat the `<module>` block as a `.js` file
44
+ module: { lang: 'js' },
45
+
46
+ // Ignore `<comments>` block (omit it or set it to `false` to ignore the block)
47
+ comments: false,
48
+
49
+ // Other custom blocks that are not listed here will be ignored
50
+ },
51
+ },
52
+
53
+ // Use prettierrc for prettier options or not (default: `true`)
54
+ usePrettierrc: true,
55
+
56
+ // Set the options for `prettier.getFileInfo`.
57
+ // @see https://prettier.io/docs/en/api.html#prettiergetfileinfofilepath-options
58
+ fileInfoOptions: {
59
+ // Path to ignore file (default: `'.prettierignore'`)
60
+ // Notice that the ignore file is only used for this plugin
61
+ ignorePath: '.testignore',
62
+
63
+ // Process the files in `node_modules` or not (default: `false`)
64
+ withNodeModules: false,
65
+ },
66
+ },
67
+ },
68
+
69
+ rules: {
70
+ 'prettier-vue/prettier': [
71
+ 'error',
72
+ {
73
+ // Override all options of `prettier` here
74
+ // @see https://prettier.io/docs/en/options.html
75
+ printWidth: 100,
76
+ singleQuote: true,
77
+ semi: false,
78
+ trailingComma: 'es5',
79
+ },
80
+ ],
81
+ },
82
+ };
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # Pico-ui
package/index.html ADDED
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>pico-ui</title>
8
+ </head>
9
+ <body>
10
+ <div id="app"></div>
11
+ <script type="module" src="/src/main.ts"></script>
12
+ </body>
13
+ </html>
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@cbutep_n/pico-ui",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "type": "module",
9
+ "description": "Ui library for Pico",
10
+ "author": "Sacrifice",
11
+ "license": "MIT",
12
+ "keywords": ["vue", "ui", "components", "tailwind"],
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/Sacrifise/pico-ui.git"
16
+ },
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/pico-ui.es.js",
21
+ "require": "./dist/pico-ui.umd.js"
22
+ },
23
+ "./style.css": "./dist/style.css"
24
+ },
25
+ "scripts": {
26
+ "dev": "vite",
27
+ "build": "vue-tsc --noEmit && vite build",
28
+ "build:lib": "vite build",
29
+ "preview": "vite preview",
30
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
31
+ "lint:check": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
32
+ "format": "prettier --write \"src/**/*.{vue,js,ts,jsx,tsx,scss,css,json,md}\"",
33
+ "format:check": "prettier --check \"src/**/*.{vue,js,ts,jsx,tsx,scss,css,json,md}\""
34
+ },
35
+ "dependencies": {
36
+
37
+ },
38
+ "peerDependencies": {
39
+ "@tailwindcss/vite": "^4.1.18",
40
+ "@vee-validate/valibot": "^4.15.1",
41
+ "tailwindcss": "^4.1.18",
42
+ "valibot": "^1.2.0",
43
+ "vee-validate": "^4.15.1",
44
+ "vue": "^3.5.25"
45
+ },
46
+ "devDependencies": {
47
+ "@types/node": "^24.10.1",
48
+ "@vitejs/plugin-vue": "^6.0.2",
49
+ "@vue/tsconfig": "^0.8.1",
50
+ "eslint": "^10.0.0",
51
+ "eslint-config-prettier": "^10.1.8",
52
+ "eslint-plugin-prettier-vue": "^5.0.0",
53
+ "eslint-plugin-vue": "^10.8.0",
54
+ "prettier": "^3.8.1",
55
+ "typescript": "~5.9.3",
56
+ "vite": "^7.3.1",
57
+ "vue-tsc": "^3.1.5"
58
+ }
59
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "extends": "@vue/tsconfig/tsconfig.dom.json",
3
+ "compilerOptions": {
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
5
+ "types": ["vite/client"],
6
+ "noEmit": true,
7
+ "declaration": true,
8
+ "declarationDir": "./dist",
9
+ /* Linting */
10
+ "strict": true,
11
+ "noUnusedLocals": true,
12
+ "noUnusedParameters": true,
13
+ "noFallthroughCasesInSwitch": true,
14
+ "noUncheckedSideEffectImports": true,
15
+ },
16
+ "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
17
+ "exclude": ["node_modules", "dist"]
18
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ { "path": "./tsconfig.app.json" },
5
+ { "path": "./tsconfig.node.json" }
6
+ ]
7
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
+ "target": "ES2023",
5
+ "lib": ["ES2023"],
6
+ "module": "ESNext",
7
+ "types": ["node"],
8
+ "skipLibCheck": true,
9
+
10
+ /* Bundler mode */
11
+ "moduleResolution": "bundler",
12
+ "allowImportingTsExtensions": true,
13
+ "verbatimModuleSyntax": true,
14
+ "moduleDetection": "force",
15
+ "noEmit": true,
16
+
17
+ /* Linting */
18
+ "strict": true,
19
+ "noUnusedLocals": true,
20
+ "noUnusedParameters": true,
21
+ "noFallthroughCasesInSwitch": true,
22
+ "noUncheckedSideEffectImports": true
23
+ },
24
+ "include": ["vite.config.ts"]
25
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,28 @@
1
+ import { defineConfig } from 'vite'
2
+ import vue from '@vitejs/plugin-vue'
3
+ import tailwindcss from '@tailwindcss/vite'
4
+ import {resolve} from 'path'
5
+
6
+ // https://vite.dev/config/
7
+ export default defineConfig({
8
+ plugins: [vue(), tailwindcss()],
9
+ build: {
10
+ lib: {
11
+ entry: resolve(__dirname, 'src/index.ts'),
12
+ name: 'pico-ui',
13
+ fileName: (format) => `pico-ui.${format}.js`,
14
+ },
15
+ rollupOptions: {
16
+ external: ['vue', 'valibot', '@vee-validate/valibot'],
17
+ output: {
18
+ globals: {
19
+ vue: 'Vue'
20
+ },
21
+ preserveModules: false,
22
+ assetFileNames: 'assets/[name][extname]'
23
+ },
24
+ },
25
+ sourcemap: true,
26
+ minify: 'esbuild'
27
+ }
28
+ })