-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7a691d0
Showing
2,492 changed files
with
452,457 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// 包装函数 | ||
module.exports = function(grunt) { | ||
// 任务配置,所有插件的配置信息 | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
// uglify插件的配置信息 | ||
uglify: { | ||
options: { | ||
// banner: '/*! http://JSLite.io - ' + '<%= grunt.template.today("yyyy-mm-dd") %> */' | ||
// beautify: true, | ||
// mangle: false, //不混淆变量名 | ||
// compress:true,//打开或关闭使用默认选项源压缩。 | ||
}, | ||
app_task: { | ||
files: { | ||
// 'build/JSLite.min.js': ['src/ie.js', 'src/JSLite.js'] | ||
} | ||
} | ||
}, | ||
stylus:{ | ||
build: { | ||
options: { | ||
linenos: false, | ||
compress: false, | ||
banner: '\/** \n * <%= pkg.name %> - <%= pkg.description %>\n * version <%= pkg.version %> \n * author <%= pkg.author %> \n**/\n' | ||
//<%= grunt.template.today() %>时间 | ||
}, | ||
files: [{ | ||
'outdatedbrowser.css': 'outdatedbrowser.styl' | ||
}] | ||
} | ||
}, | ||
// watch插件的配置信息 | ||
watch: { | ||
another: { | ||
files: ['outdatedbrowser.css','outdatedbrowser.styl'], | ||
tasks: ['stylus'], | ||
options: { | ||
// Start another live reload server on port 1337 | ||
livereload: 1337 | ||
} | ||
} | ||
} | ||
}); | ||
// 告诉grunt我们将使用插件 | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-stylus'); | ||
// 告诉grunt当我们在终端中输入grunt时需要做些什么 | ||
grunt.registerTask('default', ['watch']); | ||
|
||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | ||
<title>过时的浏览器</title> | ||
<script type="text/javascript" src="outdatedbrowser.js"></script> | ||
<link rel="stylesheet" type="text/css" href="outdatedbrowser.css"> | ||
</head> | ||
<body> | ||
<div class="outdatedbrowser"> | ||
<h1>请更新浏览器</h1> | ||
<span class="split"></span> | ||
<a class="browser chrome" href="#"> | ||
<h2><i class="icon"></i>CHROME</h2> | ||
<span class="btn">下载</span> | ||
<h4>在以下操作系统可用 </h4> | ||
<p><span class="windows">Windows</span><span class="windows">Mac OS</span><span class="windows">Linux</span></p> | ||
</a><a class="browser firefox" href="#"> | ||
<h2><i class="icon"></i>Firefox</h2> | ||
<span class="btn">下载</span> | ||
<h4>在以下操作系统可用 </h4> | ||
<p><span class="windows">Windows</span><span class="windows">Mac OS</span><span class="windows">Linux</span></p> | ||
</a><a class="browser internetExplorer" href="#"> | ||
<h2><i class="icon"></i>INTERNET EXPLORER</h2> | ||
<span class="btn">下载</span> | ||
<h4>在以下操作系统可用 </h4> | ||
<p><span class="windows">Windows</span><span class="windows">Mac OS</span><span class="windows">Linux</span></p> | ||
</a><a class="browser safari" href="#"> | ||
<h2><i class="icon"></i>SAFARI</h2> | ||
<span class="btn">下载</span> | ||
<h4>在以下操作系统可用 </h4> | ||
<p><span class="windows">Windows</span><span class="windows">Mac OS</span><span class="windows">Linux</span></p> | ||
</a><a class="browser opera" href="#"> | ||
<h2><i class="icon"></i>OPERA</h2> | ||
<span class="btn">下载</span> | ||
<h4>在以下操作系统可用 </h4> | ||
<p><span class="windows">Windows</span><span class="windows">Mac OS</span><span class="windows">Linux</span></p> | ||
</a> | ||
</div> | ||
<script type="text/javascript"> | ||
// window.outdatedbrowser() | ||
</script> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.