Skip to content

Commit

Permalink
upgrade from Bower to NPM for all web dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rse committed Dec 20, 2017
1 parent 334173a commit 77a641a
Show file tree
Hide file tree
Showing 135 changed files with 189 additions and 171 deletions.
30 changes: 10 additions & 20 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,48 +26,38 @@
module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.loadNpmTasks("grunt-bower-install-simple");

grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
"bower-install-simple": {
"main": {
options: {
color: true,
production: true,
directory: "bower_components"
}
}
},
copy: {
"normalize": {
src: [ "bower_components/normalize.css/normalize.css" ],
src: [ "node_modules/normalize.css/normalize.css" ],
dest: "lib/normalize/normalize.css"
},
"director": {
src: [ "bower_components/director/build/director.min.js" ],
src: [ "node_modules/director/build/director.min.js" ],
dest: "lib/director/director.js"
},
"jquery": {
src: [ "bower_components/jquery/dist/jquery.min.js" ],
src: [ "node_modules/jquery/dist/jquery.min.js" ],
dest: "lib/jquery/jquery.js"
},
"mousetrap": {
src: [ "bower_components/mousetrap/mousetrap.min.js" ],
src: [ "node_modules/mousetrap/mousetrap.min.js" ],
dest: "lib/mousetrap/mousetrap.js"
},
"typopro": {
files: [
{ expand: true, flatten: false, cwd: "bower_components/typopro-web/web",
{ expand: true, flatten: false, cwd: "node_modules/typopro-web/web",
src: "TypoPRO-OpenSans/**", dest: "lib/typopro/" },
{ expand: true, flatten: false, cwd: "bower_components/typopro-web/web",
{ expand: true, flatten: false, cwd: "node_modules/typopro-web/web",
src: "TypoPRO-DejaVu/**", dest: "lib/typopro/" },
{ expand: true, flatten: false, cwd: "bower_components/typopro-web/web",
{ expand: true, flatten: false, cwd: "node_modules/typopro-web/web",
src: "TypoPRO-Journal/**", dest: "lib/typopro/" }
]
},
"font-awesome-css": {
src: [ "bower_components/fontawesome/css/font-awesome.css" ],
src: [ "node_modules/font-awesome/css/font-awesome.css" ],
dest: "lib/fontawesome/fontawesome.css",
options: {
process: function (content, srcpath) {
Expand All @@ -77,7 +67,7 @@ module.exports = function (grunt) {
},
"font-awesome-fonts": {
files: [{
expand: true, flatten: false, cwd: "bower_components/fontawesome/fonts",
expand: true, flatten: false, cwd: "node_modules/font-awesome/fonts",
src: "fontawesome-webfont.*", dest: "lib/fontawesome/",
rename: function (src, dest) {
return src + dest.replace(/fontawesome-webfont/, "fontawesome");
Expand All @@ -91,6 +81,6 @@ module.exports = function (grunt) {
}
});

grunt.registerTask("default", [ "bower-install-simple", "copy" ]);
grunt.registerTask("default", [ "copy" ]);
};

22 changes: 11 additions & 11 deletions lib/mousetrap/mousetrap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 23 additions & 3 deletions lib/normalize/normalize.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! normalize.css v6.0.0 | MIT License | github.com/necolas/normalize.css */
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */

/* Document
========================================================================== */
Expand All @@ -18,6 +18,14 @@ html {
/* Sections
========================================================================== */

/**
* Remove the margin in all browsers (opinionated).
*/

body {
margin: 0;
}

/**
* Add the correct display in IE 9-.
*/
Expand Down Expand Up @@ -225,15 +233,19 @@ svg:not(:root) {
========================================================================== */

/**
* Remove the margin in Firefox and Safari.
* 1. Change the font styles in all browsers (opinionated).
* 2. Remove the margin in Firefox and Safari.
*/

button,
input,
optgroup,
select,
textarea {
margin: 0;
font-family: sans-serif; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}

/**
Expand Down Expand Up @@ -292,6 +304,14 @@ button:-moz-focusring,
outline: 1px dotted ButtonText;
}

/**
* Correct the padding in Firefox.
*/

fieldset {
padding: 0.35em 0.75em 0.625em;
}

/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
Expand Down
1 change: 1 addition & 0 deletions lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVu.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Name: DejaVu
Homepage: http://dejavu-fonts.org/
Download: http://dejavu-fonts.org/wiki/Download
Download: https://github.com/dejavu-fonts/dejavu-fonts
Version: 2.37 (2016-07)
License: Bitstream Vera Fonts Copyright, Arev Fonts Copyright, Public Domain
Publisher: DejaVu Project
Expand Down
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-Bold.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-Bold.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-Bold.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-BoldOblique.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-BoldOblique.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-BoldOblique.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-ExtraLight.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-ExtraLight.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-ExtraLight.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-Oblique.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-Oblique.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-Oblique.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-Regular.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-Regular.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSans-Regular.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansCondensed-Bold.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansCondensed-Bold.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansCondensed-Bold.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansCondensed-Oblique.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansCondensed-Oblique.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansCondensed-Oblique.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansCondensed-Regular.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansCondensed-Regular.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansCondensed-Regular.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansMono-Bold.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansMono-Bold.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansMono-Bold.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansMono-BoldOblique.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansMono-BoldOblique.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansMono-BoldOblique.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansMono-Oblique.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansMono-Oblique.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansMono-Oblique.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansMono-Regular.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansMono-Regular.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSansMono-Regular.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerif-Bold.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerif-Bold.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerif-Bold.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerif-BoldItalic.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerif-BoldItalic.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerif-BoldItalic.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerif-Italic.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerif-Italic.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerif-Italic.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerif-Regular.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerif-Regular.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerif-Regular.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerifCondensed-Bold.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerifCondensed-Bold.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerifCondensed-Bold.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerifCondensed-Italic.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerifCondensed-Regular.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-DejaVu/TypoPRO-DejaVuSerifCondensed-Regular.ttf
Binary file not shown.
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-Journal/TypoPRO-Journal-Regular.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-Journal/TypoPRO-Journal-Regular.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-Journal/TypoPRO-Journal-Regular.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-Bold.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-Bold.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-Bold.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-BoldItalic.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-BoldItalic.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-BoldItalic.woff
Binary file not shown.
15 changes: 0 additions & 15 deletions lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-CondBold.css

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 0 additions & 15 deletions lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-CondLight.css

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 0 additions & 15 deletions lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-CondLightItalic.css

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

/* TypoPRO Open Sans Extrabold */
/* TypoPRO Open Sans ExtraBold */
@font-face {
font-family: 'TypoPRO Open Sans';
src: url('TypoPRO-OpenSans-ExtraBold.eot');
Expand Down
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-ExtraBold.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-ExtraBold.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-ExtraBold.woff
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

/* TypoPRO Open Sans Extrabold Italic */
/* TypoPRO Open Sans ExtraBold Italic */
@font-face {
font-family: 'TypoPRO Open Sans';
src: url('TypoPRO-OpenSans-ExtraBoldItalic.eot');
Expand Down
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-ExtraBoldItalic.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-ExtraBoldItalic.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-ExtraBoldItalic.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-Italic.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-Italic.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-Italic.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-Light.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-Light.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-Light.woff
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-LightItalic.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-LightItalic.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-LightItalic.woff
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-Regular.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

/* TypoPRO Open Sans */
/* TypoPRO Open Sans Regular */
@font-face {
font-family: 'TypoPRO Open Sans';
src: url('TypoPRO-OpenSans-Regular.eot');
Expand Down
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-Regular.eot
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-Regular.ttf
Binary file not shown.
Binary file modified lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-Regular.woff
Binary file not shown.
15 changes: 15 additions & 0 deletions lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-SemiBold.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

/* TypoPRO Open Sans SemiBold */
@font-face {
font-family: 'TypoPRO Open Sans';
src: url('TypoPRO-OpenSans-SemiBold.eot');
src: local('*'),
url('TypoPRO-OpenSans-SemiBold.eot?#iefix') format('embedded-opentype'),
url('TypoPRO-OpenSans-SemiBold.woff') format('woff'),
url('TypoPRO-OpenSans-SemiBold.ttf') format('truetype');
font-style: normal;
font-weight: 600;
font-stretch: normal;
font-variant: normal;
}

Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 15 additions & 0 deletions lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-SemiBoldItalic.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

/* TypoPRO Open Sans SemiBold Italic */
@font-face {
font-family: 'TypoPRO Open Sans';
src: url('TypoPRO-OpenSans-SemiBoldItalic.eot');
src: local('*'),
url('TypoPRO-OpenSans-SemiBoldItalic.eot?#iefix') format('embedded-opentype'),
url('TypoPRO-OpenSans-SemiBoldItalic.woff') format('woff'),
url('TypoPRO-OpenSans-SemiBoldItalic.ttf') format('truetype');
font-style: italic;
font-weight: 600;
font-stretch: normal;
font-variant: normal;
}

Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 0 additions & 15 deletions lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-Semibold.css

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 0 additions & 15 deletions lib/typopro/TypoPRO-OpenSans/TypoPRO-OpenSans-SemiboldItalic.css

This file was deleted.

Binary file not shown.
Loading

0 comments on commit 77a641a

Please sign in to comment.