Skip to content

Commit

Permalink
Fix version for bower package
Browse files Browse the repository at this point in the history
  • Loading branch information
reza babakhani committed Jan 5, 2015
1 parent 9786446 commit cb0a998
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 1,750 deletions.
83 changes: 45 additions & 38 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,54 @@
*/

var sources = [
'src/banner.js',
'src/constants.js',
'src/helpers.js',
'src/algorithms.js',
'src/duration.js',
'src/date.js',
'src/compat.js'
'src/banner.js',
'src/constants.js',
'src/helpers.js',
'src/algorithms.js',
'src/duration.js',
'src/date.js',
'src/compat.js'
];

module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
stripBanners: true,
banner: '/* <%= pkg.name %> - v<%= pkg.version %> */ ( function () {\n',
footer: '}());'
},
dist: {
src: sources,
dest: 'dist/<%= pkg.version %>/<%= pkg.name %>-<%= pkg.version %>.js'
}
},
uglify: {
build: {
src: 'dist/<%= pkg.version %>/<%= pkg.name %>-<%= pkg.version %>.js',
dest: 'dist/<%= pkg.version %>/<%= pkg.name %>-<%= pkg.version %>.min.js'
}
},
jsdoc: {
dist: {
src: sources,
options: {
destination: 'doc/<%= pkg.version %>'
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
stripBanners: true,
banner: '/* <%= pkg.name %> - v<%= pkg.version %> */ ( function () {\n',
footer: '}());'
},
dist: {
src: sources,
dest: 'dist/<%= pkg.version %>/<%= pkg.name %>-<%= pkg.version %>.js'
}
},
uglify: {
build: {
src: 'dist/<%= pkg.version %>/<%= pkg.name %>-<%= pkg.version %>.js',
dest: 'dist/<%= pkg.version %>/<%= pkg.name %>-<%= pkg.version %>.min.js'
}
},
jsdoc: {
dist: {
src: sources,
options: {
destination: 'doc/<%= pkg.version %>'
}
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-jsdoc');


if (grunt.option("doc") === true) {
grunt.registerTask('default', ['concat', 'uglify', 'jsdoc']);
} else {
grunt.registerTask('default', ['concat', 'uglify']);
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-jsdoc');
grunt.registerTask('default', ['concat', 'uglify', 'jsdoc']);

};
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* persian-date - v0.1.8b */ ( function () {
/* persian-date - v0.1.8 */ ( function () {
/**
* Persian Date
* Written under the GPL version 2.0
* @author Reza Babakhani
* @version 0.1.8a
* @version 0.1.8
*
*
* +---------+-----------+
Expand Down
1 change: 1 addition & 0 deletions dist/0.1.8/persian-date-0.1.8.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cb0a998

Please sign in to comment.