File tree Expand file tree Collapse file tree 6 files changed +197
-0
lines changed
Expand file tree Collapse file tree 6 files changed +197
-0
lines changed Original file line number Diff line number Diff line change 1+ bower_components /
2+ node_modules /
Original file line number Diff line number Diff line change 1+ {
2+ "node" : true ,
3+ "browser" : true ,
4+ "esnext" : true ,
5+ "bitwise" : true ,
6+ "camelcase" : true ,
7+ "curly" : true ,
8+ "eqeqeq" : true ,
9+ "immed" : true ,
10+ "indent" : 2 ,
11+ "latedef" : true ,
12+ "newcap" : true ,
13+ "noarg" : true ,
14+ "quotmark" : " single" ,
15+ "regexp" : true ,
16+ "undef" : true ,
17+ "unused" : true ,
18+ "strict" : true ,
19+ "trailing" : true ,
20+ "smarttabs" : true ,
21+ "globals" : {
22+ "angular" : false ,
23+ "describe" : false ,
24+ "it" : false ,
25+ "xit" : false ,
26+ "beforeEach" : false ,
27+ "afterEach" : false ,
28+ "inject" : false ,
29+ "expect" : false ,
30+ "jasmine" : false ,
31+ "spyOn" : false
32+ }
33+ }
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " angular-diff" ,
3+ "version" : " v1.0.0" ,
4+ "description" : " Diff filter for angular.js. Show inline text diff in your page" ,
5+ "homepage" : " https://github.com/matteosuppo/angular-diff" ,
6+ "authors" : [
7+ " Matteo Suppo <matteo.suppo@gmail.com>"
8+ ],
9+ "keywords" : [
10+ " angular" ,
11+ " diff"
12+ ],
13+ "license" : " MIT" ,
14+ "ignore" : [
15+ " **/.*" ,
16+ " node_modules" ,
17+ " bower_components" ,
18+ " test" ,
19+ " tests"
20+ ],
21+ "dependencies" : {
22+ "angular" : " ~1.2.18" ,
23+ "angular-mocks" : " ~1.2.18"
24+ }
25+ }
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ var gulp = require ( 'gulp' ) ;
4+ var karma = require ( 'gulp-karma' ) ;
5+ var concat = require ( 'gulp-concat' ) ;
6+ var ngmin = require ( 'gulp-ngmin' ) ;
7+ var uglify = require ( 'gulp-uglify' ) ;
8+
9+ /* Test files with karma */
10+ gulp . task ( 'karma' , function ( ) {
11+
12+ return gulp . src ( [
13+ 'bower_components/angular/angular.js' ,
14+ 'bower_components/angular-mocks/angular-mocks.js' ,
15+ 'src/*.js' ,
16+ 'tests/*.js'
17+ ] ) . pipe ( karma ( {
18+ configFile : 'karma.conf.js' ,
19+ action : 'watch'
20+ } ) )
21+ . on ( 'error' , function ( err ) {
22+ // Make sure failed tests cause gulp to exit non-zero
23+ throw err ;
24+ } ) ;
25+ } ) ;
26+
27+ /* Build a concat and minified version of the source files */
28+ gulp . task ( 'build:concat' , function ( ) {
29+ return gulp . src ( 'src/*.js' )
30+ . pipe ( concat ( 'angular-diff.js' ) )
31+ . pipe ( gulp . dest ( '.' ) ) ;
32+ } ) ;
33+
34+ gulp . task ( 'build:minify' , function ( ) {
35+ return gulp . src ( 'src/*.js' )
36+ . pipe ( ngmin ( ) )
37+ . pipe ( uglify ( ) )
38+ . pipe ( concat ( 'angular-diff.min.js' ) )
39+ . pipe ( gulp . dest ( '.' ) ) ;
40+ } ) ;
41+
42+ gulp . task ( 'build' , [ 'build:concat' , 'build:minify' ] ) ;
Original file line number Diff line number Diff line change 1+ // Karma configuration
2+ // Generated on Fri May 09 2014 11:16:12 GMT+0200 (CEST)
3+
4+ module.exports = function(config) {
5+ config.set({
6+
7+ // base path that will be used to resolve all patterns (eg. files, exclude)
8+ basePath: '',
9+
10+
11+ // frameworks to use
12+ // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
13+ frameworks: ['jasmine'],
14+
15+
16+ // list of files / patterns to load in the browser
17+ files: [
18+
19+ ],
20+
21+
22+ // list of files to exclude
23+ exclude: [
24+
25+ ],
26+
27+
28+ // preprocess matching files before serving them to the browser
29+ // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
30+ preprocessors: {
31+
32+ },
33+
34+
35+ // test results reporter to use
36+ // possible values: 'dots', 'progress'
37+ // available reporters: https://npmjs.org/browse/keyword/karma-reporter
38+ reporters: ['progress'],
39+
40+
41+ // web server port
42+ port: 9876,
43+
44+
45+ // enable / disable colors in the output (reporters and logs)
46+ colors: true,
47+
48+
49+ // level of logging
50+ // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
51+ logLevel: config.LOG_INFO,
52+
53+
54+ // enable / disable watching file and executing tests whenever any file changes
55+ autoWatch: true,
56+
57+
58+ // start these browsers
59+ // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
60+ browsers: ['Chrome'],
61+
62+
63+ // Continuous Integration mode
64+ // if true, Karma captures browsers, runs the tests and exits
65+ singleRun: false
66+ });
67+ };
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " angular-diff" ,
3+ "version" : " v1.0.0" ,
4+ "description" : " Diff filter for angular.js. Show inline text diff in your page" ,
5+ "repository" : {
6+ "type" : " git" ,
7+ "url" : " https://github.com/matteosuppo/angular-diff"
8+ },
9+ "keywords" : [
10+ " angular" ,
11+ " diff"
12+ ],
13+ "author" : " Matteo Suppo <matteo.suppo@gmail.com>" ,
14+ "license" : " MIT" ,
15+ "bugs" : {
16+ "url" : " https://github.com/matteosuppo/angular-diff/issues"
17+ },
18+ "homepage" : " https://github.com/matteosuppo/angular-diff" ,
19+ "devDependencies" : {
20+ "gulp" : " ^3.6.2" ,
21+ "gulp-karma" : " 0.0.4" ,
22+ "gulp-concat" : " ^2.2.0" ,
23+ "gulp-ngmin" : " ^0.3.0" ,
24+ "gulp-uglify" : " ^0.2.1" ,
25+ "karma-chrome-launcher" : " ^0.1.3" ,
26+ "karma-jasmine" : " ^0.2.2"
27+ }
28+ }
You can’t perform that action at this time.
0 commit comments