Skip to content

Commit f4e6296

Browse files
committed
Initial commit.
1 parent d80a276 commit f4e6296

File tree

22 files changed

+1787
-3
lines changed

22 files changed

+1787
-3
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ results
1313

1414
npm-debug.log
1515
node_modules
16+
17+
coverage/
18+
doc/
19+
20+
*.iml
21+
.idea/

.jshintrc

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"node": false,
3+
"browser": true,
4+
"es5": true,
5+
"esnext": true,
6+
"bitwise": true,
7+
"camelcase": true,
8+
"curly": true,
9+
"eqeqeq": true,
10+
"immed": true,
11+
"indent": 2,
12+
"latedef": true,
13+
"newcap": true,
14+
"noarg": true,
15+
"quotmark": "single",
16+
"regexp": true,
17+
"undef": true,
18+
"unused": true,
19+
"strict": true,
20+
"trailing": true,
21+
"smarttabs": true,
22+
"predef": [
23+
"inject",
24+
"describe",
25+
"it",
26+
"beforeEach",
27+
"afterEach",
28+
"assert",
29+
"require",
30+
"module",
31+
"exports",
32+
"angular"
33+
]
34+
}

.travis.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: node_js
2+
node_js:
3+
- "0.8"
4+
- "0.10"
5+
before_install:
6+
- npm install -g bower
7+
- bower install
8+
- npm install -g grunt-cli
9+
before_script:
10+
- export DISPLAY=:99.0
11+
- sh -e /etc/init.d/xvfb start
12+
script:
13+
- grunt cli

Gruntfile.js

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
/*
2+
* angular-data
3+
* http://github.com/jmdobry/angular-data
4+
*
5+
* Copyright (c) 2014 Jason Dobry <http://jmdobry.github.io/angular-data>
6+
* Licensed under the MIT license. <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
7+
*/
8+
module.exports = function (grunt) {
9+
'use strict';
10+
11+
require('load-grunt-tasks')(grunt);
12+
require('time-grunt')(grunt);
13+
14+
// Project configuration.
15+
grunt.initConfig({
16+
pkg: grunt.file.readJSON('package.json'),
17+
clean: {
18+
coverage: ['coverage/'],
19+
dist: ['dist/'],
20+
doc: ['doc/']
21+
},
22+
jshint: {
23+
all: ['Gruntfile.js', 'src/**/*.js', 'test/*.js'],
24+
jshintrc: '.jshintrc'
25+
},
26+
uglify: {
27+
main: {
28+
options: {
29+
banner: '/**\n' +
30+
'* @author Jason Dobry <[email protected]>\n' +
31+
'* @file angular-data.min.js\n' +
32+
'* @version <%= pkg.version %> - Homepage <http://jmdobry.github.io/angular-data/>\n' +
33+
'* @copyright (c) 2014 Jason Dobry <http://jmdobry.github.io/angular-data>\n' +
34+
'* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>\n' +
35+
'*\n' +
36+
'* @overview In-browser data store for Angular.js.\n' +
37+
'*/\n'
38+
},
39+
files: {
40+
'dist/angular-data.min.js': ['dist/angular-data.js']
41+
}
42+
}
43+
},
44+
browserify: {
45+
dist: {
46+
files: {
47+
'dist/angular-data.js': ['src/index.js']
48+
}
49+
}
50+
// },
51+
// karma: {
52+
// options: {
53+
// configFile: './karma.conf.js'
54+
// },
55+
// dev: {
56+
// browsers: ['Chrome'],
57+
// autoWatch: true,
58+
// singleRun: false
59+
// },
60+
// },
61+
// coveralls: {
62+
// options: {
63+
// coverage_dir: 'coverage'
64+
// }
65+
},
66+
docular: {
67+
groups: [
68+
{
69+
groupTitle: 'API',
70+
groupId: 'api',
71+
groupIcon: 'icon-wrench',
72+
showSource: true,
73+
sections: [
74+
{
75+
id: 'api',
76+
title: 'angular-data',
77+
scripts: [
78+
'src/'
79+
]
80+
}
81+
]
82+
}
83+
],
84+
docular_webapp_target: 'doc',
85+
showDocularDocs: false,
86+
showAngularDocs: false
87+
}
88+
});
89+
90+
grunt.registerTask('doc', ['clean:doc', 'docular']);
91+
grunt.registerTask('build', ['clean:dist', 'jshint', 'browserify', 'uglify', 'doc']);
92+
grunt.registerTask('default', ['build']);
93+
94+
// Used by the CLI build servers
95+
grunt.registerTask('test-cli', ['karma:1.0.4', 'karma:1.0.5', 'karma:1.0.6', 'karma:1.0.7', 'karma:1.0.8', 'karma:1.1.4', 'karma:1.1.5']);
96+
grunt.registerTask('cli', ['clean', 'jshint', 'copy', 'uglify', 'test-cli', 'coveralls']);
97+
};

README.md

+23-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
1-
angular-data
2-
============
1+
## angular-data
32

4-
In-browser data store for Angular.js.
3+
__An in-browser data store for Angular.js.__
4+
5+
__Current version:__ 0.0.1-SNAPSHOT
6+
7+
Copyright (C) 2014 Jason Dobry
8+
9+
Permission is hereby granted, free of charge, to any person obtaining a copy of
10+
this software and associated documentation files (the "Software"), to deal in
11+
the Software without restriction, including without limitation the rights to
12+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
13+
of the Software, and to permit persons to whom the Software is furnished to do
14+
so, subject to the following conditions:
15+
16+
The above copyright notice and this permission notice shall be included in all
17+
copies or substantial portions of the Software.
18+
19+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
21+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
22+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
23+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

bower.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"author": "Jason Dobry",
3+
"name": "angular-data",
4+
"description": "An in-browser data store for Angular.js.",
5+
"version": "0.0.1-SNAPSHOT",
6+
"homepage": "http://jmdobry.github.io/angular-data/",
7+
"repository": {
8+
"type": "git",
9+
"url": "git://github.com/jmdobry/angular-data.git"
10+
},
11+
"main": "./dist/angular-data.min.js",
12+
"ignore": [
13+
".idea/",
14+
".bowerrc",
15+
"*.iml",
16+
"src/",
17+
"doc/",
18+
"guide/",
19+
"coverage/",
20+
".jshintrc",
21+
"Gruntfile.js",
22+
"node_modules/",
23+
"test/",
24+
"karma.conf.js",
25+
".gitignore",
26+
".travis.yml"
27+
]
28+
}

0 commit comments

Comments
 (0)