Init files
parent
bab300abc6
commit
d90ed1f530
@ -0,0 +1,2 @@
|
|||||||
|
bower_components/
|
||||||
|
node_modules/
|
@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"node": true,
|
||||||
|
"browser": true,
|
||||||
|
"esnext": true,
|
||||||
|
"bitwise": true,
|
||||||
|
"camelcase": true,
|
||||||
|
"curly": true,
|
||||||
|
"eqeqeq": true,
|
||||||
|
"immed": true,
|
||||||
|
"indent": 2,
|
||||||
|
"latedef": true,
|
||||||
|
"newcap": true,
|
||||||
|
"noarg": true,
|
||||||
|
"quotmark": "single",
|
||||||
|
"regexp": true,
|
||||||
|
"undef": true,
|
||||||
|
"unused": true,
|
||||||
|
"strict": true,
|
||||||
|
"trailing": true,
|
||||||
|
"smarttabs": true,
|
||||||
|
"globals": {
|
||||||
|
"angular": false,
|
||||||
|
"describe": false,
|
||||||
|
"it": false,
|
||||||
|
"xit": false,
|
||||||
|
"beforeEach": false,
|
||||||
|
"afterEach": false,
|
||||||
|
"inject": false,
|
||||||
|
"expect": false,
|
||||||
|
"jasmine": false,
|
||||||
|
"spyOn": false
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"name": "angular-diff",
|
||||||
|
"version": "v1.0.0",
|
||||||
|
"description": "Diff filter for angular.js. Show inline text diff in your page",
|
||||||
|
"homepage": "https://github.com/matteosuppo/angular-diff",
|
||||||
|
"authors": [
|
||||||
|
"Matteo Suppo <matteo.suppo@gmail.com>"
|
||||||
|
],
|
||||||
|
"keywords": [
|
||||||
|
"angular",
|
||||||
|
"diff"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"ignore": [
|
||||||
|
"**/.*",
|
||||||
|
"node_modules",
|
||||||
|
"bower_components",
|
||||||
|
"test",
|
||||||
|
"tests"
|
||||||
|
],
|
||||||
|
"dependencies": {
|
||||||
|
"angular": "~1.2.18",
|
||||||
|
"angular-mocks": "~1.2.18"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
var gulp = require('gulp');
|
||||||
|
var karma = require('gulp-karma');
|
||||||
|
var concat = require('gulp-concat');
|
||||||
|
var ngmin = require('gulp-ngmin');
|
||||||
|
var uglify = require('gulp-uglify');
|
||||||
|
|
||||||
|
/* Test files with karma */
|
||||||
|
gulp.task('karma', function() {
|
||||||
|
|
||||||
|
return gulp.src([
|
||||||
|
'bower_components/angular/angular.js',
|
||||||
|
'bower_components/angular-mocks/angular-mocks.js',
|
||||||
|
'src/*.js',
|
||||||
|
'tests/*.js'
|
||||||
|
]).pipe(karma({
|
||||||
|
configFile: 'karma.conf.js',
|
||||||
|
action: 'watch'
|
||||||
|
}))
|
||||||
|
.on('error', function(err) {
|
||||||
|
// Make sure failed tests cause gulp to exit non-zero
|
||||||
|
throw err;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
/* Build a concat and minified version of the source files */
|
||||||
|
gulp.task('build:concat', function () {
|
||||||
|
return gulp.src('src/*.js')
|
||||||
|
.pipe(concat('angular-diff.js'))
|
||||||
|
.pipe(gulp.dest('.'));
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('build:minify', function () {
|
||||||
|
return gulp.src('src/*.js')
|
||||||
|
.pipe(ngmin())
|
||||||
|
.pipe(uglify())
|
||||||
|
.pipe(concat('angular-diff.min.js'))
|
||||||
|
.pipe(gulp.dest('.'));
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('build', ['build:concat', 'build:minify']);
|
@ -0,0 +1,67 @@
|
|||||||
|
// Karma configuration
|
||||||
|
// Generated on Fri May 09 2014 11:16:12 GMT+0200 (CEST)
|
||||||
|
|
||||||
|
module.exports = function(config) {
|
||||||
|
config.set({
|
||||||
|
|
||||||
|
// base path that will be used to resolve all patterns (eg. files, exclude)
|
||||||
|
basePath: '',
|
||||||
|
|
||||||
|
|
||||||
|
// frameworks to use
|
||||||
|
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
|
||||||
|
frameworks: ['jasmine'],
|
||||||
|
|
||||||
|
|
||||||
|
// list of files / patterns to load in the browser
|
||||||
|
files: [
|
||||||
|
|
||||||
|
],
|
||||||
|
|
||||||
|
|
||||||
|
// list of files to exclude
|
||||||
|
exclude: [
|
||||||
|
|
||||||
|
],
|
||||||
|
|
||||||
|
|
||||||
|
// preprocess matching files before serving them to the browser
|
||||||
|
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
||||||
|
preprocessors: {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// test results reporter to use
|
||||||
|
// possible values: 'dots', 'progress'
|
||||||
|
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||||
|
reporters: ['progress'],
|
||||||
|
|
||||||
|
|
||||||
|
// web server port
|
||||||
|
port: 9876,
|
||||||
|
|
||||||
|
|
||||||
|
// enable / disable colors in the output (reporters and logs)
|
||||||
|
colors: true,
|
||||||
|
|
||||||
|
|
||||||
|
// level of logging
|
||||||
|
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
||||||
|
logLevel: config.LOG_INFO,
|
||||||
|
|
||||||
|
|
||||||
|
// enable / disable watching file and executing tests whenever any file changes
|
||||||
|
autoWatch: true,
|
||||||
|
|
||||||
|
|
||||||
|
// start these browsers
|
||||||
|
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
||||||
|
browsers: ['Chrome'],
|
||||||
|
|
||||||
|
|
||||||
|
// Continuous Integration mode
|
||||||
|
// if true, Karma captures browsers, runs the tests and exits
|
||||||
|
singleRun: false
|
||||||
|
});
|
||||||
|
};
|
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"name": "angular-diff",
|
||||||
|
"version": "v1.0.0",
|
||||||
|
"description": "Diff filter for angular.js. Show inline text diff in your page",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/matteosuppo/angular-diff"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"angular",
|
||||||
|
"diff"
|
||||||
|
],
|
||||||
|
"author": "Matteo Suppo <matteo.suppo@gmail.com>",
|
||||||
|
"license": "MIT",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/matteosuppo/angular-diff/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/matteosuppo/angular-diff",
|
||||||
|
"devDependencies": {
|
||||||
|
"gulp": "^3.6.2",
|
||||||
|
"gulp-karma": "0.0.4",
|
||||||
|
"gulp-concat": "^2.2.0",
|
||||||
|
"gulp-ngmin": "^0.3.0",
|
||||||
|
"gulp-uglify": "^0.2.1",
|
||||||
|
"karma-chrome-launcher": "^0.1.3",
|
||||||
|
"karma-jasmine": "^0.2.2"
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue