Skip to content

Commit 833c564

Browse files
committed
Project created
0 parents  commit 833c564

11 files changed

+434
-0
lines changed

.gitignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
lib-cov
2+
*.seed
3+
*.log
4+
*.csv
5+
*.dat
6+
*.out
7+
*.pid
8+
*.gz
9+
10+
pids
11+
logs
12+
results
13+
lib
14+
node_modules
15+
components
16+
bower_components
17+
npm-debug.log

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: node_js
2+
node_js:
3+
- "0.10"
4+
5+
before_script:
6+
- export DISPLAY=:99.0
7+
- sh -e /etc/init.d/xvfb start

CHANGELOG.md

Whitespace-only changes.

CONTRIBUTE.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
In order to Contribute just git clone the repository and then run:
2+
3+
```
4+
npm install grunt-cli --global
5+
npm install
6+
grunt
7+
```
8+
9+
Be sure to have PhantomJS installed as Karma tests use it. Otherwise, in mac just run
10+
11+
```
12+
brew install phantomjs
13+
```
14+
15+
All changes must be done in src/restangular.js and then after running grunt all changes will be submited to dist/
16+
17+
Please submit a Pull Request or create issues for anything you want :).

Gruntfile.js

+157
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
'use strict';
2+
3+
module.exports = function(grunt) {
4+
5+
// Project configuration.
6+
grunt.initConfig({
7+
pkg: grunt.file.readJSON('package.json'),
8+
meta: {
9+
banner: [
10+
'/**',
11+
' * <%= pkg.description %>',
12+
' * @version v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>' +
13+
' * @link <%= pkg.homepage %>',
14+
' * @author <%= pkg.author %>',
15+
' * @license MIT License, http://www.opensource.org/licenses/MIT',
16+
' */'
17+
].join('\n')
18+
},
19+
dirs: {
20+
dest: 'dist'
21+
},
22+
concat: {
23+
options: {
24+
banner: '<%= meta.banner %>'
25+
},
26+
dist: {
27+
src: ['src/*.js'],
28+
dest: '<%= dirs.dest %>/<%= pkg.name %>.js'
29+
}
30+
},
31+
zip: {
32+
'<%= dirs.dest %>/restangular.zip': ['<%= dirs.dest %>/<%= pkg.name %>.js', '<%= dirs.dest %>/<%= pkg.name %>.min.js']
33+
},
34+
bowerInstall: {
35+
install: {
36+
}
37+
},
38+
uglify: {
39+
options: {
40+
banner: '<%= meta.banner %>'
41+
},
42+
dist: {
43+
src: ['<%= concat.dist.dest %>'],
44+
dest: '<%= dirs.dest %>/<%= pkg.name %>.min.js'
45+
}
46+
},
47+
jshint: {
48+
files: ['Gruntfile.js', 'src/*.js'],
49+
options: {
50+
curly: false,
51+
browser: true,
52+
eqeqeq: true,
53+
immed: true,
54+
latedef: true,
55+
newcap: true,
56+
noarg: true,
57+
sub: true,
58+
undef: true,
59+
boss: true,
60+
eqnull: true,
61+
expr: true,
62+
node: true,
63+
globals: {
64+
exports: true,
65+
angular: false,
66+
$: false
67+
}
68+
}
69+
},
70+
karma: {
71+
options: {
72+
configFile: 'karma.conf.js'
73+
},
74+
build: {
75+
singleRun: true,
76+
autoWatch: false
77+
},
78+
travis: {
79+
singleRun: true,
80+
autoWatch: false,
81+
browsers: ['Firefox']
82+
},
83+
travisUnderscore: {
84+
singleRun: true,
85+
autoWatch: false,
86+
browsers: ['Firefox'],
87+
configFile: 'karma.underscore.conf.js',
88+
},
89+
buildUnderscore: {
90+
configFile: 'karma.underscore.conf.js',
91+
singleRun: true,
92+
autoWatch: false
93+
},
94+
dev: {
95+
autoWatch: true
96+
}
97+
},
98+
changelog: {
99+
options: {
100+
dest: 'CHANGELOG.md'
101+
}
102+
}
103+
});
104+
105+
// Load the plugin that provides the "jshint" task.
106+
grunt.loadNpmTasks('grunt-contrib-jshint');
107+
108+
// Load the plugin that provides the "concat" task.
109+
grunt.loadNpmTasks('grunt-contrib-concat');
110+
111+
// Load the plugin that provides the "uglify" task.
112+
grunt.loadNpmTasks('grunt-contrib-uglify');
113+
114+
grunt.loadNpmTasks('grunt-bower-task');
115+
116+
grunt.renameTask("bower", "bowerInstall");
117+
118+
grunt.loadNpmTasks('grunt-karma');
119+
120+
grunt.loadNpmTasks('grunt-conventional-changelog');
121+
122+
grunt.loadNpmTasks('grunt-zip');
123+
124+
125+
// Default task.
126+
grunt.registerTask('default', ['build']);
127+
128+
// Build task.
129+
grunt.registerTask('build', ['bowerInstall', 'karma:build', 'karma:buildUnderscore', 'concat', 'uglify', 'zip']);
130+
131+
grunt.registerTask('test', ['karma:build', 'karma:buildUnderscore']);
132+
133+
grunt.registerTask('travis', ['karma:travis', 'karma:travisUnderscore']);
134+
135+
// Provides the "bump" task.
136+
grunt.registerTask('bump', 'Increment version number', function() {
137+
var versionType = grunt.option('type');
138+
function bumpVersion(version, versionType) {
139+
var type = {patch: 2, minor: 1, major: 0},
140+
parts = version.split('.'),
141+
idx = type[versionType || 'patch'];
142+
parts[idx] = parseInt(parts[idx], 10) + 1;
143+
while(++idx < parts.length) { parts[idx] = 0; }
144+
return parts.join('.');
145+
}
146+
var version;
147+
function updateFile(file) {
148+
var json = grunt.file.readJSON(file);
149+
version = json.version = bumpVersion(json.version, versionType || 'patch');
150+
grunt.file.write(file, JSON.stringify(json, null, ' '));
151+
}
152+
updateFile('package.json');
153+
updateFile('bower.json');
154+
grunt.log.ok('Version bumped to ' + version);
155+
});
156+
157+
};

