Skip to content

Commit

Permalink
Include the LICENSE file in the dist directory
Browse files Browse the repository at this point in the history
* Rename `LICENSE.md` to `LICENSE.txt` so that more text editors
  know how to open it.

* Make the build step copy the `LICENSE.txt` file in the `dist/`
  directory so that it gets included in the distribution package.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Ref https://www.youtube.com/watch?v=hWDSToC9EV8&t=15m15s
    #1655

Fix #1655
Close #1680
  • Loading branch information
alrra committed Mar 11, 2015
1 parent 2431333 commit 5734227
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
### HEAD

* Include the `LICENSE.txt` file in the `dist/` directory
([#1655](https://github.com/h5bp/html5-boilerplate/issues/1655)).
* Remove the `visibility: hidden` declaration from `.hidden`
([#1663](https://github.com/h5bp/html5-boilerplate/issues/1663)).
* Use `<meta http-equiv="x-ua-compatible" content="ie=edge">`<br>
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,8 @@ want to write about your project.

Anyone and everyone is welcome to [contribute](CONTRIBUTING.md). Hundreds of
developers have helped make the HTML5 Boilerplate what it is today.


## License

The code is available under the [MIT license](LICENSE.txt).
19 changes: 19 additions & 0 deletions dist/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) HTML5 Boilerplate

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ gulp.task('copy', [
'copy:.htaccess',
'copy:index.html',
'copy:jquery',
'copy:license',
'copy:main.css',
'copy:misc',
'copy:normalize'
Expand All @@ -89,6 +90,11 @@ gulp.task('copy:jquery', function () {
.pipe(gulp.dest(dirs.dist + '/js/vendor'));
});

gulp.task('copy:license', function () {
return gulp.src('LICENSE.txt')
.pipe(gulp.dest(dirs.dist));
});

gulp.task('copy:main.css', function () {

var banner = '/*! HTML5 Boilerplate v' + pkg.version +
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"homepage": "https://html5boilerplate.com/",
"license": {
"type": "MIT",
"url": "https://github.com/h5bp/html5-boilerplate/blob/master/LICENSE.md"

This comment has been minimized.

This comment has been minimized.

Copy link
@roblarsen

roblarsen Jun 3, 2023

Member

The project license is not the license that a downstream user may want. I have 1000% used H5BP to start a non-MIT, fully private project.

"url": "https://github.com/h5bp/html5-boilerplate/blob/master/LICENSE.txt"
},
"name": "html5-boilerplate",
"private": true,
Expand Down
1 change: 1 addition & 0 deletions test/file_existence.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ var expectedFilesInDistDir = [
'js/vendor/jquery-' + pkg.devDependencies.jquery + '.min.js',
'js/vendor/modernizr-2.8.3.min.js',

'LICENSE.txt',
'robots.txt',
'tile-wide.png',
'tile.png'
Expand Down

0 comments on commit 5734227

Please sign in to comment.