Giter Club home page Giter Club logo

grunt-license-crawler's Introduction

grunt-license-crawler

Grunt task for npm-license-crawler. Analyzes license information for multiple node.js modules (package.json files) as part of your software project.

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-license-crawler --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-license-crawler');

The "license-crawler" task

Overview

In your project's Gruntfile, add a section named license-crawler to the data object passed into grunt.initConfig().

grunt.initConfig({
  'license-crawler': {
    your_target: {
      // Target-specific file lists and/or options go here.
    },
  },
})

Options

options.start

Type: Array<String> Default value: [ . ]

Path to the directory the license search should start from. Multiple paths can be specified.

options.exclude

Type: Array<String> Default Value: undefined

Path to a directory to be excluded (and its subdirectories) from the search. Multiple paths can be specified.

options.unknown

Type: Boolean Default value: false

Only generate a list of licenses that can't be determined or have been guessed.

options.dependencies

Type: Boolean Default value: false

Only generate a list of third-party licenses, i.e., only list the dependencies defined in package.json.

options.json

Type: String Default Value: undefined

Export data as JSON to the given file path. Be cautious, the task will overwrite file if exists!

options.csv

Type: String Default Value: undefined

Export data as CSV to the given file path. Be cautious, the task will overwrite file if exists!

options.omitVersion

Type: Boolean Default value: false

Don't display versions in result (e.g. "[email protected]" becomes "npm-license-crawler")

options.onlyDirectDependencies

Type: Boolean Default value: false

Show only direct dependencies licenses, i.e., don't list dependencies of dependencies.

options.relativeLicensePath

Type: Boolean Default value: false

Output the relative file path for license files.

History

  • 20150414, V0.0.1
    • Initial Version
  • 20150819, V0.0.2
  • 20160108, V0.0.3
    • Revised README
    • Updated to [email protected]
    • Updated license info as part of package descriptor. Now using SPDX license tag.
  • 20160311, V0.0.4
  • 20160419, V0.0.5
    • Updated to [email protected] which includes bug fix for CSV files
    • Added travis-ci build descriptor
  • 20180220, V0.0.6
    • Updated to [email protected] which includes new options
    • Added documentation for new options

grunt-license-crawler's People

Contributors

greenkeeper[bot] avatar kienz avatar mwittig avatar

Stargazers

 avatar

Watchers

 avatar  avatar

grunt-license-crawler's Issues

An in-range update of grunt is breaking the build 🚨

Version 1.0.3 of grunt was just published.

Branch Build failing 🚨
Dependency grunt
Current Version 1.0.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

grunt is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 10 commits.

  • 9ba3a99 1.0.3
  • eee4c33 Changelog v1.0.3
  • 46da7f2 Merge pull request #1636 from gruntjs/upt
  • 00f4d8a Drop support for Node 0.10 and 0.12
  • e852727 util update
  • 56d702e Update deps
  • 0105524 Fix race condition with file.mkdir and make it operate more similarily to mkdir -p (#1627) r=@vladikoff
  • 303d445 https links (#1629)
  • d969132 Merge pull request #1624 from gruntjs/rm-bump-deps
  • 289ff91 Remove old bump task and deps

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.