mirror of
				https://github.com/Foundry376/Mailspring.git
				synced 2025-11-04 11:29:15 +08:00 
			
		
		
		
	Summary: Fixes: T1334 remove final InboxApp references move out all underscore-plus methods Mass find and replace of underscore-plus sed -i '' -- 's/underscore-plus/underscore/g' **/*.coffee sed -i '' -- 's/underscore-plus/underscore/g' **/*.cjsx Test Plan: edgehill --test Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D1534
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			847 B
		
	
	
	
		
			CoffeeScript
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			847 B
		
	
	
	
		
			CoffeeScript
		
	
	
	
	
	
module.exports = (grunt) ->
 | 
						|
  grunt.registerTask 'check-licenses', 'Report the licenses of all dependencies', ->
 | 
						|
    legalEagle = require 'legal-eagle'
 | 
						|
    {size, keys} = require 'underscore'
 | 
						|
    done = @async()
 | 
						|
 | 
						|
    options =
 | 
						|
      path: process.cwd()
 | 
						|
      omitPermissive: true
 | 
						|
      overrides: require './license-overrides'
 | 
						|
 | 
						|
    legalEagle options, (err, summary) ->
 | 
						|
      if err?
 | 
						|
        console.error(err)
 | 
						|
        process.exit 1
 | 
						|
 | 
						|
      for key of summary
 | 
						|
        delete summary[key] if key.match /^atom@/
 | 
						|
 | 
						|
      if size(summary)
 | 
						|
        console.error "Found dependencies without permissive licenses:"
 | 
						|
        for name in keys(summary).sort()
 | 
						|
          console.error "#{name}"
 | 
						|
          console.error "  License: #{summary[name].license}"
 | 
						|
          console.error "  Repository: #{summary[name].repository}"
 | 
						|
        process.exit 1
 | 
						|
      done()
 |