{"id":15290700,"url":"https://github.com/foxdaxian/justcode","last_synced_at":"2026-02-01T00:01:45.510Z","repository":{"id":57287461,"uuid":"154654401","full_name":"FoxDaxian/justcode","owner":"FoxDaxian","description":"生成一套webpack配置，方便用来写npm包","archived":false,"fork":false,"pushed_at":"2018-11-11T08:16:00.000Z","size":168,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T19:04:26.251Z","etag":null,"topics":["autogenerate","npm","npm-package","webpack"],"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/FoxDaxian.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}},"created_at":"2018-10-25T10:45:51.000Z","updated_at":"2018-11-19T09:06:49.000Z","dependencies_parsed_at":"2022-08-24T22:51:50.553Z","dependency_job_id":null,"html_url":"https://github.com/FoxDaxian/justcode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FoxDaxian/justcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FoxDaxian%2Fjustcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FoxDaxian%2Fjustcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FoxDaxian%2Fjustcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FoxDaxian%2Fjustcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FoxDaxian","download_url":"https://codeload.github.com/FoxDaxian/justcode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FoxDaxian%2Fjustcode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259519773,"owners_count":22870364,"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":["autogenerate","npm","npm-package","webpack"],"created_at":"2024-09-30T16:09:06.027Z","updated_at":"2026-02-01T00:01:40.471Z","avatar_url":"https://github.com/FoxDaxian.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### 一个生成用于写npm包的模板工具的脚手架 兼容window | mac | linux\n\n[中文](https://github.com/FoxDaxian/justcode/blob/master/README.md '中文地址') | [english](https://github.com/FoxDaxian/justcode/blob/master/en-us.md 'en-us')\n\n#### 模板功能\n1. 支持es6\n1. 支持scss\n1. 热刷新(除index.html)\n1. 自动打开默认浏览器\n1. 开发环境写入内存\n\n\n#### 用法\n\n```js\n\t//  全局安装\n\tnpm i justcode -g\n\t// 切换到你的目标目录\n\tcd /yourtarget dir\n\t// 生成模板\n\tjcd init \u003ccustomName\u003e\n\t// 进入\n\tcd customName\n\t// 安装依赖\n\tnpm i\n\t// 开发环境\n\tnpm run dev\n\t// 打包\n\tnpm run build\n\t// 打包后请更新package.json部分字段，下面为package.json，json不支持 '//' 格式的注释，以下为了方便，故添加注释\n\t{\n\t\t\"name\": \"plugin_name\", // 你的插件名称\n\t\t\"version\": \"1.0.0\", // 版本号，每次更新后手动更新，或者使用standard-version管理，附上地址： https://github.com/conventional-changelog/standard-version\n\t\t\"main\": \"./dist/output.js\", // 默认的打包输出路径，config目录下有默认配置，需同步修改\n\t\t\"repository\": \"your git repository\", // 该插件对应的github地址\n\t\t\"author\": \"your name\", // 你的大名\n\t\t\"license\": \"MIT\", // 协议\n\t\t\"scripts\": {\n\t\t\t\"dev\": \"cross-env DEBUG=console.* babel-node ./build/webpack.dev.js\",\n\t\t\t\"build\": \"cross-env DEBUG=console.* babel-node ./build/webpack.prod.js\"\n\t\t},\n\t\t\"dependencies\": {},\n\t\t\"devDependencies\": {}\n\t}\n\t// 最后一步，登录npm\n\tnpm login\n\t// 发布，发布的时候不能使用非npm源，并且需要更新版本，否则会发布失败\n\tnpm publish\n```\n\n#### 以上为大概内容和流程，有任何问题可以提issue\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxdaxian%2Fjustcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxdaxian%2Fjustcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxdaxian%2Fjustcode/lists"}