문제

Is there a project that automatically adds licenses headers to web projects (Javascript, HTML, CSS, other files) ? For example, a simple Grunt task with a configuration like:

licenses: {
  options: {
    type: "MIT"
  },
  default: {
    src: [ "**/*.{js,html,css}" ]
  }
}

The task would add a license header if the file doesn't have one or replace it otherwise.

If such a project doesn't exist, I will consider creating a Grunt task (or Gulp).

도움이 되었습니까?

해결책

Yeah, you can use gulp-license. https://github.com/terinjokes/gulp-license

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top