chore: format
This commit is contained in:
@@ -4,60 +4,55 @@
|
||||
// gem install scss-lint
|
||||
|
||||
module.exports = function (grunt) {
|
||||
'use strict';
|
||||
// Project configuration
|
||||
grunt.initConfig({
|
||||
// Metadata
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
|
||||
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
|
||||
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
|
||||
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
|
||||
' Licensed <%= props.license %> */\n',
|
||||
"use strict";
|
||||
// Project configuration
|
||||
grunt.initConfig({
|
||||
// Metadata
|
||||
pkg: grunt.file.readJSON("package.json"),
|
||||
banner:
|
||||
"/*! <%= pkg.name %> - v<%= pkg.version %> - " +
|
||||
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
|
||||
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
|
||||
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
|
||||
" Licensed <%= props.license %> */\n",
|
||||
|
||||
webfont: {
|
||||
icons: {
|
||||
src: [
|
||||
'icons/sbed/*.svg',
|
||||
'icons/lorc/*.svg'
|
||||
],
|
||||
dest: 'fonts',
|
||||
options: {
|
||||
styles: 'font,icon,extra',
|
||||
fontFilename: 'game-icons',
|
||||
types: ['eot', 'woff2', 'woff', 'ttf', 'svg'],
|
||||
syntax: 'bootstrap',
|
||||
destCss: 'css',
|
||||
destScss: 'scss',
|
||||
templateOptions: {
|
||||
baseClass: 'gi',
|
||||
classPrefix: 'gi-'
|
||||
},
|
||||
fontFamilyName: 'GameIcons',
|
||||
font: 'game-icons',
|
||||
stylesheets: ['css', 'scss'],
|
||||
fontPathVariables: true,
|
||||
htmlDemo: false,
|
||||
}
|
||||
}
|
||||
},
|
||||
// CSS Min
|
||||
// =======
|
||||
cssmin: {
|
||||
target: {
|
||||
files: {
|
||||
'css/game-icons.min.css': 'css/game-icons.css'
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
webfont: {
|
||||
icons: {
|
||||
src: ["icons/sbed/*.svg", "icons/lorc/*.svg"],
|
||||
dest: "fonts",
|
||||
options: {
|
||||
styles: "font,icon,extra",
|
||||
fontFilename: "game-icons",
|
||||
types: ["eot", "woff2", "woff", "ttf", "svg"],
|
||||
syntax: "bootstrap",
|
||||
destCss: "css",
|
||||
destScss: "scss",
|
||||
templateOptions: {
|
||||
baseClass: "gi",
|
||||
classPrefix: "gi-",
|
||||
},
|
||||
fontFamilyName: "GameIcons",
|
||||
font: "game-icons",
|
||||
stylesheets: ["css", "scss"],
|
||||
fontPathVariables: true,
|
||||
htmlDemo: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
// CSS Min
|
||||
// =======
|
||||
cssmin: {
|
||||
target: {
|
||||
files: {
|
||||
"css/game-icons.min.css": "css/game-icons.css",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
// These plugins provide necessary tasks
|
||||
grunt.loadNpmTasks('grunt-webfont');
|
||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||
// These plugins provide necessary tasks
|
||||
grunt.loadNpmTasks("grunt-webfont");
|
||||
grunt.loadNpmTasks("grunt-contrib-cssmin");
|
||||
|
||||
grunt.registerTask('default', [
|
||||
'webfont',
|
||||
'cssmin'
|
||||
]);
|
||||
grunt.registerTask("default", ["webfont", "cssmin"]);
|
||||
};
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
{
|
||||
"name": "game-icons",
|
||||
"style": "css/game-icons.css",
|
||||
"sass": "scss/game-icons.scss",
|
||||
"version": "0.1.1",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/nagoshiashumari/game-icons.git"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt": "^1.6.1",
|
||||
"grunt-contrib-cssmin": "^5.0.0",
|
||||
"grunt-webfont": "^1.7.2"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "grunt",
|
||||
"test": "grunt scsslint"
|
||||
},
|
||||
"dependencies": {
|
||||
"grunt-cli": "^1.5.0"
|
||||
}
|
||||
"name": "game-icons",
|
||||
"style": "css/game-icons.css",
|
||||
"sass": "scss/game-icons.scss",
|
||||
"version": "0.1.1",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/nagoshiashumari/game-icons.git"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt": "^1.6.1",
|
||||
"grunt-contrib-cssmin": "^5.0.0",
|
||||
"grunt-webfont": "^1.7.2"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "grunt",
|
||||
"test": "grunt scsslint"
|
||||
},
|
||||
"dependencies": {
|
||||
"grunt-cli": "^1.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user