README.md

Whitespace-only changes.

bower.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "angular-wizard",
3+
"version": "0.1",
4+
"main": "./dist/angular-wizard.js",
5+
"description": "Easy to use Wizard library for AngularJS",
6+
"repository": {
7+
"type": "git",
8+
"url": "git://github.com/mgonto/angular-wizard.git"
9+
},
10+
"dependencies": {
11+
"angular": "*"
12+
},
13+
"ignore": [
14+
"node_modules",
15+
"components",
16+
"lib"
17+
]
18+
}

karma.conf.js

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// Karma configuration
2+
// Generated on Fri Aug 09 2013 14:14:35 GMT-0500 (CDT)
3+
4+
module.exports = function(config) {
5+
config.set({
6+
7+
// base path, that will be used to resolve files and exclude
8+
basePath: '',
9+
10+
frameworks: ["jasmine"],
11+
12+
// list of files / patterns to load in the browser
13+
files: [
14+
'http://code.angularjs.org/1.1.4/angular.js',
15+
'http://code.angularjs.org/1.1.4/angular-resource.js',
16+
'http://code.angularjs.org/1.1.4/angular-mocks.js',
17+
'http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.2.0/lodash.min.js',
18+
'src/restangular.js',
19+
'test/*.js'
20+
],
21+
22+
23+
// list of files to exclude
24+
exclude: [
25+
26+
],
27+
28+
29+
// test results reporter to use
30+
// possible values: 'dots', 'progress', 'junit'
31+
reporters: ['progress'],
32+
33+
34+
// web server port
35+
port: 9876,
36+
37+
38+
// cli runner port
39+
runnerPort: 9100,
40+
41+
42+
// enable / disable colors in the output (reporters and logs)
43+
colors: true,
44+
45+
46+
// level of logging
47+
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
48+
logLevel: config.LOG_INFO,
49+
50+
51+
// enable / disable watching file and executing tests whenever any file changes
52+
autoWatch: true,
53+
54+
55+
// Start these browsers, currently available:
56+
// - Chrome
57+
// - ChromeCanary
58+
// - Firefox
59+
// - Opera
60+
// - Safari (only Mac)
61+
// - PhantomJS
62+
// - IE (only Windows)
63+
browsers: ['PhantomJS'],
64+
65+
66+
// If browser does not capture in given timeout [ms], kill it
67+
captureTimeout: 60000,
68+
69+
70+
// Continuous Integration mode
71+
// if true, it capture browsers, run tests and exit
72+
singleRun: false
73+
74+
});
75+
};

karma.underscore.conf.js

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// Karma configuration
2+
// Generated on Fri Aug 09 2013 14:14:35 GMT-0500 (CDT)
3+
4+
module.exports = function(config) {
5+
config.set({
6+
7+
// base path, that will be used to resolve files and exclude
8+
basePath: '',
9+
10+
frameworks: ["jasmine"],
11+
12+
// list of files / patterns to load in the browser
13+
files: [
14+
'http://code.angularjs.org/1.1.4/angular.js',
15+
'http://code.angularjs.org/1.1.4/angular-resource.js',
16+
'http://code.angularjs.org/1.1.4/angular-mocks.js',
17+
'http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js',
18+
'src/restangular.js',
19+
'test/*.js'
20+
],
21+
22+
23+
// list of files to exclude
24+
exclude: [
25+
26+
],
27+
28+
29+
// test results reporter to use
30+
// possible values: 'dots', 'progress', 'junit'
31+
reporters: ['progress'],
32+
33+
34+
// web server port
35+
port: 9877,
36+
37+
38+
// cli runner port
39+
runnerPort: 9101,
40+
41+
42+
// enable / disable colors in the output (reporters and logs)
43+
colors: true,
44+
45+
46+
// level of logging
47+
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
48+
logLevel: config.LOG_INFO,
49+
50+
51+
// enable / disable watching file and executing tests whenever any file changes
52+
autoWatch: true,
53+
54+
55+
// Start these browsers, currently available:
56+
// - Chrome
57+
// - ChromeCanary
58+
// - Firefox
59+
// - Opera
60+
// - Safari (only Mac)
61+
// - PhantomJS
62+
// - IE (only Windows)
63+
browsers: ['PhantomJS'],
64+
65+
66+
// If browser does not capture in given timeout [ms], kill it
67+
captureTimeout: 60000,
68+
69+
70+
// Continuous Integration mode
71+
// if true, it capture browsers, run tests and exit
72+
singleRun: false
73+
74+
});
75+
};

license.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright (c) 2013 Martin Gontovnikas http://gon.to/
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

0 commit comments

Comments
 (0)