mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 11:50: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
makefile
4
makefile
@@ -1,7 +1,7 @@
|
||||
# Installs a copy of the theme on the folder `~/.oh-my-zsh/themes/`
|
||||
install:
|
||||
cp ./bullet-train.zsh-theme ~/.oh-my-zsh/themes/bullet-train.zsh-theme
|
||||
cp ./bullet-train.zsh-theme ~/.oh-my-zsh/themes/bullet-train.zsh-theme
|
||||
|
||||
# Symlinks the theme for easier development
|
||||
link:
|
||||
ln -sF `pwd`/bullet-train.zsh-theme ~/.oh-my-zsh/themes/
|
||||
ln -sF `pwd`/bullet-train.zsh-theme ~/.oh-my-zsh/themes/
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"description": "A Powerline-like theme for oh-my-zsh",
|
||||
"main": "bullet-train.zsh-theme",
|
||||
"scripts": {
|
||||
"test": "npm test"
|
||||
"test": "grunt test"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -15,5 +15,10 @@
|
||||
"bugs": {
|
||||
"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