Skip to content

Commit

Permalink
Move built versions outside of dist
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Apr 11, 2014
1 parent be0b835 commit 2d11c90
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 20 deletions.
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ ask you to fix any errors or merge the code into master. Here are a few tips:
* **write tests**: if you're adding new features, _please_ write tests; likewise, if you're fixing a bug that wasn't previously caught by a test, please add one
* **run `make` before you commit**: this will build out the files in the `dist/` folder and ensure your tests pass

Please commit changes inside the `dist/` folder along with your changes in the
`src/` folder--**do not make these changes separate commits**.
Please commit changes at the top-level folder along with your changes in the
`src/` folder--**do not make these changes separate commits**. These are the
built versions of `localforage.js` and `localforage.min.js`, which are
used by bower.

If you have any questions, need some help, or anything else, don't feel shy!
The team behind this library is often available on IRC
Expand Down
6 changes: 3 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = exports = function(grunt) {
'src/drivers/**/*.js',
'src/localforage.js'
],
dest: 'dist/localforage.js',
dest: 'localforage.js',
options: {
banner:
'/*!\n' +
Expand Down Expand Up @@ -96,8 +96,8 @@ module.exports = exports = function(grunt) {
uglify: {
localforage: {
files: {
'dist/localforage.min.js': ['dist/localforage.js'],
'docs/localforage.min.js': ['dist/localforage.js']
'localforage.min.js': ['localforage.js'],
'docs/localforage.min.js': ['localforage.js']
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "localforage",
"version": "0.3.1",
"version": "0.4.0",
"main": [
"dist/localforage.min.js"
"localforage.min.js"
],
"ignore": [
".travis.yml",
Expand Down
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Simple localForage example</title>
</head>
<body>
<script src="../dist/localforage.js"></script>
<script src="../localforage.js"></script>
<script>
// Forcing localstorage here. Feel free to switch to other drivers :)
localforage.setDriver(localforage.LOCALSTORAGE).then(function() {
Expand Down
2 changes: 1 addition & 1 deletion examples/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
define(['../dist/localforage'], function(lf) {
define(['../localforage'], function(lf) {
lf.ready(function() {
var key = 'STORE_KEY';
var value = 'What we save offline';
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"storage",
"websql"
],
"version": "0.3.1",
"version": "0.4.0",
"homepage": "https://github.com/mozilla/localForage",
"repository": {
"type": "git",
Expand All @@ -31,8 +31,8 @@
"grunt-shell": "^0.6.4",
"load-grunt-tasks": "^0.4.0"
},
"browser": "dist/localforage.js",
"main": "dist/localforage.js",
"browser": "localforage.js",
"main": "localforage.js",
"licence": "Apache-2.0",
"bugs": {
"url": "http://github.com/mozilla/localForage/issues"
Expand Down
2 changes: 1 addition & 1 deletion test/indexeddb.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<body>
<div class="status"></div>

<script src="../dist/localforage.js"></script>
<script src="../localforage.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion test/localstorage.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<body>
<div class="status"></div>

<script src="../dist/localforage.js"></script>
<script src="../localforage.js"></script>
<script>window.localforage.setDriver('localStorageWrapper');</script>
</body>
</html>
2 changes: 1 addition & 1 deletion test/test.config.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
version: 2.0 // Test to make sure
};
</script>
<script src="../dist/localforage.js"></script>
<script src="../localforage.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion test/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<body>
<div class="status"></div>

<script src="../dist/localforage.js"></script>
<script src="../localforage.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion test/test.min.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<body>
<div class="status"></div>

<script src="../dist/localforage.min.js"></script>
<script src="../localforage.min.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion test/test.require.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<body>
<div class="status"></div>

<script data-main="../dist/localforage" src="../bower_components/requirejs/require.js"></script>
<script data-main="../localforage" src="../bower_components/requirejs/require.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion test/test.requiremin.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<body>
<div class="status"></div>

<script data-main="../dist/localforage.min" src="../bower_components/requirejs/require.js"></script>
<script data-main="../localforage.min" src="../bower_components/requirejs/require.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion test/websql.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<body>
<div class="status"></div>

<script src="../dist/localforage.js"></script>
<script src="../localforage.js"></script>
</body>
</html>

0 comments on commit 2d11c90

Please sign in to comment.