Skip to content

Commit

Permalink
Sources renamed to backbone-viewport, package.json updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhdmitry committed Jan 11, 2017
1 parent 45c7457 commit 9558afb
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.idea

/test
/gruntfile.js
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ If page for URI exists in Collection, it just shown.
## Requirements

* jQuery/Zepto/$-compatible framework can be used by Backbone.js
* Underscore.js
* Backbone.js

## Release

[Development version](https://github.com/dzhdmitry/backbone-viewport/blob/master/dist/viewport.js)
[Development version](https://github.com/dzhdmitry/backbone-viewport/blob/master/dist/backbone-viewport.js)

[Minimized production version](https://github.com/dzhdmitry//backbone-viewport/blob/master/dist/viewport.min.js)
[Minimized production version](https://github.com/dzhdmitry/backbone-viewport/blob/master/dist/backbone-viewport.min.js)

## Examples

Expand Down
2 changes: 1 addition & 1 deletion compiling.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ npm install
grunt build
```

Creates `/dist/viewport.js` and `/dist.viewport.min.js` from `src/viewport.js`.
Creates `/dist/backbone-viewport.js` and `/dist/backbone-viewport.min.js` from `src/backbone-viewport.js`.

```
grunt default
Expand Down
2 changes: 1 addition & 1 deletion dist/viewport.js → dist/backbone-viewport.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Backbone-Viewport - v0.5.1 - 2017-01-03
/*! Backbone-Viewport - v0.5.2 - 2017-01-11
* https://github.com/dzhdmitry/backbone-viewport
* Copyright (c) 2017 Dmitry Dzhuleba;
* Licensed
Expand Down
2 changes: 1 addition & 1 deletion dist/viewport.min.js → dist/backbone-viewport.min.js

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

6 changes: 3 additions & 3 deletions gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = function(grunt) {
var src = ['src/viewport.js'],
var src = ['src/backbone-viewport.js'],
banner = '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
Expand All @@ -15,7 +15,7 @@ module.exports = function(grunt) {
},
build: {
src: src,
dest: 'dist/viewport.min.js'
dest: 'dist/backbone-viewport.min.js'
}
},
concat: {
Expand All @@ -24,7 +24,7 @@ module.exports = function(grunt) {
},
dist: {
src: src,
dest: 'dist/viewport.js'
dest: 'dist/backbone-viewport.js'
}
},
qunit: {
Expand Down
15 changes: 14 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@
"title": "Backbone-Viewport",
"description": "Tiny single page application framework built on Backbone",
"homepage": "https://github.com/dzhdmitry/backbone-viewport",
"version": "0.5.1",
"version": "0.5.2",
"keywords": [
"backbone",
"plugin",
"backbone-viewport",
"viewport",
"spa",
"client",
"browser"
],
"author": {
"name": "Dmitry Dzhuleba",
"email": "dmitry.dzhuleba@gmail.com"
Expand All @@ -16,6 +25,10 @@
"url": "git://github.com/dzhdmitry/backbone-viewport.git"
},
"license": "MIT",
"peerDependencies": {
"backbone": "~1.3.3",
"underscore": "~1.8.3"
},
"devDependencies": {
"grunt": "~1.0.1",
"grunt-contrib-uglify": "~1.0.1",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/viewport-hash.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.3.3/backbone-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/qunit/1.18.0/qunit.min.js"></script>
<script src="../dist/viewport.js"></script>
<script src="../dist/backbone-viewport.js"></script>
<script src="viewport-hash.js"></script>
</head>
<body>
Expand Down

0 comments on commit 9558afb

Please sign in to comment.