Skip to content

Commit 61b75fe

Browse files
author
Chris Breuer
committed
chore: wip
1 parent a7e8ec9 commit 61b75fe

13 files changed

Lines changed: 179 additions & 100 deletions

File tree

README.md

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![npm version][npm-version-src]][npm-version-href]
44
[![GitHub Actions][github-actions-src]][github-actions-href]
5-
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
5+
[![Commitizen friendly][commitizen-friendly]][commitizen-href]
66

77
# ts-maps
88

@@ -213,16 +213,16 @@ Available components include:
213213
- `Russia` - Russia map
214214
- `Iraq` - Iraq map
215215

216-
See [Nuxt Components Documentation](https://ts-maps.com/components/nuxt) for detailed usage.
216+
See [Nuxt Components Documentation][nuxt-components-documentation] for detailed usage.
217217

218218
## Documentation
219219

220-
- [Introduction](https://ts-maps.dev/intro)
221-
- [Installation](https://ts-maps.dev/install)
222-
- [Usage Guide](https://ts-maps.dev/usage)
223-
- [API Reference](https://ts-maps.dev/api)
224-
- [Examples](https://ts-maps.dev/examples)
225-
- [Playground](https://ts-maps.dev/playground)
220+
- [Introduction][introduction]
221+
- [Installation][installation]
222+
- [Usage Guide][usage-guide]
223+
- [API Reference][api-reference]
224+
- [Examples][examples]
225+
- [Playground][playground]
226226

227227
## Development
228228

@@ -247,21 +247,21 @@ pnpm dev
247247

248248
## Changelog
249249

250-
Please see our [releases](https://github.com/stacksjs/ts-maps/releases) page for more information on what has changed recently.
250+
Please see our [releases][releases] page for more information on what has changed recently.
251251

252252
## Contributing
253253

254-
Please see [CONTRIBUTING](https://github.com/stacksjs/stacks/blob/main/.github/CONTRIBUTING.md) for details.
254+
Please see [CONTRIBUTING][contributing] for details.
255255

256256
## Community
257257

258258
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
259259

260-
[Discussions on GitHub](https://github.com/stacksjs/ts-maps/discussions)
260+
[Discussions on GitHub][discussions-on-github]
261261

262262
For casual chit-chat with others using this package:
263263

264-
[Join the Stacks Discord Server](https://discord.gg/stacksjs)
264+
[Join the Stacks Discord Server][join-the-stacks-discord-server]
265265

266266
## Postcardware
267267

@@ -273,18 +273,18 @@ Our address: Stacks.js, 12665 Village Ln #2306, Playa Vista, CA 90094, United St
273273

274274
We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.
275275

276-
- [JetBrains](https://www.jetbrains.com/)
277-
- [The Solana Foundation](https://solana.com/)
276+
- [JetBrains][jetbrains]
277+
- [The Solana Foundation][the-solana-foundation]
278278

279279
## Credits
280280

281-
- [jsvectormap](https://github.com/themustafaomar/jsvectormap)
282-
- [Chris Breuer](https://github.com/chrisbbreuer)
283-
- [All Contributors](https://github.com/stacksjs/ts-maps/contributors)
281+
- [jsvectormap][jsvectormap]
282+
- [Chris Breuer][chris-breuer]
283+
- [All Contributors][all-contributors]
284284

285285
## License
286286

287-
The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/clarity/blob/main/LICENSE.md) for more information.
287+
The MIT License (MIT). Please see [LICENSE][license] for more information.
288288

289289
Made with 💙
290290

@@ -296,3 +296,22 @@ Made with 💙
296296

297297
<!-- [codecov-src]: https://img.shields.io/codecov/c/gh/stacksjs/clarity/main?style=flat-square
298298
[codecov-href]: https://codecov.io/gh/stacksjs/clarity -->
299+
[commitizen-friendly]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
300+
[nuxt-components-documentation]: https://ts-maps.com/components/nuxt
301+
[introduction]: https://ts-maps.dev/intro
302+
[installation]: https://ts-maps.dev/install
303+
[usage-guide]: https://ts-maps.dev/usage
304+
[api-reference]: https://ts-maps.dev/api
305+
[examples]: https://ts-maps.dev/examples
306+
[playground]: https://ts-maps.dev/playground
307+
[releases]: https://github.com/stacksjs/ts-maps/releases
308+
[contributing]: https://github.com/stacksjs/stacks/blob/main/.github/CONTRIBUTING.md
309+
[discussions-on-github]: https://github.com/stacksjs/ts-maps/discussions
310+
[join-the-stacks-discord-server]: https://discord.gg/stacksjs
311+
[jetbrains]: https://www.jetbrains.com/
312+
[the-solana-foundation]: https://solana.com/
313+
[jsvectormap]: https://github.com/themustafaomar/jsvectormap
314+
[chris-breuer]: https://github.com/chrisbbreuer
315+
[all-contributors]: https://github.com/stacksjs/ts-maps/contributors
316+
[license]: https://github.com/stacksjs/clarity/blob/main/LICENSE.md
317+
[commitizen-href]: http://commitizen.github.io/cz-cli/

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
},
3232
"module": "./packages/ts-maps/dist/index.js",
3333
"types": "./packages/ts-maps/dist/index.d.ts",
34-
"bin": {
35-
"post": "./packages/post/dist/bin/cli.js"
36-
},
3734
"files": [
3835
"README.md",
3936
"packages/post/dist"

packages/nuxt/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Find and replace all on all files (CMD+SHIFT+F):
1818

1919
My new Nuxt module for doing amazing things.
2020

21-
- [&nbsp;Release Notes](/CHANGELOG.md)
21+
- [&nbsp;Release Notes][nbsp-release-notes]
2222

2323
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) -->
2424
<!-- - [📖 &nbsp;Documentation](https://example.com) -->
@@ -84,3 +84,5 @@ That's it! You can now use My Module in your Nuxt app ✨
8484

8585
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
8686
[nuxt-href]: https://nuxt.com
87+
[nbsp-release-notes]: /CHANGELOG.md
88+
[commitizen-href]: http://commitizen.github.io/cz-cli/

packages/react/README.md

Lines changed: 77 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![npm version][npm-version-src]][npm-version-href]
44
[![GitHub Actions][github-actions-src]][github-actions-href]
5-
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
5+
[![Commitizen friendly][commitizen-friendly]][commitizen-href]
66
<!-- [![npm downloads][npm-downloads-src]][npm-downloads-href] -->
77
<!-- [![Codecov][codecov-src]][codecov-href] -->
88

@@ -76,27 +76,27 @@ A lightweight Barcode library with zero dependencies. It supports multiple barco
7676

7777
#### Supported Formats
7878

79-
- [CODE128](https://github.com/lindell/JsBarcode/wiki/CODE128)
79+
- [CODE128][code128]
8080
- CODE128 (automatic mode switching)
8181
- CODE128 A/B/C (force mode)
82-
- [EAN](https://github.com/lindell/JsBarcode/wiki/EAN)
82+
- [EAN][ean]
8383
- EAN-13
8484
- EAN-8
8585
- EAN-5
8686
- EAN-2
8787
- UPC (A)
8888
- UPC (E)
89-
- [CODE39](https://github.com/lindell/JsBarcode/wiki/CODE39)
90-
- [ITF](https://github.com/lindell/JsBarcode/wiki/ITF-14)
89+
- [CODE39][code39]
90+
- [ITF][itf]
9191
- ITF
9292
- ITF-14
93-
- [MSI](https://github.com/lindell/JsBarcode/wiki/MSI)
93+
- [MSI][msi]
9494
- MSI10
9595
- MSI11
9696
- MSI1010
9797
- MSI1110
98-
- [Pharmacode](https://github.com/lindell/JsBarcode/wiki/pharmacode)
99-
- [Codabar](https://github.com/lindell/JsBarcode/wiki/codabar)
98+
- [Pharmacode][pharmacode]
99+
- [Codabar][codabar]
100100

101101
#### Browser Example
102102

@@ -114,7 +114,7 @@ A lightweight Barcode library with zero dependencies. It supports multiple barco
114114
Barcode('#barcode', 'Hi!')
115115
````
116116

117-
![Result](https://s3-eu-west-1.amazonaws.com/js-barcode/barcodes/simple.svg)
117+
![Result][result]
118118

119119
#### Example with options
120120

@@ -128,7 +128,7 @@ Barcode('#barcode', '1234', {
128128
})
129129
```
130130

131-
![Result](https://s3-eu-west-1.amazonaws.com/js-barcode/barcodes/advanced.svg)
131+
![Result][result-2]
132132

133133
#### More advanced use case
134134

@@ -141,7 +141,7 @@ Barcode('#barcode')
141141
.render()
142142
````
143143

144-
![Result](https://s3-eu-west-1.amazonaws.com/js-barcode/barcodes/simple.svg)
144+
![Result][result-3]
145145

146146
#### Or define the value and options in the HTML element
147147

@@ -162,7 +162,7 @@ And then initialize it with:
162162
Barcode('.barcode').init()
163163
```
164164

165-
![Result](https://s3-eu-west-1.amazonaws.com/js-barcode/barcodes/init.svg)
165+
![Result][result-4]
166166

167167
#### Retrieve the barcode values so you can render it any way you'd like
168168

@@ -215,25 +215,25 @@ For information about how to use the options, see the docs.
215215

216216
| Option | Default value | Type |
217217
|--------|---------------|------|
218-
| [`format`](https://github.com/lindell/JsBarcode/wiki/Options#format) | `"auto" (CODE128)` | `String` |
219-
| [`width`](https://github.com/lindell/JsBarcode/wiki/Options#width) | `2` | `Number` |
220-
| [`height`](https://github.com/lindell/JsBarcode/wiki/Options#height) | `100` | `Number` |
221-
| [`displayValue`](https://github.com/lindell/JsBarcode/wiki/Options#display-value) | `true` | `Boolean` |
222-
| [`text`](https://github.com/lindell/JsBarcode/wiki/Options#text) | `undefined` | `String` |
223-
| [`fontOptions`](https://github.com/lindell/JsBarcode/wiki/Options#font-options) | `""` | `String` |
224-
| [`font`](https://github.com/lindell/JsBarcode/wiki/Options#font) | `"monospace"` | `String` |
225-
| [`textAlign`](https://github.com/lindell/JsBarcode/wiki/Options#text-align) | `"center"` | `String` |
226-
| [`textPosition`](https://github.com/lindell/JsBarcode/wiki/Options#text-position) | `"bottom"` | `String` |
227-
| [`textMargin`](https://github.com/lindell/JsBarcode/wiki/Options#text-margin) | `2` | `Number` |
228-
| [`fontSize`](https://github.com/lindell/JsBarcode/wiki/Options#font-size) | `20` | `Number` |
229-
| [`background`](https://github.com/lindell/JsBarcode/wiki/Options#background) | `"#ffffff"` | `String (CSS color)` |
230-
| [`lineColor`](https://github.com/lindell/JsBarcode/wiki/Options#line-color) | `"#000000"` | `String (CSS color)` |
231-
| [`margin`](https://github.com/lindell/JsBarcode/wiki/Options#margins) | `10` | `Number` |
232-
| [`marginTop`](https://github.com/lindell/JsBarcode/wiki/Options#margins) | `undefined` | `Number` |
233-
| [`marginBottom`](https://github.com/lindell/JsBarcode/wiki/Options#margins) | `undefined` | `Number` |
234-
| [`marginLeft`](https://github.com/lindell/JsBarcode/wiki/Options#margins) | `undefined` | `Number` |
235-
| [`marginRight`](https://github.com/lindell/JsBarcode/wiki/Options#margins) | `undefined` | `Number` |
236-
| [`valid`](https://github.com/lindell/JsBarcode/wiki/Options#valid) | `function(valid){}` | `Function` |
218+
| [`format`][format] | `"auto" (CODE128)` | `String` |
219+
| [`width`][width] | `2` | `Number` |
220+
| [`height`][height] | `100` | `Number` |
221+
| [`displayValue`][displayvalue] | `true` | `Boolean` |
222+
| [`text`][text] | `undefined` | `String` |
223+
| [`fontOptions`][fontoptions] | `""` | `String` |
224+
| [`font`][font] | `"monospace"` | `String` |
225+
| [`textAlign`][textalign] | `"center"` | `String` |
226+
| [`textPosition`][textposition] | `"bottom"` | `String` |
227+
| [`textMargin`][textmargin] | `2` | `Number` |
228+
| [`fontSize`][fontsize] | `20` | `Number` |
229+
| [`background`][background] | `"#ffffff"` | `String (CSS color)` |
230+
| [`lineColor`][linecolor] | `"#000000"` | `String (CSS color)` |
231+
| [`margin`][margin] | `10` | `Number` |
232+
| [`marginTop`][margintop] | `undefined` | `Number` |
233+
| [`marginBottom`][marginbottom] | `undefined` | `Number` |
234+
| [`marginLeft`][marginleft] | `undefined` | `Number` |
235+
| [`marginRight`][marginright] | `undefined` | `Number` |
236+
| [`valid`][valid] | `function(valid){}` | `Function` |
237237

238238
## Testing
239239

@@ -243,21 +243,21 @@ bun test
243243

244244
## Changelog
245245

246-
Please see our [releases](https://github.com/stackjs/qrx/releases) page for more information on what has changed recently.
246+
Please see our [releases][releases] page for more information on what has changed recently.
247247

248248
## Contributing
249249

250-
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
250+
Please see [CONTRIBUTING][contributing] for details.
251251

252252
## Community
253253

254254
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
255255

256-
[Discussions on GitHub](https://github.com/stacksjs/qrx/discussions)
256+
[Discussions on GitHub][discussions-on-github]
257257

258258
For casual chit-chat with others using this package:
259259

260-
[Join the Stacks Discord Server](https://discord.gg/stacksjs)
260+
[Join the Stacks Discord Server][join-the-stacks-discord-server]
261261

262262
## Postcardware
263263

@@ -269,8 +269,8 @@ Our address: Stacks.js, 12665 Village Ln #2306, Playa Vista, CA 90094, United St
269269

270270
We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.
271271

272-
- [JetBrains](https://www.jetbrains.com/)
273-
- [The Solana Foundation](https://solana.com/)
272+
- [JetBrains][jetbrains]
273+
- [The Solana Foundation][the-solana-foundation]
274274

275275
## Credit
276276

@@ -281,7 +281,7 @@ Many thanks for the libraries that laid the groundwork:
281281

282282
## License
283283

284-
The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.
284+
The MIT License (MIT). Please see [LICENSE][license] for more information.
285285

286286
Made with 💙
287287

@@ -293,3 +293,42 @@ Made with 💙
293293

294294
<!-- [codecov-src]: https://img.shields.io/codecov/c/gh/stacksjs/qrx/main?style=flat-square
295295
[codecov-href]: https://codecov.io/gh/stacksjs/qrx -->
296+
[commitizen-friendly]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
297+
[code128]: https://github.com/lindell/JsBarcode/wiki/CODE128
298+
[ean]: https://github.com/lindell/JsBarcode/wiki/EAN
299+
[code39]: https://github.com/lindell/JsBarcode/wiki/CODE39
300+
[itf]: https://github.com/lindell/JsBarcode/wiki/ITF-14
301+
[msi]: https://github.com/lindell/JsBarcode/wiki/MSI
302+
[pharmacode]: https://github.com/lindell/JsBarcode/wiki/pharmacode
303+
[codabar]: https://github.com/lindell/JsBarcode/wiki/codabar
304+
[result]: https://s3-eu-west-1.amazonaws.com/js-barcode/barcodes/simple.svg
305+
[result-2]: https://s3-eu-west-1.amazonaws.com/js-barcode/barcodes/advanced.svg
306+
[result-3]: https://s3-eu-west-1.amazonaws.com/js-barcode/barcodes/simple.svg
307+
[result-4]: https://s3-eu-west-1.amazonaws.com/js-barcode/barcodes/init.svg
308+
[format]: https://github.com/lindell/JsBarcode/wiki/Options#format
309+
[width]: https://github.com/lindell/JsBarcode/wiki/Options#width
310+
[height]: https://github.com/lindell/JsBarcode/wiki/Options#height
311+
[displayvalue]: https://github.com/lindell/JsBarcode/wiki/Options#display-value
312+
[text]: https://github.com/lindell/JsBarcode/wiki/Options#text
313+
[fontoptions]: https://github.com/lindell/JsBarcode/wiki/Options#font-options
314+
[font]: https://github.com/lindell/JsBarcode/wiki/Options#font
315+
[textalign]: https://github.com/lindell/JsBarcode/wiki/Options#text-align
316+
[textposition]: https://github.com/lindell/JsBarcode/wiki/Options#text-position
317+
[textmargin]: https://github.com/lindell/JsBarcode/wiki/Options#text-margin
318+
[fontsize]: https://github.com/lindell/JsBarcode/wiki/Options#font-size
319+
[background]: https://github.com/lindell/JsBarcode/wiki/Options#background
320+
[linecolor]: https://github.com/lindell/JsBarcode/wiki/Options#line-color
321+
[margin]: https://github.com/lindell/JsBarcode/wiki/Options#margins
322+
[margintop]: https://github.com/lindell/JsBarcode/wiki/Options#margins
323+
[marginbottom]: https://github.com/lindell/JsBarcode/wiki/Options#margins
324+
[marginleft]: https://github.com/lindell/JsBarcode/wiki/Options#margins
325+
[marginright]: https://github.com/lindell/JsBarcode/wiki/Options#margins
326+
[valid]: https://github.com/lindell/JsBarcode/wiki/Options#valid
327+
[releases]: https://github.com/stackjs/qrx/releases
328+
[contributing]: .github/CONTRIBUTING.md
329+
[discussions-on-github]: https://github.com/stacksjs/qrx/discussions
330+
[join-the-stacks-discord-server]: https://discord.gg/stacksjs
331+
[jetbrains]: https://www.jetbrains.com/
332+
[the-solana-foundation]: https://solana.com/
333+
[license]: LICENSE.md
334+
[commitizen-href]: http://commitizen.github.io/cz-cli/

packages/react/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
"vector-maps",
1212
"maps"
1313
],
14-
"main": "dist/index.js",
14+
"main": "dist/index.mjs",
1515
"module": "dist/index.mjs",
16-
"types": "dist/index.d.ts",
1716
"files": [
1817
"dist"
1918
],
@@ -39,5 +38,11 @@
3938
"react": "^19.2.0",
4039
"react-dom": "^19.2.0",
4140
"typescript": "^5.9.3"
41+
},
42+
"exports": {
43+
".": {
44+
"import": "./dist/index.mjs",
45+
"require": "./dist/index.js"
46+
}
4247
}
4348
}

packages/stx/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console, ts/no-top-level-await */
12
import { cpSync, existsSync, mkdirSync, rmSync, writeFileSync } from 'node:fs'
23
import { join } from 'node:path'
34

0 commit comments

Comments
 (0)