forked from layui/layer
-
Notifications
You must be signed in to change notification settings - Fork 0
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
sentsin
committed
Mar 17, 2016
1 parent
7a149d4
commit bdc560b
Showing
14 changed files
with
1,146 additions
and
1,129 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
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 |
---|---|---|
@@ -1,63 +1,63 @@ | ||
module.exports = function(grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
|
||
//压缩js - layer | ||
uglify: { | ||
options: { | ||
expand: true | ||
}, | ||
'layer.js': { | ||
options: { | ||
banner: '/*! layer-v<%= pkg.version %> <%= pkg.description %> License LGPL <%= pkg.homepage %> By <%= pkg.author %> */\n;' | ||
}, | ||
src: './src/layer.js', | ||
dest: './layer.js' | ||
}, | ||
'layer.ext.js': { | ||
options: { | ||
banner: '/*! layer<%= pkg.description %>拓展类 */\n;' | ||
}, | ||
src: './src/extend/layer.ext.js', | ||
dest: './extend/layer.ext.js' | ||
}, | ||
'layer.mobile.js': { | ||
options: { | ||
banner: '/*! layer mobile-v<%= pkg.mobile %> <%= pkg.description %>移动版 License LGPL <%= pkg.homepage %>mobile By <%= pkg.author %> */\n;' | ||
}, | ||
src: './src/mobile/layer.js', | ||
dest: './mobile/layer.js' | ||
} | ||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
|
||
//压缩js - layer | ||
uglify: { | ||
options: { | ||
expand: true | ||
}, | ||
'layer.js': { | ||
options: { | ||
banner: '/*! layer-v<%= pkg.version %> <%= pkg.description %> License LGPL <%= pkg.homepage %> By <%= pkg.author %> */\n;' | ||
}, | ||
src: './src/layer.js', | ||
dest: './layer.js' | ||
}, | ||
'layer.ext.js': { | ||
options: { | ||
banner: '/*! layer<%= pkg.description %>拓展类 */\n;' | ||
}, | ||
src: './src/extend/layer.ext.js', | ||
dest: './extend/layer.ext.js' | ||
}, | ||
'layer.mobile.js': { | ||
options: { | ||
banner: '/*! layer mobile-v<%= pkg.mobile %> <%= pkg.description %>移动版 License LGPL <%= pkg.homepage %>mobile By <%= pkg.author %> */\n;' | ||
}, | ||
src: './src/mobile/layer.js', | ||
dest: './mobile/layer.js' | ||
} | ||
}, | ||
|
||
//压缩css | ||
cssmin: { | ||
options : { | ||
compatibility : 'ie8', //设置兼容模式 | ||
noAdvanced : true //取消高级特性 | ||
} | ||
,layer: { | ||
files: [{ | ||
expand: true, | ||
cwd: './src/skin', | ||
src: ['*.css', '!*.min.css'], | ||
dest: './skin' | ||
}, { | ||
expand: true, | ||
cwd: './src/mobile/need', | ||
src: ['*.css', '!*.min.css'], | ||
dest: './mobile/need' | ||
}] | ||
} | ||
} | ||
}); | ||
//压缩css | ||
cssmin: { | ||
options : { | ||
compatibility : 'ie8', //设置兼容模式 | ||
noAdvanced : true //取消高级特性 | ||
} | ||
,layer: { | ||
files: [{ | ||
expand: true, | ||
cwd: './src/skin', | ||
src: ['*.css', '!*.min.css'], | ||
dest: './skin' | ||
}, { | ||
expand: true, | ||
cwd: './src/mobile/need', | ||
src: ['*.css', '!*.min.css'], | ||
dest: './mobile/need' | ||
}] | ||
} | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-cssmin'); | ||
grunt.registerTask('default', ['uglify', 'cssmin']); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-cssmin'); | ||
|
||
grunt.registerTask('default', ['uglify', 'cssmin']); | ||
|
||
|
||
}; |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "layer", | ||
"main": "src/layer.js", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"homepage": "https://github.com/sentsin/layer", | ||
"authors": [ | ||
"sentsin <[email protected]>" | ||
|
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.