1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-11 17:51:02 +00:00

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: install:
- if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 5.0; fi; - 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 -g npm@latest; fi;
- if [[ $ASSETS = build ]]; then npm install; fi;
before_install: before_install:
- if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; - 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 [[ $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 [[ $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 [[ $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', src: 'annotator.min.js',
dest: '<%= buildDir %>/themes/_global/js/', dest: '<%= buildDir %>/themes/_global/js/',
}, },
},
symlink: {
baggyfonts: { baggyfonts: {
files: [ files: [
{ {
expand: true, expand: true,
overwrite: true,
cwd: '<%= modulesDir %>/icomoon-free-npm/Font', cwd: '<%= modulesDir %>/icomoon-free-npm/Font',
src: 'IcoMoon-Free.ttf', src: 'IcoMoon-Free.ttf',
dest: '<%= releaseDir %>/themes/baggy/fonts/', dest: '<%= releaseDir %>/themes/baggy/fonts/',
}, },
{ {
expand: true, expand: true,
overwrite: true,
cwd: '<%= modulesDir %>/ptsans-npm-webfont/fonts', cwd: '<%= modulesDir %>/ptsans-npm-webfont/fonts',
src: 'ptsansbold.woff', src: 'ptsansbold.woff',
dest: '<%= releaseDir %>/themes/baggy/fonts/', dest: '<%= releaseDir %>/themes/baggy/fonts/',
}, },
{ {
expand: true, expand: true,
overwrite: true,
cwd: '<%= modulesDir %>/material-design-icons-iconfont/dist/fonts/', cwd: '<%= modulesDir %>/material-design-icons-iconfont/dist/fonts/',
src: ['MaterialIcons-Regular.eot', 'MaterialIcons-Regular.woff2', 'MaterialIcons-Regular.woff', 'MaterialIcons-Regular.ttf'], src: ['MaterialIcons-Regular.eot', 'MaterialIcons-Regular.woff2', 'MaterialIcons-Regular.woff', 'MaterialIcons-Regular.ttf'],
dest: '<%= releaseDir %>/themes/baggy/fonts/', dest: '<%= releaseDir %>/themes/baggy/fonts/',
@ -175,6 +170,8 @@ module.exports = function (grunt) {
}, },
], ],
}, },
},
symlink: {
pics: { pics: {
files: [ files: [
{ {
@ -206,7 +203,7 @@ module.exports = function (grunt) {
grunt.registerTask( grunt.registerTask(
'fonts', 'fonts',
'Install fonts', 'Install fonts',
['symlink:baggyfonts', 'symlink:materialfonts'] ['copy:baggyfonts', 'copy:materialfonts']
); );
grunt.registerTask( grunt.registerTask(
@ -218,7 +215,7 @@ module.exports = function (grunt) {
grunt.registerTask( grunt.registerTask(
'default', 'default',
'Build and install everything', 'Build and install everything',
['clean', 'copy:pickerjs', 'concat', 'browserify', 'uglify', 'postcss', 'symlink'] ['clean', 'copy:pickerjs', 'concat', 'browserify', 'uglify', 'postcss', 'copy', 'symlink']
); );
grunt.registerTask( 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

Before After
Before After

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 79 B

After

Width:  |  Height:  |  Size: 732 KiB

Before After
Before After

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

Before After
Before After

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 85 B

After

Width:  |  Height:  |  Size: 758 KiB

Before After
Before After

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

Before After
Before After

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 78 B

After

Width:  |  Height:  |  Size: 738 KiB

Before After
Before After

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

Before After
Before After

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 84 B

After

Width:  |  Height:  |  Size: 760 KiB

Before After
Before After

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

Before After
Before After

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 79 B

After

Width:  |  Height:  |  Size: 726 KiB

Before After
Before After

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

Before After
Before After

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 85 B

After

Width:  |  Height:  |  Size: 750 KiB

Before After
Before After

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

Before After
Before After

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 80 B

After

Width:  |  Height:  |  Size: 736 KiB

Before After
Before After

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

Before After
Before After

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 86 B

After

Width:  |  Height:  |  Size: 761 KiB

Before After
Before After

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