@buoy-design/scanners 0.1.4 → 0.1.6

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +37 -0
  3. package/package.json +12 -12
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Buoy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # @buoy-design/scanners
2
+
3
+ Framework-specific code scanners for Buoy. Extracts components and design tokens from React, Vue, Svelte, Angular, and more.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @buoy-design/scanners
9
+ ```
10
+
11
+ ## Supported Frameworks
12
+
13
+ - **React** - JSX/TSX components
14
+ - **Vue** - Single File Components
15
+ - **Svelte** - .svelte files
16
+ - **Angular** - @Component decorators
17
+ - **Web Components** - Lit, Stencil
18
+ - **Tailwind** - Config parsing, arbitrary value detection
19
+ - **Templates** - Blade, ERB, Twig
20
+
21
+ ## Usage
22
+
23
+ ```typescript
24
+ import { createReactScanner } from '@buoy-design/scanners';
25
+
26
+ const scanner = createReactScanner({
27
+ include: ['src/**/*.tsx'],
28
+ exclude: ['**/*.test.*'],
29
+ });
30
+
31
+ const components = await scanner.scan();
32
+ ```
33
+
34
+ ## Links
35
+
36
+ - [Buoy CLI](https://www.npmjs.com/package/@buoy-design/cli)
37
+ - [Documentation](https://buoy.design/docs)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-design/scanners",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Source scanners for Buoy (React, Vue, Svelte, Angular, Figma, Storybook)",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -50,22 +50,22 @@
50
50
  "import": "./dist/css/index.js"
51
51
  }
52
52
  },
53
- "scripts": {
54
- "build": "tsc",
55
- "dev": "tsc --watch",
56
- "typecheck": "tsc --noEmit",
57
- "clean": "rm -rf dist",
58
- "test": "vitest run",
59
- "test:watch": "vitest"
60
- },
61
53
  "dependencies": {
62
- "@buoy-design/core": "workspace:*",
63
54
  "glob": "^11.0.0",
64
55
  "typescript": "^5.7.2",
65
- "zod": "^3.24.1"
56
+ "zod": "^3.24.1",
57
+ "@buoy-design/core": "0.1.5"
66
58
  },
67
59
  "devDependencies": {
68
60
  "@types/node": "^22.10.2",
69
61
  "memfs": "^4.51.1"
62
+ },
63
+ "scripts": {
64
+ "build": "tsc",
65
+ "dev": "tsc --watch",
66
+ "typecheck": "tsc --noEmit",
67
+ "clean": "rm -rf dist",
68
+ "test": "vitest run",
69
+ "test:watch": "vitest"
70
70
  }
71
- }
71
+ }