{"_id":"@3-/webc","_rev":"3-5bb471b5124cfd7c4cc1aea68bbaec56","name":"@3-/webc","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.2":{"name":"@3-/webc","version":"0.1.2","author":{"name":"i18n.host@gmail.com"},"license":"Apache-2.0","_id":"@3-/webc@0.1.2","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/i18n-host/hpc/tree/dev/coffee/webc","bugs":{"url":"https://github.com/i18n-host/hpc/issues"},"dist":{"shasum":"f92baa1e7256aed185175c96b2b0068cc850fc83","tarball":"https://registry.npmjs.org/@3-/webc/-/webc-0.1.2.tgz","fileCount":12,"integrity":"sha512-u+UXTl7BYCtslaPoylgn68CFlivvXQSgQqWtf5LsFmw7eYdo7AtN9b9QCKho9ItsoH8j/7kB2eI2UNiJ/6aqCQ==","signatures":[{"sig":"MEUCIFDEy2c2xfWjxPD5DscuPoaAqeycccGrShijZE763qPaAiEAiAmOvIzCBkt/tWJuHFgfKCJhu1e3n75MirdjRxKuzdw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15746},"type":"module","_from":"file:3--webc-0.1.2.tgz","exports":{".":"./lib.js","./*":"./*"},"scripts":{},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"_resolved":"/private/var/folders/4x/n5x1dwrj39v_hl53vyprqcn80000gn/T/df46a2dcdbaf82054fa3d2fd863906e7/3--webc-0.1.2.tgz","_integrity":"sha512-u+UXTl7BYCtslaPoylgn68CFlivvXQSgQqWtf5LsFmw7eYdo7AtN9b9QCKho9ItsoH8j/7kB2eI2UNiJ/6aqCQ==","repository":{"url":"git+https://github.com/i18n-host/hpc.git","type":"git"},"_npmVersion":"11.4.2","description":"[test/main.coffee](./test/main.coffee) :","directories":{},"_nodeVersion":"24.3.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tape":"^5.9.0"},"peerDependencies":{"pug":"^3.0.3","eslint":"^9.32.0","@3-/walk":"^0.0.2","@3-/camel":"^0.1.1","@3-/snake":"^0.0.3","@3-/css2js":"^0.1.6","@eslint/js":"^9.32.0","@~8/mincss":"^0.1.3","@~8/stylus":"^0.1.3","@3-/extract":"^0.1.8","coffeescript":"^2.7.0","@3-/coffee_plus":"^0.1.29","@sveltejs/vite-plugin-svelte":"^6.1.0"},"_npmOperationalInternal":{"tmp":"tmp/webc_0.1.2_1753777082827_0.0025045384543505023","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@3-/webc","version":"0.1.3","author":{"name":"i18n.host@gmail.com"},"license":"Apache-2.0","_id":"@3-/webc@0.1.3","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"homepage":"https://github.com/i18n-host/hpc/tree/dev/coffee/webc","bugs":{"url":"https://github.com/i18n-host/hpc/issues"},"dist":{"shasum":"c0f55e0a2bbdb65b29ee4eda77c81837cc8a45c4","tarball":"https://registry.npmjs.org/@3-/webc/-/webc-0.1.3.tgz","fileCount":12,"integrity":"sha512-vITDGqw7p2GyRyZBq+VjsREdbDkb5Qai8yexuTh8A27RS6vz77FFlQZQyzAF/LTAJqtkclzS0imMyZp1/ojlzw==","signatures":[{"sig":"MEUCIQDsgOP11/+p/4iJFpBRUVmIS8fKEx6apNMBJM+eAn3fDwIgE7c3OkZtNk7pEoZZIG3NmEPdQIT3sQ5FwStn9XgAKj0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15912},"type":"module","_from":"file:3--webc-0.1.3.tgz","exports":{".":"./lib.js","./*":"./*"},"scripts":{},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"_resolved":"/private/var/folders/4x/n5x1dwrj39v_hl53vyprqcn80000gn/T/39a5828f83b1a923d4b7c1d42958818e/3--webc-0.1.3.tgz","_integrity":"sha512-vITDGqw7p2GyRyZBq+VjsREdbDkb5Qai8yexuTh8A27RS6vz77FFlQZQyzAF/LTAJqtkclzS0imMyZp1/ojlzw==","repository":{"url":"git+https://github.com/i18n-host/hpc.git","type":"git"},"_npmVersion":"11.4.2","description":"项目模板 [github.com/i18n-site/template-webc](https://github.com/i18n-site/template-webc)","directories":{},"_nodeVersion":"24.3.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tape":"^5.9.0"},"peerDependencies":{"pug":"^3.0.3","eslint":"^9.32.0","@3-/walk":"^0.0.2","@3-/camel":"^0.1.1","@3-/snake":"^0.0.3","@3-/css2js":"^0.1.6","@eslint/js":"^9.32.0","@~8/mincss":"^0.1.3","@~8/stylus":"^0.1.3","@3-/extract":"^0.1.8","coffeescript":"^2.7.0","@3-/coffee_plus":"^0.1.29","@sveltejs/vite-plugin-svelte":"^6.1.0"},"_npmOperationalInternal":{"tmp":"tmp/webc_0.1.3_1753778017042_0.5419306445123449","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@3-/webc","version":"0.1.4","repository":{"type":"git","url":"git+https://github.com/i18n-host/hpc.git"},"homepage":"https://github.com/i18n-host/hpc/tree/dev/coffee/webc","author":{"name":"i18n.host@gmail.com"},"license":"Apache-2.0","exports":{".":"./lib.js","./*":"./*"},"devDependencies":{"tape":"^5.9.0"},"type":"module","peerDependencies":{"@~8/stylus":"^0.1.3","coffeescript":"^2.7.0","eslint":"^9.32.0","pug":"^3.0.3","@sveltejs/vite-plugin-svelte":"^6.1.0","@3-/camel":"^0.1.1","@3-/coffee_plus":"^0.1.29","@3-/css2js":"^0.1.6","@3-/extract":"^0.1.8","@3-/snake":"^0.0.3","@3-/walk":"^0.0.2","@eslint/js":"^9.32.0","@~8/mincss":"^0.1.3"},"dependencies":{},"scripts":{},"_id":"@3-/webc@0.1.4","description":"项目模板 [github.com/i18n-site/template-webc](https://github.com/i18n-site/template-webc)","bugs":{"url":"https://github.com/i18n-host/hpc/issues"},"_integrity":"sha512-kzDyHy9irP+UhtmfI/2AG0rQgHMmtSHjwzt/HB4NfP5OhCr4CXDM38OfwKpOtfIiPvqBvxzWhvO9ZXv64TPldg==","_resolved":"/private/var/folders/4x/n5x1dwrj39v_hl53vyprqcn80000gn/T/84b5511592fea6db1f3963c1186cedc8/3--webc-0.1.4.tgz","_from":"file:3--webc-0.1.4.tgz","_nodeVersion":"24.3.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-kzDyHy9irP+UhtmfI/2AG0rQgHMmtSHjwzt/HB4NfP5OhCr4CXDM38OfwKpOtfIiPvqBvxzWhvO9ZXv64TPldg==","shasum":"31cc264a8f8ad649d7504a2a5b0a31e8b862fc45","tarball":"https://registry.npmjs.org/@3-/webc/-/webc-0.1.4.tgz","fileCount":12,"unpackedSize":15848,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDM19iiWmOk8vDbhrt+92RD3datkZmuCp0DA0PKViGFEgIgMCFwEnQ8SqQfFs/MsHXDZXUs5C22rosPJYPjerop7sE="}]},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"directories":{},"maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/webc_0.1.4_1754285384693_0.18988290895934745"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-29T08:18:02.732Z","modified":"2025-08-04T05:29:45.077Z","0.1.2":"2025-07-29T08:18:03.033Z","0.1.3":"2025-07-29T08:33:37.216Z","0.1.4":"2025-08-04T05:29:44.878Z"},"bugs":{"url":"https://github.com/i18n-host/hpc/issues"},"author":{"name":"i18n.host@gmail.com"},"license":"Apache-2.0","homepage":"https://github.com/i18n-host/hpc/tree/dev/coffee/webc","repository":{"type":"git","url":"git+https://github.com/i18n-host/hpc.git"},"description":"项目模板 [github.com/i18n-site/template-webc](https://github.com/i18n-site/template-webc)","maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"readme":"# @3-/webc\n\n项目模板 [github.com/i18n-site/template-webc](https://github.com/i18n-site/template-webc)\n\n## `:global(_)`\n\n`:global(_) ` 可以设置网页组件本身的样式\n\n比如:\n\n```\n<style lang=\"stylus\">\n:global(_)\n  background red\n  &>h1\n    color #0f0\n</stylus>\n```\n\n## 组件的css和内容分离\n\n\n```\n<style lang=\"stylus\">\nb\n  color red\n</stylus>\n```\n\n默认会转写成\n\n```\n<style lang=\"stylus\">\ni-index>b\n  color red\n</stylus>\n```\n\n如果要组件内的全局样式，可以写:\n\n```\n<style lang=\"stylus\">\n:global(_)\n  b\n    color #0f0\n</stylus>\n```\n","readmeFilename":"README.md"}