{"_id":"@avlabs/template-ts-library","name":"@avlabs/template-ts-library","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.2":{"name":"@avlabs/template-ts-library","private":false,"version":"0.0.2","main":"./dist/vite-ts-lib-starter.cjs","module":"./dist/vite-ts-lib-starter.mjs","exports":{".":{"require":"./dist/vite-ts-lib-starter.cjs","import":"./dist/vite-ts-lib-starter.mjs"}},"scripts":{"dev":"vite --host","build":"tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts","test":"jest --runInBand","test:coverage":"jest --runInBand --coverage","lint:scripts":"eslint . --ext .ts","format:scripts":"prettier . --write","format":"npm run format:scripts && npm run format:styles","prepare":"husky install && husky set .husky/pre-commit 'npx lint-staged' && git add .husky/pre-commit","uninstall-husky":"npm uninstall husky --no-save && git config --unset core.hooksPath && npx rimraf .husky"},"devDependencies":{"@types/jest":"^29.5.0","@types/jsdom":"^20.0.1","@types/node":"^18.11.18","@typescript-eslint/eslint-plugin":"^5.48.2","@typescript-eslint/parser":"^5.48.2","dts-bundle-generator":"^7.1.0","eslint":"^8.32.0","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","husky":"^8.0.3","jest":"^29.3.1","lint-staged":"^13.1.0","prettier":"^2.8.3","ts-jest":"^29.0.5","ts-node":"^10.9.1","typescript":"4.7.4","vite":"^4.1.4"},"gitHead":"2b33da94303437024cc4db7c7825523854bb891f","description":"The starter is built on top of Vite 4.x and prepared for writing libraries in TypeScript. It generates a hybrid package - both support for CommonJS and ESM modules.","_id":"@avlabs/template-ts-library@0.0.2","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-ZqriT/b3G64Tz9lpeuXtEnWFqlM/uwnDP+oqR70XaAQFQYd6M1ejaf4GfYblwY+GlN3GiyB3gljLjkP/5tlRLw==","shasum":"2be59c8f1f4f076af6ad162ac103eb1d50de7904","tarball":"https://registry.npmjs.org/@avlabs/template-ts-library/-/template-ts-library-0.0.2.tgz","fileCount":22,"unpackedSize":10676,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuliBq2ojk9P+ctEzzfmnmFUgMQ+0t0k4Km7K+xqoV9QIhALRr9QgiLzHh2xT18JO5YT+CPLUj2H2viWciuWgkOuje"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIR6JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqeSw/8CEaqc7QHJI3BKJHixF7yj++Tu7ei5S2xqnrjpJeM2eOHvPpn\r\nLF+M52p7bd1QfDpesAx2m27GH0szTm9lWl/LYejCcH70zGAEYwyYzEQG5N1r\r\nkLA5VmWf05v8OdF63FVHyUoEUeeCXEOPHnfOmC8e3SjXBp9K4iahDXkhT9P/\r\n/6rySdXLICZsZuQfyYCv/KEyO8XG9a/CpxWUMJq5HUf9bwej4tdwKA7g4DF9\r\ndiAqggxUf8qHstvKzY+HqHXk6b9w31ibfAIgXMwhPspACGdLV4JDqIlCCQ/h\r\npZGxP9s5iMwPle3dwblkBZazzbWeBp7Su55bV+LwwE3fNH4SP6AF4In7S7sj\r\njGrKDGqaVVgmlLCrseEdJ6zzl10gcbssHMMIjlJX2jyRu3lfulW4UbEswLWo\r\n0B3h0V3xOBjHSxn68cvwU1iofQYLz9aI60pARwftLkGJvgRGfjFdMFR4ghXt\r\ngGDbqJ+DSKzlpsYFmioXDTsHANa06aix3GGYVRlBLmk3TVCrO2a3GQe8Hc3S\r\nUitTkUGmo6WS2VlXd6M6CiZZrUkAulRTPBxPrix/ImKplE2YiPqfGuuJHLwk\r\nY7Vywwe3cUqLoFOQCj65AFeoaAZBst2Hh9eajbi9Aaz0zNHRrKj9MnL5fl3J\r\nh5lOJ7q2TwzWgLR3zYrMNRiKnNJxzwHDlv4=\r\n=MntH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dmitriy.borodiy","email":"dmitriy.borodiy@gmail.com"},"directories":{},"maintainers":[{"name":"dmitriy.borodiy","email":"dmitriy.borodiy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/template-ts-library_0.0.2_1679892105730_0.27565389739968627"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-27T04:41:45.645Z","0.0.2":"2023-03-27T04:41:45.882Z","modified":"2023-03-27T04:41:46.215Z"},"maintainers":[{"name":"dmitriy.borodiy","email":"dmitriy.borodiy@gmail.com"}],"description":"The starter is built on top of Vite 4.x and prepared for writing libraries in TypeScript. It generates a hybrid package - both support for CommonJS and ESM modules.","readme":"# vite-vanilla-ts-lib-starter\n\nThe starter is built on top of Vite 4.x and prepared for writing libraries in TypeScript. It generates a hybrid package - both support for CommonJS and ESM modules.\n\n## Features\n\n- Hybrid support - CommonJS and ESM modules\n- IIFE bundle for direct browser support without bundler\n- Typings bundle\n- ESLint - scripts linter\n- Stylelint - styles linter\n- Prettier - formatter\n- Jest - test framework\n- Husky + lint-staged - pre-commit git hook set up for formatting\n\n## GitHub Template\n\nThis is a template repo. Click the green [Use this template](https://github.com/kbysiec/vite-vanilla-ts-lib-starter/generate) button to get started.\n\n## Clone to local\n\nIf you prefer to do it manually with the cleaner git history\n\n```bash\ngit clone https://github.com/kbysiec/vite-vanilla-ts-lib-starter.git\ncd vite-vanilla-ts-lib-starter\nnpm i\n```\n\n## Checklist\n\nWhen you use this template, update the following:\n\n- Remove `.git` directory and run `git init` to clean up the history\n- Change the name in `package.json` - it will be the name of the IIFE bundle global variable and bundle files name (`.cjs`, `.mjs`, `.iife.js`, `d.ts`)\n- Change the author name in `LICENSE`\n- Clean up the `README` and `CHANGELOG` files\n\nAnd, enjoy :)\n\n## Usage\n\nThe starter contains the following scripts:\n\n- `dev` - starts dev server\n- `build` - generates the following bundles: CommonJS (`.cjs`) ESM (`.mjs`) and IIFE (`.iife.js`). The name of bundle is automatically taked from `package.json` name property\n- `test` - starts jest and runs all tests\n- `test:coverage` - starts jest and run all tests with code coverage report\n- `lint:scripts` - lint `.ts` files with eslint\n- `format:scripts` - format `.ts`, `.html` and `.json` files with prettier\n- `format` - format all with prettier and stylelint\n- `prepare` - script for setting up husky pre-commit hook\n- `uninstall-husky` - script for removing husky from repository\n\n## Acknowledgment\n\nIf you found it useful somehow, I would be grateful if you could leave a star in the project's GitHub repository.\n\nThank you.\n","readmeFilename":"README.md"}