{"id":19451764,"url":"https://github.com/zhengxs2018/shared-node-browser-library-boilerplate","last_synced_at":"2025-04-25T04:30:30.758Z","repository":{"id":44967512,"uuid":"184603815","full_name":"zhengxs2018/shared-node-browser-library-boilerplate","owner":"zhengxs2018","description":"Using rollup.js to build, a re-usable NPM module for run in nodejs and browser.","archived":true,"fork":false,"pushed_at":"2024-09-30T01:38:46.000Z","size":974,"stargazers_count":4,"open_issues_count":6,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T23:29:13.200Z","etag":null,"topics":["boilerplate","esnext","node-module","npm","perttier","template","typescript"],"latest_commit_sha":null,"homepage":"https://zhengxs2018.github.io/shared-node-browser-library-boilerplate/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhengxs2018.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-02T15:15:50.000Z","updated_at":"2024-09-30T01:39:18.000Z","dependencies_parsed_at":"2023-02-06T15:16:12.059Z","dependency_job_id":null,"html_url":"https://github.com/zhengxs2018/shared-node-browser-library-boilerplate","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhengxs2018%2Fshared-node-browser-library-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhengxs2018%2Fshared-node-browser-library-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhengxs2018%2Fshared-node-browser-library-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhengxs2018%2Fshared-node-browser-library-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhengxs2018","download_url":"https://codeload.github.com/zhengxs2018/shared-node-browser-library-boilerplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250754541,"owners_count":21481834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boilerplate","esnext","node-module","npm","perttier","template","typescript"],"created_at":"2024-11-10T16:42:52.113Z","updated_at":"2025-04-25T04:30:30.224Z","avatar_url":"https://github.com/zhengxs2018.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @zhengxs/npm-module-boilerplate\n\n[![lang](https://img.shields.io/badge/lang-typescript-informational)](https://www.typescriptlang.org/)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![codecov](https://codecov.io/gh/zhengxs2018/shared-node-browser-library-boilerplate/branch/main/graph/badge.svg?token=1WYDMOFYX8)](https://codecov.io/gh/zhengxs2018/shared-node-browser-library-boilerplate)\n![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)\n\nUsing rollup.js to build, a re-usable NPM module for run in nodejs and browser.\n\n查看[中文文档](./README.zh-CN.md)\n\n## 关联文章\n\n- [开发一个适用于 nodejs 与浏览器的 npm 包 - 基于 rollupjs](https://juejin.im/post/6844903834402160647)\n\n## 其他分支\n\n- `branch:esm` - 最初的 rollup + babel + es6 模板\n\n## Features\n\n- Use next javascript development.\n- Run in nodejs and browser.\n- Built-in bundle analyzer report, document generation, lint, unit testing \u0026\u0026 code coverage\n\n## Development Setup\n\nYou will need [Node.js][nodejs] version 10+.\n\nAfter cloning the repo, run:\n\n```bash\n# Installation dependency\n$ npm install\n\n# build for production with minification\n$ npm run build\n\n# build for production and generate the bundle analyzer report\n$ npm run analyse\n\n# Generate document.\n$ npm run ts-doc\n```\n\nThere are some other scripts available in the scripts section of the package.json file.\n\n## Version Release\n\n```bash\n# Bump package version, include linting\n$ npm version \u003cnewversion|major|minor|patch\u003e\n\n# Publish package, include build\n$ npm publish\n```\n\nSee [npm](https://docs.npmjs.com/) for more help.\n\n## ChangeLog\n\nSee [CHANGELOG.md](./CHANGELOG.md)\n\n## Contributing\n\nSee [CONTRIBUTING.md](./.github/CONTRIBUTING.md)\n\n[rollupjs]: https://rollupjs.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhengxs2018%2Fshared-node-browser-library-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhengxs2018%2Fshared-node-browser-library-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhengxs2018%2Fshared-node-browser-library-boilerplate/lists"}