{"_id":"@bluecadet-3/d-lite","name":"@bluecadet-3/d-lite","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.2":{"name":"@bluecadet-3/d-lite","version":"0.0.2","main":"./dist/d-lite.cjs","module":"./dist/d-lite.mjs","publishConfig":{"@martinsilha:registry":"https://npm.pkg.github.com"},"exports":{".":{"require":"./dist/d-lite.cjs","import":"./dist/d-lite.mjs"}},"scripts":{"dev":"vite --host","build":"tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts","test":"exit 0","test:coverage":"vitest --coverage","lint:scripts":"eslint . --ext .ts","lint:styles":"stylelint ./**/*.{css,scss}","format:scripts":"prettier . --write","format:styles":"stylelint ./**/*.{css,scss} --fix","format":"yarn format:scripts && yarn format:styles","prepare":"husky install && husky set .husky/pre-commit 'npx lint-staged' && git add .husky/pre-commit","uninstall-husky":"yarn remove husky --no-save && git config --unset core.hooksPath && yarn dlx rimraf .husky"},"devDependencies":{"@semantic-release/commit-analyzer":"9.0.2","@semantic-release/git":"10.0.1","@semantic-release/github":"8.0.7","@semantic-release/release-notes-generator":"11.0.1","@types/jsdom":"^20.0.1","@types/node":"^18.11.18","@typescript-eslint/eslint-plugin":"^5.48.2","@typescript-eslint/parser":"^5.48.2","@vitest/coverage-c8":"^0.29.8","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","lint-staged":"^13.1.0","lit":"2.7.4","postcss":"^8.4.21","prettier":"^2.8.3","semantic-release":"^20.1.0","stylelint":"^14.16.1","stylelint-config-prettier":"^9.0.5","stylelint-config-recommended":"^9.0.0","stylelint-prettier":"^3.0.0","ts-node":"^10.9.1","typescript":"^4.9.4","vite":"^4.0.4","vitest":"^0.29.8"},"types":"./dist/d-lite.d.ts","gitHead":"b9d69b03bc8a72fa9add134e45bb0a82190d6df6","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":"@bluecadet-3/d-lite@0.0.2","_nodeVersion":"18.15.0","_npmVersion":"9.6.4","dist":{"integrity":"sha512-YUgLThFIjjgciflTsDF4sA8pg5Qy2y1KzYtXPX2LXuNJnv9itlYl5tUXHdAMXR/VqIFmDZQMPqt6Y+RBjjXfrw==","shasum":"85241196f53f2be3faac644839088ddf5d8a7ad4","tarball":"https://registry.npmjs.org/@bluecadet-3/d-lite/-/d-lite-0.0.2.tgz","fileCount":26,"unpackedSize":16338,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFUYeqsCQAKZrBJoOc4W7TAnogXVuhApek0pjaV0Zc0JAiEAn0qIUhyhWkIPo4er/NgrmW73QzZW7f4CGu6861IdXLw="}]},"_npmUser":{"name":"bluecadet-3","email":"hello@silha.dev"},"directories":{},"maintainers":[{"name":"bluecadet-3","email":"hello@silha.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d-lite_0.0.2_1683831204276_0.6574635978081993"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-11T18:53:24.226Z","0.0.2":"2023-05-11T18:53:24.434Z","modified":"2023-05-11T18:53:24.599Z"},"maintainers":[{"name":"bluecadet-3","email":"hello@silha.dev"}],"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\r\n\r\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.\r\n\r\n## Features\r\n\r\n- Hybrid support - CommonJS and ESM modules\r\n- IIFE bundle for direct browser support without bundler\r\n- Typings bundle\r\n- ESLint - scripts linter\r\n- Stylelint - styles linter\r\n- Prettier - formatter\r\n- Vitest - test framework\r\n- Husky + lint-staged - pre-commit git hook set up for formatting\r\n\r\n## GitHub Template\r\n\r\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.\r\n\r\n## Clone to local\r\n\r\nIf you prefer to do it manually with the cleaner git history\r\n\r\n```bash\r\ngit clone https://github.com/kbysiec/vite-vanilla-ts-lib-starter.git\r\ncd vite-vanilla-ts-lib-starter\r\nnpm i\r\n```\r\n\r\n## Checklist\r\n\r\nWhen you use this template, update the following:\r\n\r\n- Remove `.git` directory and run `git init` to clean up the history\r\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`)\r\n- Change the author name in `LICENSE`\r\n- Clean up the `README` and `CHANGELOG` files\r\n\r\nAnd, enjoy :)\r\n\r\n## Usage\r\n\r\nThe starter contains the following scripts:\r\n\r\n- `dev` - starts dev server\r\n- `build` - generates the following bundles: CommonJS (`.cjs`) ESM (`.mjs`) and IIFE (`.iife.js`). The name of bundle is automatically taken from `package.json` name property\r\n- `test` - starts vitest and runs all tests\r\n- `test:coverage` - starts vitest and run all tests with code coverage report\r\n- `lint:scripts` - lint `.ts` files with eslint\r\n- `lint:styles` - lint `.css` and `.scss` files with stylelint\r\n- `format:scripts` - format `.ts`, `.html` and `.json` files with prettier\r\n- `format:styles` - format `.cs` and `.scss` files with stylelint\r\n- `format` - format all with prettier and stylelint\r\n- `prepare` - script for setting up husky pre-commit hook\r\n- `uninstall-husky` - script for removing husky from repository\r\n\r\n## Acknowledgment\r\n\r\nIf you found it useful somehow, I would be grateful if you could leave a star in the project's GitHub repository.\r\n\r\nThank you.\r\n","readmeFilename":"README.md"}