Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup boilerplate VS Code Extension #1

Closed
23 tasks
nagarjunsanji opened this issue Jun 27, 2024 · 0 comments · Fixed by #2
Closed
23 tasks

Setup boilerplate VS Code Extension #1

nagarjunsanji opened this issue Jun 27, 2024 · 0 comments · Fixed by #2
Assignees
Labels
enhancement New feature or request

Comments

@nagarjunsanji
Copy link
Collaborator

Setup boilerplate VS Code Extension

Description:
We need to establish a boilerplate for our new VS Code extension. This setup will serve as the foundation for further development, ensuring all necessary configurations and initial setups are in place. The boilerplate will include the basic structure, configuration files, linting, testing, and continuous integration setup.

Checklist:

  • Initialize Repository

    • Create a new GitHub repository for the VS Code extension.
    • Add a meaningful README.md file with an overview of the project.
  • Basic Structure and Files

    • Add package.json with essential metadata and dependencies.
    • Add tsconfig.json for TypeScript configuration.
    • Add .gitignore to exclude unnecessary files from version control.
    • Create the extension entry file (src/extension.ts).
  • Configuration

    • Set up eslint for linting TypeScript code.
    • Add necessary ESLint configuration files (.eslintrc.json, .eslintignore).
  • Scripts

    • Add scripts to package.json for common tasks (build, watch, lint, test).
      • vscode:prepublish: Pre-publish hook.
      • compile: Compile the extension.
      • watch: Watch for changes and recompile.
      • package: Create a production build.
      • pretest: Prepare for tests.
      • test: Run tests.
  • Continuous Integration (CI)

    • Set up GitLab CI with a .gitlab-ci.yml file.
    • Configure stages: install, lint, compile, test, deploy.
    • Ensure CI runs tests and checks coverage.
  • Testing

    • Add initial test cases.
    • Ensure tests run in CI.
  • Documentation

    • Document the setup and usage in the README.md file.
    • Add contribution guidelines and code of conduct.

Explanation:

  1. Initialize Repository: This step involves creating the repository and setting up the README file to give an overview of the project.

  2. Basic Structure and Files: Adding the essential files and folders to give the project its basic structure.

  3. Configuration: Setting up tools like ESLint helps maintain code quality and consistency.

  4. Scripts: Adding useful scripts to package.json makes it easier to run common tasks such as building and testing the extension.

  5. Continuous Integration (CI): Setting up CI ensures that code is automatically tested and validated on every commit, which helps in maintaining code quality and reliability.

  6. Testing: Initial test cases ensure that the boilerplate setup is working correctly and provides a foundation for future tests.

  7. Documentation: Proper documentation helps others understand the setup and contribute effectively to the project.

By following this checklist, we ensure that the boilerplate for the VS Code extension is well-structured, properly configured, and ready for further development and contributions.

@nagarjunsanji nagarjunsanji self-assigned this Jun 27, 2024
@nagarjunsanji nagarjunsanji added the enhancement New feature or request label Jun 27, 2024
@nagarjunsanji nagarjunsanji linked a pull request Jun 27, 2024 that will close this issue
@nagarjunsanji nagarjunsanji reopened this Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant