npm & cmd & bash & bin
npm & cmd & bash & bin
bin
node_modules & nested
npm publish & all src files
npm publish & files dist
, not all src files
OK
https://www.telerik.com/blogs/vuejs-how-to-build-your-first-package-publish-it-on-npm
$ yarn add nice-handsome-button
$ npm i -S nice-handsome-button
CMD
dev.cmd
#!/usr/bin/env node
echo "^-v-^ app is running in development env!" && npm run start
app.cmd
#!/usr/bin/env node
echo "^v^ app is running in production building!" && npm run build
Bash
dev.sh
#!/usr/bin/env bash
echo "🎉 ^v^ app is running in development env!" && npm run start
app.sh
#!/usr/bin/env bash
echo "🎉 ^v^ app is running in production building!" && npm run build
JSON-LD
script type="application/ld+json"
https://scotch.io/tutorials/build-an-interactive-command-line-application-with-nodejs
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"@id": "https://scotch.io#organization",
"name": "Scotch.io",
"url": "https://scotch.io",
"sameAs": [
"http://www.facebook.com/scotchdevelopment",
"http://twitter.com/scotch_io",
"http://instagram.com/scotch_io",
"http://www.linkedin.com/in/scotch_io",
"http://plus.google.com/scotch_io"
],
"legalName": "Scotch.io, LLC",
"logo": {
"@type": "ImageObject",
"url": "https://scotch.io/img/school-logo-sticker.png",
"width": 37,
"height": 60
},
"founder": {
"@type": "Person",
"name": "Chris Sevilleja",
"image": {
"@type": "ImageObject",
"url": "https://scotch-res.cloudinary.com/image/upload/w_300,q_auto:good,f_auto,c_fill,g_face/media/1/w7Vhk81SyClJPlDQPMLh_17795826_10154678250924582_8102840950354615336_n.jpg",
"width": 300,
"height": 300
}
}
}
</script>
refs
https://github.com/xgqfrms/vue-corp-card
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/10909556.html
未经授权禁止转载,违者必究!