Skip to content

Latest commit

 

History

History
95 lines (68 loc) · 2.33 KB

CONTRIBUTING.md

File metadata and controls

95 lines (68 loc) · 2.33 KB
date
2023-11-20

Contributing

Pull Request & Issues

Project Structure

<project-root>
  + assets                Downloaded hints/references data
  + docs                  Documentations for this project
  + scripts               Some bash scripts for building, publishing, and fixing 
  + src
    + additonal_snippets  Extra Visual Studio Code snippets beyond the downloaded snippets
	+ extension           Source code about Visual Studio Code extension
	  + main.desktop.ts   The entrypoint for the desktop extension
	  + main.web.ts       The entrypoint for the web extension
	+ libs                Third-party library/code
	+ syntax              Nginx configuration syntax files and generator
	+ utils               Utilities for downloading and generating hints/references data
  + test

Prerequisites

References

Pull and Initialize

git clone https://github.com/hangxingliu/vscode-nginx-conf-hint.git
cd vscode-nginx-conf-hint

# Install full dependencies:
yarn install

# OR You can install without optional dependencies:
# These optional dependencies will not break the building of this project, 
# but they are used for linting, testing, and release
yarn install --ignore-optional

Build

# Build this project as desktop extension
yarn build:desktop-ext

# Build this project as a web extension
yarn build:web-ext

# Build utils in this project
yarn build:utils

Update Hint Data

yarn build:utils
node src/utils/download_hint_data
node src/utils/download_http_headers
node src/utils/download_lua_hint_data
node src/utils/download_mimetypes

Debug

Desktop Extension

Select "Launch Extension" in your Visual Studio Code like the following screenshot:

debug-config

Then press F5 for debugging.

Web Extension

yarn run test:web-ext