Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfe455a2

Browse files
committed
Initial implementation.
1 parent757b1a2 commitfe455a2

File tree

13 files changed

+1398
-0
lines changed

13 files changed

+1398
-0
lines changed

‎.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ build/Release
2323
# Deployed apps should consider commenting this line out:
2424
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
2525
node_modules
26+
bower_components
27+
28+
*.iml
29+
.idea/

‎.jshintrc‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
"sinon",
27+
"console",
28+
"DS",
29+
"beforeEach",
30+
"afterEach",
31+
"assert",
32+
"require",
33+
"module",
34+
"exports",
35+
"angular"
36+
]
37+
}

‎.travis.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language:node_js
2+
node_js:
3+
-"0.10"
4+
-"0.11"
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 ci

‎Gruntfile.js‎

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
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+
varpkg=grunt.file.readJSON('package.json');
15+
16+
// Project configuration.
17+
grunt.initConfig({
18+
pkg:pkg,
19+
clean:{
20+
coverage:['coverage/'],
21+
dist:['dist/']
22+
},
23+
jshint:{
24+
all:['Gruntfile.js','src/**/*.js','test/*.js'],
25+
jshintrc:'.jshintrc'
26+
},
27+
watch:{
28+
files:['src/**/*.js'],
29+
tasks:['build']
30+
},
31+
uglify:{
32+
dist:{
33+
options:{
34+
banner:'/**\n'+
35+
'* @author Jason Dobry <jason.dobry@gmail.com>\n'+
36+
'* @file angular-data-mock.min.js\n'+
37+
'* @version <%= pkg.version %> - Homepage <https://github.com/jmdobry/angular-data-mock>\n'+
38+
'* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>\n'+
39+
'* @license MIT <https://github.com/jmdobry/angular-data-mock/blob/master/LICENSE>\n'+
40+
'*\n'+
41+
'* @overview A mock of angular-data for testing purposes.\n'+
42+
'*/\n'
43+
},
44+
files:{
45+
'dist/angular-data-mock.min.js':['dist/angular-data-mocks.js']
46+
}
47+
}
48+
},
49+
karma:{
50+
options:{
51+
configFile:'./karma.conf.js'
52+
},
53+
dev:{
54+
browsers:['Chrome'],
55+
autoWatch:true,
56+
singleRun:false
57+
},
58+
min:{
59+
browsers:['Chrome'],
60+
autoWatch:false,
61+
singleRun:true,
62+
options:{
63+
files:[
64+
'bower_components/angular/angular.js',
65+
'bower_components/angular-mocks/angular-mocks.js',
66+
'dist/angular-data.min.js',
67+
'test/integration/**/*.js',
68+
'karma.start.js'
69+
]
70+
}
71+
},
72+
ci:{
73+
browsers:['Firefox','PhantomJS']
74+
}
75+
},
76+
coveralls:{
77+
options:{
78+
coverage_dir:'coverage'
79+
}
80+
},
81+
82+
copy:{
83+
dist:{
84+
src:'src/angular-data-mocks.js',
85+
dest:'dist/angular-data-mocks.js',
86+
options:{
87+
process:function(content){
88+
returncontent.replace(/<%=pkg\.version%>/gi,pkg.version);
89+
}
90+
}
91+
}
92+
}
93+
});
94+
95+
grunt.registerTask('test',['clean:coverage','karma:dev']);
96+
grunt.registerTask('build',[
97+
'clean',
98+
'jshint',
99+
'copy',
100+
'uglify:dist'
101+
]);
102+
grunt.registerTask('default',['build']);
103+
104+
// Used by TravisCI
105+
grunt.registerTask('ci',['build','karma:ci','coveralls']);
106+
};

‎bower.json‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"author":"Jason Dobry",
3+
"name":"angular-data-mock",
4+
"description":"A mock of angular-data for testing purposes.",
5+
"version":"0.0.1",
6+
"homepage":"https://github.com/jmdobry/angular-data-mock/",
7+
"repository": {
8+
"type":"git",
9+
"url":"git://github.com/jmdobry/angular-data-mock.git"
10+
},
11+
"main":"./dist/angular-data-mock.min.js",
12+
"ignore": [
13+
".idea/",
14+
".*",
15+
"*.iml",
16+
"src/",
17+
"coverage/",
18+
"Gruntfile.js",
19+
"node_modules/",
20+
"test/",
21+
"package.json",
22+
"karma.conf.js",
23+
"karma.start.js"
24+
],
25+
"devDependencies": {
26+
"angular":"~1.2.16",
27+
"angular-mocks":"~1.2.16",
28+
"angular-data":"~0.8.1"
29+
}
30+
}

‎dist/angular-data-mock.min.js‎

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp