Skip to content
This repository has been archived by the owner on Oct 20, 2018. It is now read-only.

Commit

Permalink
feat(demo): replace version in demo css & js assets by 'demo' to ease…
Browse files Browse the repository at this point in the history
… migrations
  • Loading branch information
tinesoft committed Jan 2, 2015
1 parent 0b89830 commit bdb8898
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions Gruntfile.js
Expand Up @@ -175,9 +175,9 @@ module.exports = function ( grunt ) {
build_css: {
src: [
'<%= vendor_files.css %>',
'<%= build_dir %>/assets/<%= pkg.name %>-<%= pkg.version %>.css'
'<%= build_dir %>/assets/<%= pkg.name %>-demo.css'
],
dest: '<%= build_dir %>/assets/<%= pkg.name %>-<%= pkg.version %>.css'
dest: '<%= build_dir %>/assets/<%= pkg.name %>-demo.css'
},
/**
* The `compile_js_demo` target is the concatenation of our demo application source
Expand All @@ -194,7 +194,7 @@ module.exports = function ( grunt ) {
'<%= build_dir %>/demo/**/*.js',
'module.suffix'
],
dest: '<%= compile_dir_demo %>/assets/<%= pkg.name %>-<%= pkg.version %>.js'
dest: '<%= compile_dir_demo %>/assets/<%= pkg.name %>-demo.js'
},

/**
Expand Down Expand Up @@ -242,7 +242,7 @@ module.exports = function ( grunt ) {
},
files: {
'<%= compile_dir_src %>/<%= pkg.name %>.min.js': '<%= concat.compile_js_src.dest %>',
'<%= compile_dir_demo %>/assets/<%= pkg.name %>-<%= pkg.version %>.min.js': '<%= concat.compile_js_demo.dest %>'
'<%= compile_dir_demo %>/assets/<%= pkg.name %>-demo.min.js': '<%= concat.compile_js_demo.dest %>'
}
}
},
Expand All @@ -255,12 +255,12 @@ module.exports = function ( grunt ) {
less: {
build: {
files: {
'<%= build_dir %>/assets/<%= pkg.name %>-<%= pkg.version %>.css': '<%= demo_files.less %>'
'<%= build_dir %>/assets/<%= pkg.name %>-demo.css': '<%= demo_files.less %>'
}
},
compile: {
files: {
'<%= build_dir %>/assets/<%= pkg.name %>-<%= pkg.version %>.css': '<%= demo_files.less %>'
'<%= build_dir %>/assets/<%= pkg.name %>-demo.css': '<%= demo_files.less %>'
},
options: {
cleancss: true,
Expand Down Expand Up @@ -334,7 +334,7 @@ module.exports = function ( grunt ) {
'<%= build_dir %>/src/**/*.js',
'<%= build_dir %>/demo/**/*.js',
'<%= vendor_files.css %>',
'<%= build_dir %>/assets/<%= pkg.name %>-<%= pkg.version %>.css'
'<%= build_dir %>/assets/<%= pkg.name %>-demo.css'
],
lr: [ 'http://localhost:35729/livereload.js' ]
},
Expand All @@ -349,7 +349,7 @@ module.exports = function ( grunt ) {
src: [
'<%= concat.compile_js_demo.dest %>',
'<%= vendor_files.css %>',
'<%= build_dir %>/assets/<%= pkg.name %>-<%= pkg.version %>.css'
'<%= build_dir %>/assets/<%= pkg.name %>-demo.css'
],
lr: [] // we don't want to include livereload on compile
}
Expand Down
1 change: 0 additions & 1 deletion dist/demo/assets/ng-browser-update-1.0.0.min.js.map

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/demo/assets/ng-browser-update-demo.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/demo/index.html
Expand Up @@ -22,10 +22,10 @@
<!-- compiled CSS -->
<link rel="stylesheet" type="text/css" href="bower_components/google-code-prettify/bin/prettify.min.css" />

<link rel="stylesheet" type="text/css" href="assets/ng-browser-update-1.0.0.css" />
<link rel="stylesheet" type="text/css" href="assets/ng-browser-update-demo.css" />

<!-- compiled JavaScript -->
<script type="text/javascript" src="assets/ng-browser-update-1.0.0.js"></script>
<script type="text/javascript" src="assets/ng-browser-update-demo.js"></script>



Expand Down

0 comments on commit bdb8898

Please sign in to comment.