Skip to content

Commit

Permalink
chore(build): add version no to file names
Browse files Browse the repository at this point in the history
  • Loading branch information
pkozlowski-opensource committed Jan 4, 2013
1 parent 69f4c59 commit 2105dde
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions grunt.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = function(grunt) {
grunt.initConfig({
modules: '', //to be filled in by find-modules task
tplModules: '', //to be filled in by find-templates task
pkg:'<json:package.json>',
meta: {
modules: 'angular.module("ui.bootstrap", [<%= modules %>]);',
tplmodules: 'angular.module("ui.bootstrap.tpls", [<%= tplModules %>]);',
Expand All @@ -22,21 +23,21 @@ module.exports = function(grunt) {
concat: {
dist: {
src: ['<banner:meta.modules>', 'src/*/*.js'],
dest: 'dist/ui-bootstrap.js'
dest: 'dist/ui-bootstrap-<%= pkg.version %>.js'
},
dist_tpls: {
src: ['<banner:meta.all>', 'src/*/*.js', '<banner:meta.tplmodules>', 'template/**/*.html.js'],
dest: 'dist/ui-bootstrap-tpls.js'
dest: 'dist/ui-bootstrap-tpls-<%= pkg.version %>.js'
}
},
min: {
dist:{
src:['dist/ui-bootstrap.js'],
dest:'dist/ui-bootstrap.min.js'
src:['dist/ui-bootstrap-<%= pkg.version %>.js'],
dest:'dist/ui-bootstrap-<%= pkg.version %>.min.js'
},
dist_tpls:{
src:['dist/ui-bootstrap-tpls.js'],
dest:'dist/ui-bootstrap-tpls.min.js'
src:['dist/ui-bootstrap-tpls-<%= pkg.version %>.js'],
dest:'dist/ui-bootstrap-tpls-<%= pkg.version %>.min.js'
}
},
html2js: {
Expand Down
2 changes: 1 addition & 1 deletion misc/demo-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>Bootstrap for AngularUI</title>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
<script src="ui-bootstrap-tpls.min.js"></script>
<script src="ui-bootstrap-tpls-<%= grunt.config.get('pkg.version') %>.min.js"></script>
<script>
angular.module('bootstrapDemoApp', ['ui.bootstrap']);
</script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "https://github.com/angular-ui/bootstrap/graphs/contributors",
"name": "angular-ui-bootstrap",
"version": "0.1.0",
"version": "0.1.0-SNAPSHOT",
"dependencies": {},
"devDependencies": {
"node-markdown": "*",
Expand Down

0 comments on commit 2105dde

Please sign in to comment.