{"id":18358881,"url":"https://github.com/uppercod/pkg-browser","last_synced_at":"2025-04-10T03:05:09.059Z","repository":{"id":113251385,"uuid":"438478891","full_name":"UpperCod/pkg-browser","owner":"UpperCod","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-15T04:39:08.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T18:36:40.983Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UpperCod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-15T03:14:13.000Z","updated_at":"2021-12-15T04:39:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7fbc63c-bd3c-47dd-a4c6-7cbbe57c8cc9","html_url":"https://github.com/UpperCod/pkg-browser","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fpkg-browser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fpkg-browser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fpkg-browser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fpkg-browser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UpperCod","download_url":"https://codeload.github.com/UpperCod/pkg-browser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248148230,"owners_count":21055547,"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":[],"created_at":"2024-11-05T22:19:49.099Z","updated_at":"2025-04-10T03:05:09.021Z","avatar_url":"https://github.com/UpperCod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Hi, I'm [@uppercod](https://twitter.com/uppercod), This repo provides what you need to start creating module and browser compatible packages (DOM).\r\n\r\nIf you need help you can find it at:\r\n\r\n[![twitter](https://raw.githubusercontent.com/atomicojs/docs/master/.gitbook/assets/twitter.svg)](https://twitter.com/atomicojs)\r\n[![discord](https://raw.githubusercontent.com/atomicojs/docs/master/.gitbook/assets/discord.svg)](https://discord.gg/7z3rNhmkNE)\r\n\r\nNow what you have installed is a quick start kit based on Vite, which you can scale for your project, now to continue you must execute the following commands:\r\n\r\n1. `npm install`\r\n2. `npm start` : Initialize the development server\r\n3. `npm build` : Optional, Generate a build of your project from the html file [index.html](index.html).\r\n\r\n## Workspace\r\n\r\n### Recommended structure\r\n\r\n```bash\r\nsrc\r\n  |- module.js\r\n```\r\n\r\n### Add testing\r\n\r\nThe test environment is preconfigured for [@web/test-runner](https://modern-web.dev/docs/test-runner/overview/), you must complete the installation of the following devDependencies, installed the devDependencies you can execute the command `npm run test`:\r\n\r\n```bash\r\nnpm install -D @web/test-runner @esm-bundle/chai vite-web-test-runner-plugin\r\n```\r\n\r\n#### Test example\r\n\r\n```js\r\nimport { expect } from \"@esm-bundle/chai\";\r\n\r\ndescribe(\"my test\", () =\u003e {\r\n    it(\"foo is bar\", () =\u003e {\r\n        expect(\"foo\").to.equal(\"bar\");\r\n    });\r\n});\r\n```\r\n\r\n\u003e `@web/test-runner` supports asynchrony, coverage, [viewport and more](https://modern-web.dev/docs/test-runner/commands/).\r\n\r\n### NPM export\r\n\r\nAtomico owns the [@atomico/exports](https://atomico.gitbook.io/doc/atomico/atomico-exports) tool that simplifies the generation of builds, types and exports by distributing webcomponents in NPM, you must complete the installation of the following devDependencies, installed the devDependencies you can execute the command `npm run exports`:\r\n\r\n```bash\r\nnpm install -D @atomico/exports\r\n```\r\n\r\n### Postcss\r\n\r\nThis configuration already depends on Postcss, you can more plugins through `package.json#postcss`, example:\r\n\r\n```json\r\n\"postcss\": {\r\n  \"plugins\": {\r\n    \"postcss-import\": {}\r\n  }\r\n}\r\n```\r\n\r\n\u003e In case of build, Atomico will minify the CSS code.\r\n\r\n### Github page\r\n\r\nAdd to `package.json#scripts.build`:\r\n\r\n```bash\r\n--outDir docs # modify the destination directory\r\n--base my-repo # github page folder\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fpkg-browser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuppercod%2Fpkg-browser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fpkg-browser/lists"}