1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-16 18:01:38 +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

@ -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(