š Migration Guides #
This section helps you migrate between different versions of Admindek and provides guidance for major updates.
š What You'll Find Here #
Migration guides for different scenarios and version updates:
- From Gulp to Vite - Major build system migration (v2.x ā v3.0)
šÆ Migration Types #
Major Version Migrations #
v2.x ā v3.0 (Build System Change):
- Gulp ā Vite 8 migration
- New development workflow
- Updated file structure
- Enhanced build performance
Minor Version Updates #
v3.x.x (Feature Updates):
- New components and features
- Bootstrap updates
- Security patches
- Bug fixes
šØ Before You Start #
Pre-Migration Checklist #
- Backup your project - Complete copy of current version
- Document customizations - List all changes you've made
- Test current functionality - Ensure everything works before migration
- Check Node.js version - Verify compatibility requirements
- Review breaking changes - Understand what will change
- Plan downtime - Migration may require temporary offline time
Risk Assessment #
Low Risk Migrations:
- Patch updates (3.0.0 ā 3.0.1)
- Minor security updates
- Documentation-only changes
Medium Risk Migrations:
- Minor version updates (3.0.x ā 3.1.x)
- Bootstrap version updates
- New feature additions
High Risk Migrations:
- Major version updates (2.x ā 3.x)
- Build system changes
- Framework updates
- Breaking API changes
š Migration Process #
1. Preparation Phase #
Backup Everything:
# Create complete backup
cp -r admindek-vanillajs admindek-backup-$(date +%Y%m%d)
# Git backup (if using version control)
git branch migration-backup
git add -A
git commit -m "Pre-migration backup"Document Current State:
# Record current versions
npm list > current-packages.txt
node --version > system-info.txt
git log --oneline -10 > recent-changes.txt
# Document customizations
find . -name "*.custom.*" > custom-files.txt2. Migration Phase #
Follow Version-Specific Guide:
- Review the appropriate migration guide
- Follow steps in exact order
- Test after each major step
- Document any issues encountered
Common Migration Steps:
- Update package.json dependencies
- Run
npm installto update packages - Update configuration files
- Migrate custom code if needed
- Update templates and includes
- Test thoroughly
3. Validation Phase #
Functionality Testing:
# Build and test
npm run build
npm run preview
# Check key functionality:
# ā All pages load without errors
# ā Navigation works correctly
# ā Charts and widgets render
# ā Forms function properly
# ā Mobile responsive behavior
# ā Dark/light mode switchingPerformance Verification:
# Check bundle sizes
npm run build
du -sh dist/
# Compare with previous version
# Ensure performance hasn't degradedš§ Common Migration Scenarios #
Customization Preservation #
CSS Customizations:
// Before migration - save your custom styles
// _custom-overrides.scss
.my-custom-component {
background: #custom-color;
padding: 2rem;
}
// After migration - verify they still work
// May need to update selectors or variablesJavaScript Customizations:
// Document custom JS modifications
// custom-dashboard.js
function myCustomFunction() {
// Custom functionality
}
// After migration - test custom code
// Update API calls if neededConfiguration Updates #
Theme Configuration:
// v2.x configuration (Gulp-based)
const gulp_config = {
preset: 'theme-1',
dark_mode: false
}
// v3.x configuration (Vite-based)
const vite_config = {
preset_theme: 'preset-1', // Updated naming
dark_layout: 'false' // String values
}File Structure Changes #
v2.x Structure:
src/
āāā scss/
āāā js/
āāā html/
āāā images/
gulp/
āāā tasks/
āāā config.js
gulpfile.jsv3.x Structure:
src/
āāā assets/
ā āāā scss/
ā āāā js/
ā āāā images/
ā āāā fonts/
āāā html/
āāā main.js
āāā style.js
plugins/
āāā vite-plugin-file-include.js
āāā vite-plugin-copy-assets.js
vite.config.jsā ļø Common Issues #
Breaking Changes #
Build System Changes:
- Commands changed (
gulpānpm run build) - Configuration format updated
- File paths may be different
- Plugin architecture changed
CSS/SCSS Changes:
- Variable names updated
- Import paths changed
- Compilation process different
- Source map handling updated
JavaScript Changes:
- Module system updated (CommonJS ā ES modules)
- Import/export syntax changes
- Build output format changed
Compatibility Issues #
Node.js Version Requirements:
# Check current Node.js version
node --version
# v3.x requires Node.js 16+
# v2.x supported Node.js 12+
# Update if necessary
nvm install 18
nvm use 18Dependency Conflicts:
# Clear dependency cache
rm -rf node_modules package-lock.json
# Fresh install
npm install
# If conflicts persist
npm audit fixCustom Code Migration #
Template Include Syntax:
<!-- v2.x (Gulp file-include) -->
@@include('layouts/header.html', {
"title": "Dashboard"
})
<!-- v3.x (Vite plugin) - Same syntax! -->
@@include('layouts/header.html', {
"title": "Dashboard"
})SCSS Import Updates:
// v2.x imports
@import '../node_modules/bootstrap/scss/bootstrap';
@import 'custom-variables';
// v3.x imports (may need path updates)
@import 'bootstrap/scss/bootstrap';
@import 'settings/custom-variables';š Migration Support #
Getting Help #
Before Contacting Support:
- Follow the migration guide completely
- Check the troubleshooting section
- Search for similar issues
- Prepare detailed error information
What to Include in Support Requests:
- Current version and target version
- Complete error messages
- System information (Node.js, OS)
- Steps you've already tried
- Custom modifications you've made
Support Channels:
- Email: contact@dashboardpack.com
- Documentation: Migration-specific guides
- Response Time: 24-48 hours for migration issues
Professional Migration Services #
For complex customizations or enterprise deployments:
- Custom migration planning
- Code review and updates
- Testing and validation
- Training for new workflows
- Ongoing support
Contact contact@dashboardpack.com for migration services.
ā Post-Migration Checklist #
Immediate Verification #
- Build succeeds without errors
- All pages load correctly
- Navigation functions as expected
- Charts and widgets render properly
- Forms submit successfully
- Mobile responsive behavior intact
- Dark/light mode switching works
- Custom code functions correctly
Extended Testing #
- Performance testing - Check load times
- Cross-browser testing - Test in multiple browsers
- Accessibility testing - Ensure no regression
- User acceptance testing - Validate with actual users
- Load testing - Verify performance under load
Cleanup Tasks #
- Remove old files - Clean up deprecated files
- Update documentation - Reflect new version
- Update deployment - Modify CI/CD if needed
- Team training - Update development workflows
- Monitor metrics - Watch for issues post-deployment
š Migration Benefits #
v3.0 Migration Benefits #
Performance Improvements:
- ā” 5x faster development builds
- š¦ Smaller production bundles
- š Instant hot module replacement
- š Faster production builds
Developer Experience:
- š§ Modern tooling and workflow
- š Better error messages and debugging
- š Simplified configuration
- š Rich plugin ecosystem
Future-Proofing:
- š Modern web standards support
- š Active development and updates
- šļø Maintainable architecture
- š± Better mobile development experience
š® Future Migrations #
Staying Up to Date #
Regular Update Schedule:
- Patch updates: Monthly (security, bugs)
- Minor updates: Quarterly (features, improvements)
- Major updates: Annually (significant changes)
Best Practices:
- Test updates in staging environment
- Keep customizations minimal and documented
- Use semantic versioning for your projects
- Monitor changelogs and release notes
- Plan migration windows during low-traffic periods
š Ready to Migrate? #
Choose the appropriate migration guide:
- From Gulp to Vite - v2.x ā v3.0 migration
Remember: Always backup before migrating and test thoroughly in a staging environment before deploying to production.