mirror of
				https://github.com/tobspr/shapez.io.git
				synced 2025-06-13 13:04:03 +00:00 
			
		
		
		
	
		
			
	
	
		
			19 lines
		
	
	
		
			528 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			19 lines
		
	
	
		
			528 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|  | const path = require("path"); | ||
|  | const fs = require("fs"); | ||
|  | const fse = require("fs-extra"); | ||
|  | 
 | ||
|  | const configTemplatePath = path.join(__dirname, "../src/js/core/config.local.template.js"); | ||
|  | const configPath = path.join(__dirname, "../src/js/core/config.local.js"); | ||
|  | 
 | ||
|  | function gulptasksLocalConfig($, gulp) { | ||
|  |     gulp.task("localConfig.findOrCreate", cb => { | ||
|  |         if (!fs.existsSync(configPath)) { | ||
|  |             fse.copySync(configTemplatePath, configPath); | ||
|  |         } | ||
|  | 
 | ||
|  |         cb(); | ||
|  |     }); | ||
|  | } | ||
|  | 
 | ||
|  | module.exports = { gulptasksLocalConfig }; |