Browse Source

Gruntfile.js: use the existent variables everywhere.

pull/498/head
XhmikosR 11 years ago
parent
commit
3e3e18d790
  1. 26
      Gruntfile.js

26
Gruntfile.js

@ -39,7 +39,7 @@ module.exports = function(grunt) {
' */\n', ' */\n',
clean: { clean: {
dist: ['dist', 'docs/dist'] dist: ['<%= meta.distPath %>', '<%= meta.docsPath %>']
}, },
concat: { concat: {
@ -85,14 +85,14 @@ module.exports = function(grunt) {
}, },
dist: { dist: {
files: { files: {
'dist/css/<%= pkg.name %>.css': 'dist/css/<%= pkg.name %>.css', '<%= meta.distPath %>/css/<%= pkg.name %>.css': '<%= meta.distPath %>/css/<%= pkg.name %>.css',
'dist/css/<%= pkg.name %>-theme-android.css': 'dist/css/<%= pkg.name %>-theme-android.css', '<%= meta.distPath %>/css/<%= pkg.name %>-theme-android.css': '<%= meta.distPath %>/css/<%= pkg.name %>-theme-android.css',
'dist/css/<%= pkg.name %>-theme-ios.css': 'dist/css/<%= pkg.name %>-theme-ios.css' '<%= meta.distPath %>/css/<%= pkg.name %>-theme-ios.css': '<%= meta.distPath %>/css/<%= pkg.name %>-theme-ios.css'
} }
}, },
docs: { docs: {
files: { files: {
'docs/assets/css/docs.css': 'docs/assets/css/docs.css' '<%= meta.docsAssetsPath %>/css/docs.css': '<%= meta.docsAssetsPath %>/css/docs.css'
} }
} }
}, },
@ -101,15 +101,15 @@ module.exports = function(grunt) {
fonts: { fonts: {
expand: true, expand: true,
src: 'fonts/*', src: 'fonts/*',
dest: 'dist/' dest: '<%= meta.distPath %>/'
}, },
docs: { docs: {
expand: true, expand: true,
cwd: 'dist', cwd: '<%= meta.distPath %>',
src: [ src: [
'**/*' '**/*'
], ],
dest: 'docs/dist' dest: '<%= meta.docsPath %>'
} }
}, },
@ -184,7 +184,7 @@ module.exports = function(grunt) {
src: 'js/*.js' src: 'js/*.js'
}, },
docs: { docs: {
src: ['docs/assets/js/docs.js', 'docs/assets/js/fingerblast.js'] src: ['<%= meta.docsAssetsPath %>/js/docs.js', '<%= meta.docsAssetsPath %>/js/fingerblast.js']
} }
}, },
@ -208,15 +208,15 @@ module.exports = function(grunt) {
csslintrc: 'sass/.csslintrc' csslintrc: 'sass/.csslintrc'
}, },
src: [ src: [
'dist/css/<%= pkg.name %>.css', '<%= meta.distPath %>/css/<%= pkg.name %>.css',
'dist/css/<%= pkg.name %>-theme-android.css', '<%= meta.distPath %>/css/<%= pkg.name %>-theme-android.css',
'dist/css/<%= pkg.name %>-theme-ios.css' '<%= meta.distPath %>/css/<%= pkg.name %>-theme-ios.css'
], ],
docs: { docs: {
options: { options: {
ids: false ids: false
}, },
src: ['docs/assets/css/docs.css'] src: ['<%= meta.docsAssetsPath %>/css/docs.css']
} }
}, },

Loading…
Cancel
Save