Skip to content

How to use a local build of Portman in a project? #374

Answered by thim81
thim81 asked this question in Q&A
Discussion options

You must be logged in to vote

Follow these steps, to replace the NPM version of Portman with a local build of Portman:

  1. Download the desired Portman repo/branch
  2. In your project, where the NPM version of Portman is used run: npm uninstall @apideck/portman
  3. Next in your project run: npm link C:\Users\custombranch\source\repos\portman where C:\Users\custombranch\source\repos\portman is the local location of the custom portman repo lives (just point to the root folder of portman location)
  4. Next run npm i, in your project folder
  5. Next go the local folder of Portman and open the tsconfig.json and added a "watch": true in the compilerOptions
  6. Run npm run build in the local Portman folder (this adds it in watch mode, so every cha…

Replies: 1 comment

Comment options

thim81
Jul 14, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by thim81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant