Fix font & Travis

Grunt now copy fonts instead of symlink (node_modules won't exist for the end user)
This commit is contained in:
Jeremy Benoist 2016-10-04 10:10:36 +02:00
parent 9f3a1cd20c
commit ca8f9bdc15
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C
80 changed files with 130001 additions and 54 deletions

View File

@ -86,6 +86,7 @@ before_script:
install:
- if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 5.0; fi;
- if [[ $ASSETS = build ]]; then npm install -g npm@latest; fi;
- if [[ $ASSETS = build ]]; then npm install; fi;
before_install:
- if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
@ -96,4 +97,4 @@ script:
- if [[ $VALIDATE_TRANSLATION_FILE = '' || $ASSETS = '' ]]; then phpunit -v ; fi;
- if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
- if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
- if [[ $ASSETS = build ]]; then grunt; fi;
- if [[ $ASSETS = build ]]; then ./node_modules/grunt-cli/bin/grunt; fi;

View File

@ -123,27 +123,22 @@ module.exports = function (grunt) {
src: 'annotator.min.js',
dest: '<%= buildDir %>/themes/_global/js/',
},
},
symlink: {
baggyfonts: {
files: [
{
expand: true,
overwrite: true,
cwd: '<%= modulesDir %>/icomoon-free-npm/Font',
src: 'IcoMoon-Free.ttf',
dest: '<%= releaseDir %>/themes/baggy/fonts/',
},
{
expand: true,
overwrite: true,
cwd: '<%= modulesDir %>/ptsans-npm-webfont/fonts',
src: 'ptsansbold.woff',
dest: '<%= releaseDir %>/themes/baggy/fonts/',
},
{
expand: true,
overwrite: true,
cwd: '<%= modulesDir %>/material-design-icons-iconfont/dist/fonts/',
src: ['MaterialIcons-Regular.eot', 'MaterialIcons-Regular.woff2', 'MaterialIcons-Regular.woff', 'MaterialIcons-Regular.ttf'],
dest: '<%= releaseDir %>/themes/baggy/fonts/',
@ -175,6 +170,8 @@ module.exports = function (grunt) {
},
],
},
},
symlink: {
pics: {
files: [
{
@ -206,7 +203,7 @@ module.exports = function (grunt) {
grunt.registerTask(
'fonts',
'Install fonts',
['symlink:baggyfonts', 'symlink:materialfonts']
['copy:baggyfonts', 'copy:materialfonts']
);
grunt.registerTask(
@ -218,7 +215,7 @@ module.exports = function (grunt) {
grunt.registerTask(
'default',
'Build and install everything',
['clean', 'copy:pickerjs', 'concat', 'browserify', 'uglify', 'postcss', 'symlink']
['clean', 'copy:pickerjs', 'concat', 'browserify', 'uglify', 'postcss', 'copy', 'symlink']
);
grunt.registerTask(

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
../../../../../../node_modules/icomoon-free-npm/Font/IcoMoon-Free.ttf

View File

@ -1 +0,0 @@
../../../../../../node_modules/material-design-icons-iconfont/dist/fonts/MaterialIcons-Regular.eot

View File

@ -1 +0,0 @@
../../../../../../node_modules/material-design-icons-iconfont/dist/fonts/MaterialIcons-Regular.ttf

View File

@ -1 +0,0 @@
../../../../../../node_modules/material-design-icons-iconfont/dist/fonts/MaterialIcons-Regular.woff

View File

@ -1 +0,0 @@
../../../../../../node_modules/material-design-icons-iconfont/dist/fonts/MaterialIcons-Regular.woff2

View File

@ -1 +0,0 @@
../../../../../../node_modules/ptsans-npm-webfont/fonts/ptsansbold.woff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Black.eot

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Black.svg

Before

Width:  |  Height:  |  Size: 79 B

After

Width:  |  Height:  |  Size: 732 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 79 B

After

Width:  |  Height:  |  Size: 732 KiB

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Black.ttf

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Black.woff

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Black.woff2

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-BlackItalic.eot

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-BlackItalic.svg

Before

Width:  |  Height:  |  Size: 85 B

After

Width:  |  Height:  |  Size: 758 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 85 B

After

Width:  |  Height:  |  Size: 758 KiB

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-BlackItalic.ttf

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-BlackItalic.woff

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-BlackItalic.woff2

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Bold.eot

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Bold.svg

Before

Width:  |  Height:  |  Size: 78 B

After

Width:  |  Height:  |  Size: 738 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 78 B

After

Width:  |  Height:  |  Size: 738 KiB

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Bold.ttf

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Bold.woff

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Bold.woff2

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-BoldItalic.eot

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-BoldItalic.svg

Before

Width:  |  Height:  |  Size: 84 B

After

Width:  |  Height:  |  Size: 760 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 84 B

After

Width:  |  Height:  |  Size: 760 KiB

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-BoldItalic.ttf

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-BoldItalic.woff

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-BoldItalic.woff2

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Light.eot

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Light.svg

Before

Width:  |  Height:  |  Size: 79 B

After

Width:  |  Height:  |  Size: 726 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 79 B

After

Width:  |  Height:  |  Size: 726 KiB

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Light.ttf

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Light.woff

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Light.woff2

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-LightItalic.eot

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-LightItalic.svg

Before

Width:  |  Height:  |  Size: 85 B

After

Width:  |  Height:  |  Size: 750 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 85 B

After

Width:  |  Height:  |  Size: 750 KiB

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-LightItalic.ttf

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-LightItalic.woff

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-LightItalic.woff2

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Medium.eot

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Medium.svg

Before

Width:  |  Height:  |  Size: 80 B

After

Width:  |  Height:  |  Size: 736 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 80 B

After

Width:  |  Height:  |  Size: 736 KiB

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Medium.ttf

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Medium.woff

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Medium.woff2

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-MediumItalic.eot

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-MediumItalic.svg

Before

Width:  |  Height:  |  Size: 86 B

After

Width:  |  Height:  |  Size: 761 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 86 B

After

Width:  |  Height:  |  Size: 761 KiB

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-MediumItalic.ttf

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-MediumItalic.woff

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-MediumItalic.woff2

View File

@ -1 +0,0 @@
../../../../../../../node_modules/roboto-fontface/fonts/Roboto/Roboto-Regular.eot

Some files were not shown because too many files have changed in this diff Show More