mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 20:00:38 +01:00
29
Gruntfile.js
Normal file
29
Gruntfile.js
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
module.exports = function(grunt) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
grunt.loadNpmTasks('grunt-lintspaces');
|
||||||
|
|
||||||
|
var config = {};
|
||||||
|
|
||||||
|
config.lintspaces = {
|
||||||
|
all: {
|
||||||
|
src: [
|
||||||
|
'Gruntfile.js',
|
||||||
|
'makefile',
|
||||||
|
'bullet-train.zsh-theme',
|
||||||
|
'README.md'
|
||||||
|
],
|
||||||
|
options: {
|
||||||
|
newline: true,
|
||||||
|
newlineMaximum: 2,
|
||||||
|
trailingspaces: true,
|
||||||
|
indentation: 'spaces',
|
||||||
|
spaces: 2
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
grunt.initConfig(config);
|
||||||
|
|
||||||
|
grunt.registerTask("test", "lintspaces:all");
|
||||||
|
};
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
"description": "A Powerline-like theme for oh-my-zsh",
|
"description": "A Powerline-like theme for oh-my-zsh",
|
||||||
"main": "bullet-train.zsh-theme",
|
"main": "bullet-train.zsh-theme",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm test"
|
"test": "grunt test"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -15,5 +15,10 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/caiogondim/bullet-train-oh-my-zsh-theme/issues"
|
"url": "https://github.com/caiogondim/bullet-train-oh-my-zsh-theme/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/caiogondim/bullet-train-oh-my-zsh-theme"
|
"homepage": "https://github.com/caiogondim/bullet-train-oh-my-zsh-theme",
|
||||||
|
"devDependencies": {
|
||||||
|
"grunt": "^0.4.5",
|
||||||
|
"grunt-cli": "^0.1.13",
|
||||||
|
"grunt-lintspaces": "^0.6.0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user