Posts

Showing posts from December, 2024

To set up an Angular project with SonarQube and SonarLint in a Bitbucket pipeline on macOS

Image
  1. Install SonarQube and SonarLint SonarQube: Download and Install SonarQube : Download SonarQube from SonarQube Downloads . Extract the files and run the following commands in your terminal: brew install sonarqube sonarqube start              or             sudo /opt/sonarqube/bin/macosx-universal-64/sonar.sh console Java should be -  export JAVA_HOME=$(/usr/libexec/java_home -v 22.0.2) SonarQube should be accessible at http://localhost:9000 . SonarLint (for IDE integration): For VS Code : Install the SonarLint extension from the VS Code marketplace. For JetBrains IDE (like IntelliJ, WebStorm) : Install SonarLint from the JetBrains plugin marketplace. 2. Set Up SonarQube on Your Project Install the SonarScanner : The SonarScanner is used to analyze the code and send the results to SonarQube. Install SonarScanner globally using Homebrew: bash Copy code brew install sonar-scanner Configure sonar-proj...

Custom plugin create in ionic 7 with Capacitor in Mac

  How to Create a Custom Capacitor Plugin and Add it to an Ionic 7 Project In this tutorial, we will go through the steps required to set up an Ionic project with Capacitor, configure it for iOS, and ensure your project is properly synced. 1. Set Up Your Environment Install Node.js and Required Tools Use Node.js version 18.20.5: nvm use v18.20.5 Install the Ionic CLI: npm install -g @ionic/cli@7.2.0 2. Create an Ionic 7 App Create a new Ionic app: ionic start AppName --type=angular Serve the app in your browser: ionic serve To add Capacitor functionality and the Android/iOS platform: Add Android platform (optional): ionic cordova platform add android Add iOS platform (optional): ionic cordova platform add ios Install Capacitor: npm install @capacitor/core @capacitor/cli Initialize Capacitor: npx cap init AppName com.example.app [error]  Cannot run  init  for a project using a non-JSON configuration file.        ...