61 Commits

Author SHA1 Message Date
Rob Larsen
72a8f610c8 Fixing tests on Windows + Windows test action (#3110)
* Updates for gulp 5

* .DS_Store ignored from copy operations
2024-04-09 22:53:17 -04:00
Rob Larsen
8fc00713b6 fixing test 2023-09-11 16:25:15 +00:00
Rob Larsen
b86d1ae39f removing tile images (#3023) 2023-09-10 08:59:03 +09:00
Christian Oliff
29d7d8054b Add Prettier (#3011)
Consistent code formatting!
(it fixed a few minor bugs too)
2023-09-07 16:20:47 -04:00
Rob Larsen
17f1e1b3cd cleaning up the PR and fixing tests 2023-09-06 10:23:04 -04:00
Rob Larsen
22d800ad31 Removing Modernizr from the project 2023-09-06 10:23:04 -04:00
Rob Larsen
5df316b86b Drop Normalize (#2960)
* npm updates

* tests and readme

* node versions
2023-08-30 21:34:43 -04:00
Rob Larsen
2154114f92 Webpack build for dist (#2812)
Co-authored-by: Christian Oliff <christianoliff@pm.me>
2023-03-22 15:00:56 -04:00
Rob Larsen
21a06810e0 updating glob manually 2023-03-03 15:54:00 +00:00
Rob Larsen
62e7373888 working tests 2022-08-05 01:20:08 +00:00
Rob Larsen
a523fb6c2e esm all the things 2022-08-04 20:31:22 +00:00
Christian Oliff
8953f3bfae Remove browserconfig.xml from the project
Fixes: #2773
2022-06-08 00:58:37 +09:00
Christian Oliff
a1d3ea3505 Remove apache-server-configs / .htaccess 2022-06-04 11:45:00 +09:00
Rob Larsen
e87f11bff8 Moving docs out of src and dist (#2655)
* Moving docs out of src and dist

* Changing links to doc
2021-12-02 16:08:26 -05:00
Rob Larsen
4d9af8c364 Proposal: Let's Replace Parcel With Webpack (#2641)
* Proposal: Let's Replace Parcel With Webpack

Closes #2487 and #2474

This is just a development server at this point. It hot reloads HTML JS and CSS.  That's enough for me. I'm open to contrary opinions.

* Updates based on @coliff review

* wip

* fix merge conflict

* removing comment

* Final tweaks to docs
2021-11-29 21:17:55 -05:00
Christian Oliff
8bcdd253de Add SVG favicon
Fixes: #2554
2021-10-27 10:32:43 +09:00
Christian Oliff
be09d98531 Remove humans.txt
simplify and shorten docs about humans.txt and move it to extend docs which covers other stuff not included in the project by default.
Updates tests so they pass without the humans.txt file being included.
2021-08-17 19:48:55 +09:00
Rob Larsen
379789fb77 Remove plugins js (#2346)
* removes plugins.js
2020-09-30 09:12:51 -04:00
Rob Larsen
8f0adb5ded Renames main.js to app.js (#2341)
* Renames main.js to app.js

closes #2340
2020-09-29 22:20:40 -04:00
Damian Szczypka
7e67f887d3 Rename main.css to style.css in build process (#2342)
* Change CSS output file name to style.css

* Fix test against CSS file

* Update documentation after output file rename

* Bump 'package.json' after running build

* Documents change in 'CHANGELOG.md'
2020-09-28 08:35:29 -04:00
Vlad Tansky
6862fd310d feat(build): parcel (#2227) (#2229)
* feat(build): parcel

* feat(parcel): gulp & tests

* build(parcel): exclude package-lock

* build(parcel): add private field to prevent accident npm publish
2020-05-08 09:40:28 -04:00
Rob Larsen
1d2b155cc5 Removing jQuery (#2225)
* Removing jQuery

Closes #2215

(I'll write up a super great commit message when I merge this in)

Additionally, this commit updates Modernizr (I was in the gulpfile and was reminded that they just released)
2020-05-04 15:24:23 -04:00
Rob Larsen
a37fcc3dec Removes out of date comments (#2077)
Fixes #2052
2018-10-09 16:18:17 -04:00
Rob Larsen
e1e7277024 copies main.css from main.css project (#2066)
This code updates the package.json, build and tests to pull main.css from the main.css npm package.
2018-10-09 11:31:27 -04:00
Waren Gonzaga
24c8fb2059 Update dev deps (#2058)
* Update dev deps

* Update package.json

update eslint again

* Update file_existence.js
2018-08-08 22:52:41 -04:00
Rob Larsen
f121b53023 Features/eslint (#2037)
Fixes #1913

* Drops node 4

* update node engine to >=6 (#2035)

* syncs changes to spacing across different editorconfigs

* adds eslint with minimally invasive configuration- basically moving from 4 to 2 spaces.
2018-04-06 17:31:27 -04:00
Rob Larsen
bc2710e047 Adds web app manifest file (#1963)
closes #1629
2017-07-11 14:54:22 -04:00
Rob Larsen
2ad7077517 Adds Modernizr 3 (#1940)
Fixes #1740 and #1605

- removes the static custom build of modernizr
- moves Modernizr to the bottom
- builds a custom modernizr in gulp
- adds tests for the generated modernizr
2017-05-28 08:54:44 -04:00
Marco Biedermann
2ea87deb35 use es2015 syntax in mocha tests (#1788)
use import instead of require
use fat arrow => function instead of function() {} callback
use and let and const instead of var
use template stings instead of string concatenation
2016-12-25 12:07:10 -05:00
t1st3
58a2ba81d2 Delete crossdomain.xml (#1881)
from #1779

* removes crossdomain.xml
* remove occurences to crossdomain.xml in doc and test
2016-08-15 16:06:54 -04:00
XhmikosR
b840bebeaf Fix license banner in main.css after #1814. (#1888) 2016-08-13 20:18:35 -04:00
Rob Larsen
340b012a1f Fetch jQuery from jQuery's CDN instead of Google's
In countries where `googleapis.com` is blocked (e.g.: China),
HTML5 Boilerplate is broken out of the box as jQuery will not load
until the request times out.

This commit changes the default jQuery source to use the jQuery CDN
as it is as fast or faster (by some reckoning) than the Google Hosted
Libraries version and is available worldwide.

While the chance of hitting the cache lottery is smaller with the
jQuery CDN (it's not as ubiquitous as Google), that chance is not enough
to override the need to ship working code for everyone in the world.

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

Fix h5bp/html5-boilerplate#1737
Close h5bp/html5-boilerplate#1739
2016-01-09 02:05:18 +02:00
Cătălin Mariș
57342272e6 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
2015-03-11 08:17:57 +02:00
Cătălin Mariș
3c2aac8001 Split tests based on what they check 2014-10-28 13:35:42 +02:00
Cătălin Mariș
345925f043 Rename Apple touch icon & add <link> in index.html
Until now we recommended to our users to include an image named
`apple-touch-icon-precomposed.png` in the root of their website.

Since the iOS 8 release however, Safari will no longer request¹
the `/apple-touch-icon-precomposed.png` by default, and instead,
it will make the following requests¹:

    /apple-touch-icon-152x152-precomposed.png
    /apple-touch-icon-152x152.png
    /apple-touch-icon.png

In order to fix this issue we decided¹ to rename
`apple-touch-icon-precomposed.png` to `apple-touch-icon.png`,
and include a `<link>` element in the `index.html`:

    <link rel="apple-touch-icon" href="apple-touch-icon.png">

Notes:

  * Just renaming `apple-touch-icon-precomposed.png` to
    `apple-touch-icon.png` would have also worked², even with
    older version of iOS. Unfortunately, it wouldn't have
    represented a good solution as Apple may change again what
    is requested by default, plus, it would have generated quite
    a few 404s³.

  * We decided to rename the touch icon because most iOS users⁴
    are on iOS 7+, so the `precomposed` keyword no longer brings
    much benefit (as of iOS 7, no special effects are applied to
    touch icons).

  * Adding `<link rel="apple-touch-icon" ...>` in `index.html`
    will also allow⁵ (some of) the default Android 2.2+ browsers
    to use the touch icon.

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

¹ h5bp/html5-boilerplate#1615

² https://mathiasbynens.be/notes/touch-icons
  https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html

³ https://code.google.com/p/chromium/issues/detail?id=259681
  h5bp/html5-boilerplate#1615

⁴ According to Apple (as measured by the App Store on October 13, 2014):

    * 5%  iOS < 7
    * 47% iOS 7
    * 48% iOS 8

  From: https://developer.apple.com/support/appstore/
        https://cloud.githubusercontent.com/assets/1223565/4720999/2aa8ba26-5935-11e4-9492-92ff6a50ad7d.pnghttp://www.ravelrumba.com/blog/android-apple-touch-icon/

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

Close h5bp/html5-boilerplate#1622
2014-10-22 00:02:26 +03:00
Cătălin Mariș
f3a94f5f6e Separate jQuery URL test into two different tests 2014-10-14 22:18:59 +03:00
XhmikosR
2b69bde024 Make consistency changes in test/tests.js 2014-10-13 11:26:11 +03:00
Thomas Krug
287f12229e Update to Modernizr 2.8.3
Close h5bp/html5-boilerplate#1580.
2014-08-15 09:14:23 +03:00
Cătălin Mariș
9318c6321a Change project architecture
* Move all the H5BP source files into the `src/` directory and remove
  all external components that can be fetch via `npm`, namely: the
  Apache Server Configs, jQuery, and Normalize.css.

* Add `package.json`, and move to using `npm` for managing dependencies
  (for more information about `npm`, see: https://www.npmjs.org/doc/).

* Add `gulp` based build script to allows us to automatically create
  the distribution files as well as an archive that can then be attached
  to the release - https://github.com/blog/1547-release-your-software
  (for more information about gulp, see: http://gulpjs.com/).

* Add other miscellaneous files to help us in our development process:

   * `.editorconfig` - to define and maintain consistent coding styles
                       http://editorconfig.org/

   * `.jshintrc`     - to specify JSHint configuration options
                       http://www.jshint.com/docs/

   * `.travis.yml`   - to specify Travis CI configuration options
                       http://docs.travis-ci.com/

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

These changes:

  * automate some of the tedious work (e.g.: updating the external
    components, updating some of the inline content such as version
    numbers, etc.)

  * will allow us to experiment more (e.g.: allow us to create different
    builds of H5BP, builds that can contain different components)

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

Ref h5bp/html5-boilerplate#1563
Close h5bp/html5-boilerplate#1563
2014-08-04 19:02:30 +03:00
Nicolas Gallagher
0a80ebafd0 Remove test folder.
Over 80% of people polled are not using the qunit testing
provided. Remove it in favour of people using their unit testing
framework of choice.

Ref #808
2011-10-23 20:05:31 +01:00
Paul Irish
f1e9bb3f94 QUnit updated to 1.2.0pre - which is master, which is 1 day past the 1.1.0 release. :) 2011-10-11 16:19:51 -07:00
Rigel Glen
b23de068c5 Added jQuery 1.6.4 2011-09-17 13:03:30 +05:30
Martin Balfanz
fa785e0ef0 global code cleanup
includes: - tab removal from html/css
          - fixing indention
          - removing unnecessary whitespaces
2011-08-13 16:19:01 +02:00
Mathias Bynens
1c9145c9a7 Correct Modernizr reference in the test file. Fixes #662. Thanks @jaimie-van-santen! 2011-08-09 15:46:33 +03:00
Jonathan Fielding
c80cc610e2 jQuery updated to 1.6.2 2011-07-06 12:15:11 +01:00
Dayle Rees
7227e7fb27 Updated to Modernizr 2.0 Complete, Production minified. 2011-06-02 09:28:54 +01:00
necolas
59b993abe9 Update to jQuery 1.6.1 2011-05-13 15:04:11 +01:00
necolas
ef83a0481e Update qunit test page to reference jQuery 1.6 2011-05-07 11:27:31 +01:00
walker
24b0f14ca0 Added in jquery 1.5.2 2011-04-15 00:55:44 +08:00
David Murdoch
d7d467e69e Replace single-quotes with double-quotes for consistency and to save a few extra bytes during GZIP/DEFLATE compression 2011-03-16 05:50:07 +08:00