65
loading...
This website collects cookies to deliver better user experience
basetools-io
.basetools-npm-showcase
. So let's get started on your machine:mkdir basetools-npm-showcase
echo "# basetools-npm-showcase" >> README.md
echo 'module.exports = () => console.log("hello world")' >> index.js
git init
git add README.md index.js
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:basetools-io/basetools-npm-showcase.git
git push -u origin main
basetools-npm-showcase
we have to call our package @basetools-io/basetools-npm-showcase
. Make sure to commit the package.json to your repository."publishConfig": {
"registry":"https://npm.pkg.github.com"
},
npm login --registry=https://npm.pkg.github.com
npm publish
npm login --registry=https://npm.pkg.github.com --scope=@OWNER
@OWNER
is the name of your repositories account, in our example @basetools-io
. When this was successful, the package can be installed like any other npm package:npm install @basetools-io/basetools-npm-showcase
65