Skip to content

Commit

Permalink
Merge pull request #19 from 51ngul4r1ty/temp/kevin/vsix-build-fix-npm…
Browse files Browse the repository at this point in the history
…-workspaces

Fix VSIX Dist for NPM Workspaces
  • Loading branch information
51ngul4r1ty authored Jan 31, 2024
2 parents d76a159 + 05c0100 commit 2e58391
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 2 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ Many code standards and conventions can be picked up from existing patterns in
the code but it is advisable to use this resource as well:
[Code Standards](docs/Code-Standards.md)

If you're looking for specific "Getting Started" instructions for any of the
sub-projects in this monorepo (like the VS Code extension) then look at those
specific README.md files.

Requirements
------------

Expand All @@ -34,6 +38,7 @@ Requirements
(Windows 10 / Mac OS X)
`https://computingforgeeks.com/install-postgresql-12-on-ubuntu/`
(Ubuntu with links to other distros)
4. VSCE v2.15.0 (for building VSIX file for VS Code extension)

Recommendations
---------------
Expand Down Expand Up @@ -111,6 +116,10 @@ Working with the Monorepo
Adding Dependencies
-------------------

This monorepo uses npm workspaces. If you're unfamiliar with using workspaces
we recommend you read the npm documentation first. Some tips are provided
below, but it is best that you understand how they work fully.

Please make sure to add the dependency at the right level.

You have 2 choices:
Expand All @@ -123,6 +132,9 @@ You have 2 choices:

In general, if you're not sure, you should pick option 2.

If you wish to refresh packages for a specific workspace you can use something
like: `npm i -w=packages/vscode-extension`

Document Index
==============

Expand Down
122 changes: 120 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"build-pkg:web-app": "npm run build -w packages/web-app",
"build-pkg:shared": "npm run build -w packages/shared",
"build-pkg:extension": "npm run build -w packages/vscode-extension",
"dist-pkg:extension": "npm run build-vsix -w packages/vscode-extension",
"check-prereqs-pkg:web-app": "npm run check:prereqs -w packages/web-app",
"docker-pkg:web-app": "npm run build-pkg:web-app && npm run -w packages/web-app build:docker",
"clean-node-modules": "npx rimraf node_modules",
Expand Down
2 changes: 2 additions & 0 deletions packages/vscode-extension/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ vsc-extension-quickstart.md
**/*.ts
.DS_Store
node_modules
../../**
../**

0 comments on commit 2e58391

Please sign in to comment.