mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	
		
			
				
	
	
	
		
			1.6 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.6 KiB
		
	
	
	
	
	
	
	
Submitting Issues
If you are submitting a bug, please create a jsfiddle demonstrating the issue.
Contributing code
To contribute, fork the library and install grunt and dependencies. You need node; use nvm or nenv to install it.
git clone https://github.com/moment/moment.git
cd moment
npm install -g grunt-cli
npm install
git checkout develop  # all patches against develop branch, please!
grunt                 # this runs tests and jshint
Very important notes
- Pull pull requests to the 
masterbranch will be closed. Please submit all pull requests to thedevelopbranch. - Locale translations will not be merged without unit tests. See the British English unit tests for an example.
 - Do not include the minified files in your pull request. Don't worry, we'll build them when we cut a release.
 
Grunt tasks
We use Grunt for managing the build. Here are some useful Grunt tasks:
gruntThe default task lints the code and runs the tests. You should make sure you do this before submitting a PR.grunt nodeunit:allJust run the tests.grunt releaseBuild everything, including minified filesgrunt release --embedLocales=fr,ruBuild everything, and also createmoment-with-customLocales.jsandmoment-with-customLocales.min.jscontaining just French and Russian.grunt sizePrint size statistics.