Browse Source

inc version

pull/11/head
A1Gard 3 years ago
parent
commit
6c4577bd37
5 changed files with 40 additions and 28 deletions
  1. +30
    -23
      Gruntfile.js
  2. +7
    -2
      demo/index.html
  3. +1
    -1
      dist/x-tree-select.js
  4. +1
    -1
      dist/x-tree-select.min.js
  5. +1
    -1
      package.json

+ 30
- 23
Gruntfile.js View File

@ -1,7 +1,7 @@
module.exports = function( grunt ) {
grunt.initConfig( {
module.exports = function (grunt) {
grunt.initConfig({
// Import package manifest
pkg: grunt.file.readJSON( "package.json" ),
pkg: grunt.file.readJSON("package.json"),
// Banner definitions
meta: {
banner: "/*\n" +
@ -19,7 +19,7 @@ module.exports = function( grunt ) {
banner: "<%= meta.banner %>"
},
dist: {
src: [ "src/<%= pkg.name %>.js" ],
src: ["src/<%= pkg.name %>.js"],
dest: "dist/<%= pkg.name %>.js"
}
},
@ -27,14 +27,14 @@ module.exports = function( grunt ) {
concat_css: {
options: {},
all: {
src: [ "src/*.css" ],
src: ["src/*.css"],
dest: "dist/<%= pkg.name %>.css"
},
},
// Minify definitions
uglify: {
dist: {
src: [ "dist/<%= pkg.name %>.js" ],
src: ["dist/<%= pkg.name %>.js"],
dest: "dist/<%= pkg.name %>.min.js"
},
options: {
@ -44,13 +44,20 @@ module.exports = function( grunt ) {
// Minify css
cssmin: {
target: {
files: [ {
files: [{
expand: true,
cwd: 'src',
src: [ '*.css', '!*.min.css' ],
src: ['*.css', '!*.min.css'],
dest: 'dist',
ext: '.min.css'
} ]
},
{
expand: true,
cwd: 'src/themes',
src: ['*.css', '!*.min.css'],
dest: 'dist/themes',
ext: '.min.css'
}]
}
},
// CoffeeScript compilation
@ -66,22 +73,22 @@ module.exports = function( grunt ) {
// (call 'grunt watch')
watch: {
default: {
files: [ "src/*", "test/**/*" ],
tasks: [ "default" ],
files: ["src/*", "test/**/*"],
tasks: ["default"],
},
build: {
files: [ "src/*", "test/**/*" ],
tasks: [ "buildFull" ],
files: ["src/*", "test/**/*"],
tasks: ["buildFull"],
}
}
} );
grunt.loadNpmTasks( "grunt-contrib-concat" );
grunt.loadNpmTasks( "grunt-contrib-uglify" );
grunt.loadNpmTasks( "grunt-contrib-coffee" );
grunt.loadNpmTasks( "grunt-contrib-watch" );
grunt.loadNpmTasks( "grunt-contrib-cssmin" );
grunt.loadNpmTasks( 'grunt-concat-css' );
grunt.registerTask( "build", [ "concat", "uglify", "concat_css", "cssmin" ] );
grunt.registerTask( "default", [ "build" ] );
grunt.registerTask( "buildFull", [ "build" ] );
});
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-coffee");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-contrib-cssmin");
grunt.loadNpmTasks('grunt-concat-css');
grunt.registerTask("build", ["concat", "uglify", "concat_css", "cssmin"]);
grunt.registerTask("default", ["build"]);
grunt.registerTask("buildFull", ["build"]);
};

+ 7
- 2
demo/index.html View File

@ -342,12 +342,17 @@ $("#demo5").treeSelect({
</section>
<footer>
Copyright &copy; 2012 - <a href="http://4xmen.ir"> 4xmen team</a>
Copyright &copy; 2012 - <span id="y"> </span><a href="http://4xmen.ir"> 4xmen team</a>
</footer>
<!--for demo-->
<link rel="stylesheet" href="assets/prism.css">
<script>
$(function () {
var dt = new Date();
$("#y").text(dt.getFullYear());
});
</script>
</body>
</html>

+ 1
- 1
dist/x-tree-select.js View File

@ -1,5 +1,5 @@
/*
* x-tree-select - v1.3.5
* x-tree-select - v2.0.0
* Tree select for jquery.
*
*

+ 1
- 1
dist/x-tree-select.min.js View File

@ -1,5 +1,5 @@
/*
* x-tree-select - v1.3.5
* x-tree-select - v2.0.0
* Tree select for jquery.
*
*

+ 1
- 1
package.json View File

@ -40,5 +40,5 @@
"type": "git",
"url": "git+https://github.com/4xmen/x-tree-select.git"
},
"version": "1.3.5"
"version": "2.0.0"
}

Loading…
Cancel
Save