busnode

1.2.37 • Public • Published

Publish to npm

We have setup gitlab to host npm packages.

To be able to publish npm-packages to gitlab you will need to create a deploy-token and run a couple of commands.

# Set URL for your scoped packages.
# For example package with name `@foo/bar` will use this URL for download
$ npm config set @busnode:registry https://git.titv.se/api/v4/projects/81/packages/npm/

# Add the token for the scoped packages URL. Replace <your_project_id>
# with the project where your package is located.
$ npm config set -- '//git.titv.se/api/v4/projects/81/packages/npm/:_authToken' "<your_token>"

Also you will need to change these lines in the package.json

diff --git a/package.json b/package.json
index 7c0a001..b40bfa4 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
 {
-  "name": "busnode",
+  "name": "@busnode/busnode",
   "version": "1.2.16",
   "description": "Thoreb busnode software",
   "main": "main.js",
@@ -11,6 +11,9 @@
     "type": "git",
     "url": "https://git.titv.se/thoreb/busnode.git"
   },
+  "publishConfig": {
+    "@busnode:registry": " https://git.titv.se/api/v4/projects/81/packages/npm/"
+  },
   "author": "Fredrik Blix <fredrik.blix@titv.se>",
   "license": "UNLICENSED",
   "dependencies": {

Readme

Keywords

none

Package Sidebar

Install

npm i busnode

Weekly Downloads

3

Version

1.2.37

License

UNLICENSED

Unpacked Size

738 kB

Total Files

99

Last publish

Collaborators

  • fredrikblix