mirror of
https://github.com/h5bp/html5-boilerplate.git
synced 2026-01-09 22:58:12 -05:00
Include the LICENSE file in the dist directory
* 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 h5bp/html5-boilerplate#1655 Fix h5bp/html5-boilerplate#1655 Close h5bp/html5-boilerplate#1680
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
### HEAD
|
### 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`
|
* Remove the `visibility: hidden` declaration from `.hidden`
|
||||||
([#1663](https://github.com/h5bp/html5-boilerplate/issues/1663)).
|
([#1663](https://github.com/h5bp/html5-boilerplate/issues/1663)).
|
||||||
* Use `<meta http-equiv="x-ua-compatible" content="ie=edge">`<br>
|
* Use `<meta http-equiv="x-ua-compatible" content="ie=edge">`<br>
|
||||||
|
|||||||
@@ -64,3 +64,8 @@ want to write about your project.
|
|||||||
|
|
||||||
Anyone and everyone is welcome to [contribute](CONTRIBUTING.md). Hundreds of
|
Anyone and everyone is welcome to [contribute](CONTRIBUTING.md). Hundreds of
|
||||||
developers have helped make the HTML5 Boilerplate what it is today.
|
developers have helped make the HTML5 Boilerplate what it is today.
|
||||||
|
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
The code is available under the [MIT license](LICENSE.txt).
|
||||||
|
|||||||
19
dist/LICENSE.txt
vendored
Normal file
19
dist/LICENSE.txt
vendored
Normal file
@@ -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.
|
||||||
@@ -66,6 +66,7 @@ gulp.task('copy', [
|
|||||||
'copy:.htaccess',
|
'copy:.htaccess',
|
||||||
'copy:index.html',
|
'copy:index.html',
|
||||||
'copy:jquery',
|
'copy:jquery',
|
||||||
|
'copy:license',
|
||||||
'copy:main.css',
|
'copy:main.css',
|
||||||
'copy:misc',
|
'copy:misc',
|
||||||
'copy:normalize'
|
'copy:normalize'
|
||||||
@@ -89,6 +90,11 @@ gulp.task('copy:jquery', function () {
|
|||||||
.pipe(gulp.dest(dirs.dist + '/js/vendor'));
|
.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 () {
|
gulp.task('copy:main.css', function () {
|
||||||
|
|
||||||
var banner = '/*! HTML5 Boilerplate v' + pkg.version +
|
var banner = '/*! HTML5 Boilerplate v' + pkg.version +
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
"homepage": "https://html5boilerplate.com/",
|
"homepage": "https://html5boilerplate.com/",
|
||||||
"license": {
|
"license": {
|
||||||
"type": "MIT",
|
"type": "MIT",
|
||||||
"url": "https://github.com/h5bp/html5-boilerplate/blob/master/LICENSE.md"
|
"url": "https://github.com/h5bp/html5-boilerplate/blob/master/LICENSE.txt"
|
||||||
},
|
},
|
||||||
"name": "html5-boilerplate",
|
"name": "html5-boilerplate",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ var expectedFilesInDistDir = [
|
|||||||
'js/vendor/jquery-' + pkg.devDependencies.jquery + '.min.js',
|
'js/vendor/jquery-' + pkg.devDependencies.jquery + '.min.js',
|
||||||
'js/vendor/modernizr-2.8.3.min.js',
|
'js/vendor/modernizr-2.8.3.min.js',
|
||||||
|
|
||||||
|
'LICENSE.txt',
|
||||||
'robots.txt',
|
'robots.txt',
|
||||||
'tile-wide.png',
|
'tile-wide.png',
|
||||||
'tile.png'
|
'tile.png'
|
||||||
|
|||||||
Reference in New Issue
Block a user