
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
nitp-build-tools
Advanced tools
Official build system for NIT Patna's backend services - A powerful Maven-based build automation tool with cross-platform support
Official build system for NIT Patna's backend services - A powerful, cross-platform Maven-based build automation tool with advanced features for testing, quality assurance, and deployment.
Created by: Ashish Kumar
npm install -g @nitp/build-tools
npm install --save-dev @nitp/build-tools
nitp-build --version
nitp-build doctor # Check system health
# Show all available commands
nitp-build --help
# Check system requirements
nitp-build doctor
# Show system information
nitp-build info
# Build the project
nitp-build build
# Run tests with coverage
nitp-build test
# Start development server
nitp-build start:admin --env=dev
Platform | Status | Notes |
---|---|---|
Windows | โ Full Support | Tested on Windows 10/11 |
macOS | โ Full Support | Tested on macOS 11+ |
Linux | โ Full Support | Tested on Ubuntu, CentOS, Debian |
# Full build with tests and quality checks
nitp-build build
# Quick build without tests (for development)
nitp-build build:fast
# Build with specific environment
nitp-build build --env=prod --verbose
# Run all tests with coverage
nitp-build test
# Run only unit tests
nitp-build test:unit
# Run only integration tests
nitp-build test:integration
# Test specific module
nitp-build test --module=admin
# Run all quality checks
nitp-build quality
# Format code using Spotless
nitp-build format
# Quality check with verbose output
nitp-build quality --verbose
# Start Admin API server
nitp-build start:admin
# Start TNP API server
nitp-build start:tnp
# Start with specific environment
nitp-build start:admin --env=test
# Start all services with Docker
nitp-build docker:up
# Show system information
nitp-build info
# Check system health
nitp-build doctor
# Show help
nitp-build --help
The build system uses a comprehensive configuration file (lib/nitp-build-v2.json
) that defines:
Module | Type | Description | Coverage Threshold |
---|---|---|---|
nitp-core | Library | Core shared functionality | 80% lines, 70% branches |
nitp-admin-api | Application | Administrative API | 75% lines, 65% branches |
nitp-tnp-api | Application | Training & Placement API | 75% lines, 65% branches |
dev
)spring.profiles.active=dev
-Xmx512m
nitp-build build --env=dev
test
)spring.profiles.active=test
-Xmx256m
nitp-build test --env=test
prod
)spring.profiles.active=prod
-Xmx1024m -XX:+UseG1GC
nitp-build build --env=prod
Coverage reports are automatically generated using JaCoCo:
target/site/jacoco/index.html
target/site/jacoco/jacoco.xml
target/site/jacoco/jacoco.csv
# Run tests to generate coverage
nitp-build test
# Open HTML report (Windows)
start target/site/jacoco/index.html
# Open HTML report (macOS)
open target/site/jacoco/index.html
# Open HTML report (Linux)
xdg-open target/site/jacoco/index.html
nitp-build format
# Check if npm global bin is in PATH
npm config get prefix
# Manually add to PATH (Linux/macOS)
export PATH="$(npm config get prefix)/bin:$PATH"
# Manually add to PATH (Windows)
set PATH=%PATH%;%APPDATA%\npm
# Fix npm permissions
sudo npm install -g @nitp/build-tools
# Or use npx
npx @nitp/build-tools build
# Check Java installation
java -version
# Check Maven installation
mvn -v
# Install Java (Ubuntu/Debian)
sudo apt update
sudo apt install openjdk-17-jdk
# Install Maven (Ubuntu/Debian)
sudo apt install maven
# Check system requirements
nitp-build doctor
# Run with verbose output
nitp-build build --verbose
# Clean and rebuild
mvn clean
nitp-build build
nitp-build doctor
to check system health--verbose
flag to any command for detailed logsWe welcome contributions to improve the NITP Build System!
# Clone the repository
git clone https://github.com/ashishkr375/adminportal_updated_new.git
# Navigate to build tools
cd adminportal_updated_new/backend/nitp-build-tools
# Install dependencies
npm install
# Link for local development
npm link
git checkout -b feature/amazing-feature
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License - see the LICENSE file for details.
Made with โค๏ธ by Ashish Kumar at NIT Patna
FAQs
Official build system for NIT Patna's backend services - A powerful Maven-based build automation tool with cross-platform support
The npm package nitp-build-tools receives a total of 1 weekly downloads. As such, nitp-build-tools popularity was classified as not popular.
We found that nitp-build-tools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.