Commit Graph

35 Commits

Author SHA1 Message Date
Alan Orth e97e5983a5
package.json: Bump dependencies to match Bootstrap's
See: https://github.com/twbs/bootstrap/blob/v4-dev/package.json
2017-04-26 00:02:37 +03:00
Alan Orth 0e5937b1b7
package.json: Match node-sass version with Bootstrap
From the package.json used by the Bootstrap project, see:

    https://github.com/twbs/bootstrap/blob/v4-dev/package.json
2017-02-15 14:51:31 +02:00
Alan Orth 753d7f4ad9
package.json: Update clean-css and build scripts
Bootstrap had previously been staying with clean-css < 4.0 because
it introduced some backwards incompatible changes[0], but now I see
that they have started using the new version.

I have also updated the npm build scripts to take into account the
name change to "clean-css-cli" as well as the latest minification
options that are being used by Bootstrap themselves[1].

[0] https://github.com/jakubpawlowicz/clean-css#important-40-breaking-changes
[1] https://github.com/twbs/bootstrap/blob/v4-dev/package.json
2017-02-15 12:38:03 +02:00
Alan Orth 683755f95d
Add tooling to generate SRI hashes for assets
Subresource integrity allows user agents to verify that a fetched
resource has been delivered without unexpected manipulation[0]. I
put theme assets in a json configuration file and save the hashes
to a TOML file that Hugo loads via its theme data mechanism[1].

[0] https://www.w3.org/TR/SRI/
[1] https://gohugo.io/extras/datafiles/
2017-01-11 10:32:43 +02:00
Alan Orth 9ef73ed070 package.json: Bump Bootstrap v4 to alpha 6 2017-01-09 16:54:20 +02:00
Alan Orth efe4f34651
package.json: Update cleancss invocation
The Bootstrap project uses --skip-advanced, so we should too. This
increases the size of style.css by ~4KiB but should be safer.

See: https://github.com/twbs/bootstrap/blob/v4-dev/package.json
2017-01-09 12:06:36 +02:00
Alan Orth a637d26d78
package.json: Update node-sass invocation
Since we're using cleancss there is no need to compress or optimize
anything in the node-sass step. Also, the Bootstrap project itself
is using the expanded output style as well so we should too.
2017-01-08 18:25:56 +02:00
Alan Orth 89cb2d2b49
package.json: Remove cssnano
Now using clean-css.
2017-01-08 17:59:01 +02:00
Alan Orth aedf9f16db
package.json: Use clean-css to minify
The Bootstrap project itself uses this, so I think we should just
use it as well. As an added bonus we actually even save 2KiB from
the size of the generated style.css.
2017-01-08 17:57:36 +02:00
Alan Orth 62f650a1eb
package.json: Peg Bootstrap v4 Alpha 5
Alpha v6 just came out and breaks everything, so let's just peg the
exact version we want for now.
2017-01-07 21:43:41 +02:00
Alan Orth d91a73137f
package.json: Update cookieconsent to 3.0.4 2017-01-04 13:13:52 +02:00
Alan Orth a546fc731e
package.json: Add run script for cookieconsent 2016-11-13 13:42:22 +02:00
Alan Orth 3c900b036b
package.json: Add cookieconsent dependency 2016-11-09 16:00:22 +02:00
Alan Orth 3c3db93917
package.json: Bump Font Awesome to latest version
See the version 4.7.0 pull request with a change log of sorts:

https://github.com/FortAwesome/Font-Awesome/pull/10012
2016-11-06 22:54:47 +02:00
Alan Orth 92f3ff829b
package.json: Bump Bootstrap to Alpha 5
See the release announcement here:

https://blog.getbootstrap.com/2016/10/19/bootstrap-4-alpha-5/
2016-10-19 20:22:45 -07:00
Alan Orth c0caf623d7
package.json: Use npm semver for dev deps
Don't break my shit (~ for bootstrap minor versions) but please
compile my shit faster (latest) for node-sass, and then upgrade
other stuff (^) if possible.
2016-09-28 12:38:32 +03:00
Alan Orth 05c962a797
package.json: Add clean task to remove temp style
Ignoring the temporary, intermediate style in .gitignore works for
this project, but the site still ends up with a copy of it in its
public folder. It's better to just clean up the temp file after
successful generation of the minified style.
2016-09-26 10:06:47 +03:00
Alan Orth 5ed4b51531
package.json: Add cssnano-cli to dev dependencies
Using cssnano on the command line actually requires this package,
not the `cssnano` one.
2016-09-26 10:01:37 +03:00
Alan Orth 1800fc2fb8
package.json: Add cssnano to dev dependencies
Processing style.css with cssnano saves 1KB. Guess it's useful.
2016-09-26 09:52:44 +03:00
Alan Orth b1db1f9637
Change theme name to "hugo-theme-bootstrap4-blog"
This reflects the target usage better, and pays homage to the fact
that it was based on the Bootstrap v4 Alpha blogging example:

http://v4-alpha.getbootstrap.com/examples/blog/
2016-09-19 10:27:28 +03:00
Alan Orth 65ac071b7e
package.json: Remove cleancss
It has problems parsing the output from node-sass when I add the
font-awesome SASS to my imports.
2016-09-18 13:54:07 +03:00
Alan Orth ba5595bfbd
package.json: node-sass to 3.10.0
Release notes: https://github.com/sass/node-sass/releases/tag/v3.10.0
2016-09-18 12:57:08 +03:00
Alan Orth ead16edf97
package.json: Don't use semver magic for package versions
I don't really get it, and I don't really care right now, so I'll
just pin the versions down.
2016-09-18 12:56:13 +03:00
Alan Orth b2bb749638
package.json: Bootstrap is actually a dev dependency
You actually only need it if you want to recompile the theme, as
the generated style is already stored in `static/css/style.css`.
2016-09-18 12:20:44 +03:00
Alan Orth 51cf7465b1
package.json: Add run script to copy font-awesome fonts 2016-09-15 16:31:11 +03:00
Alan Orth db577798e2
package.json: Add font-awesome to dev dependencies 2016-09-15 16:29:45 +03:00
Alan Orth 7b92a2889c
package.json: Only god knows why npm reformatted this 2016-09-13 18:07:35 +03:00
Alan Orth 1229ecbcc4
package.json: Update to latest node-sass 2016-09-13 18:07:19 +03:00
Alan Orth 162a7fa342
package.json: Update to Bootstrap v4.0.0-alpha.4 2016-09-13 17:54:43 +03:00
Alan Orth 3a08993bcb
package.json: Node version doesn't matter 2016-09-08 13:56:10 +03:00
Alan Orth a68bac5ebf
package.json: Fix trailing comma 2016-09-07 14:01:39 +03:00
Alan Orth 8b7d70e3c0
Remove js libraries
I'm not actually using anything that needs jQuery or Bootstrap's
JS yet.
2016-08-28 22:11:45 +03:00
Alan Orth 9d800f41c8
package.json: Add git repository 2016-08-28 20:54:53 +03:00
Alan Orth a22912a253
package.json: Node version 4→6
Not that it matters for this project.
2016-08-28 19:01:18 +03:00
Alan Orth 2bb1d6ecc0
First commit with initial theme
Some file are empty (created by `hugo new theme`), but I've left
them for reference later.
2016-08-28 16:22:32 +03:00