1 Star 0 Fork 3

Wenstor/jslint.vim

forked from 宿叶露/jslint.vim 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Rakefile 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
Jesse Hallett 提交于 2010-09-26 00:00 . Version 0.7
# written by travis jeffery <travisjeffery@gmail.com>
# contributions by scrooloose <github:scrooloose>
require 'rake'
require 'find'
require 'pathname'
PLUGIN = [
"ftplugin/javascript/jslint.vim",
"ftplugin/javascript/jslint/jslint-core.js",
"ftplugin/javascript/jslint/runjslint.js",
"ftplugin/javascript/jslint/runjslint.wsf",
]
files = PLUGIN
desc 'Zip up the project files'
task :zip do
zip_name = File.basename(File.dirname(__FILE__))
zip_name.gsub!(/ /, '_')
zip_name = "#{zip_name}.zip"
if File.exist?(zip_name)
abort("Zip file #{zip_name} already exists. Remove it first.")
end
puts "Creating zip file: #{zip_name}"
system("zip #{zip_name} #{files.join(" ")}")
end
desc 'Install plugin and documentation'
task :install do
vimfiles = if ENV['VIMFILES']
ENV['VIMFILES']
elsif RUBY_PLATFORM =~ /(win|w)32$/
File.expand_path("~/vimfiles")
else
File.expand_path("~/.vim")
end
files.each do |file|
target = File.join(vimfiles, file)
target_dir = File.dirname(target)
FileUtils.mkdir_p target_dir
FileUtils.cp file, target
puts "Installed #{file} to #{target_dir}/"
end
end
desc 'Pulls from origin'
task :pull do
puts "Updating local repo..."
system("cd " << Dir.new(File.dirname(__FILE__)).path << " && git pull")
end
desc 'Calls pull task and then install task'
task :update => ['pull', 'install'] do
puts "Update of vim script complete."
end
task :default => ['update']
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Wenstor/jslint.vim.git
git@gitee.com:Wenstor/jslint.vim.git
Wenstor
jslint.vim
jslint.vim
master

搜索帮助