Skip to content

Release/0.8.4 #181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 35 additions & 46 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,38 @@
{
"name": "angular-summernote",
"description": "AngularJS directive to Summernote",
"version": "0.8.1",
"main": [
"name": "angular-summernote-wb55sv3",
"description": "AngularJS directive to Summernote",
"version": "0.8.3",
"main": [
"./dist/angular-summernote.js"
],
"license": "MIT",
"ignore": [
"node_modules/",
"examples/",
"test/",
"Gruntfile.js",
"karma.conf.js",
"package.json",
".travis.yml",
".jshintrc",
".gitignore",
".editorconfig",
".bowerrc",
".coveralls.yml"
],
"keywords": ["angular.js", "summernote", "editor", "directive"],
"authors": [
{
"name": "\"Outsider\" Jeonghoon Byun",
"email": "[email protected]",
"url": "http://blog.outsider.ne.kr/"
],
"license": "MIT",
"ignore": [
"node_modules/",
"examples/",
"test/",
"Gruntfile.js",
"karma.conf.js",
"package.json",
".travis.yml",
".jshintrc",
".gitignore",
".editorconfig",
".bowerrc",
".coveralls.yml"
],
"keywords": ["angular.js", "summernote", "editor", "directive"],
"authors": [{

"name": "\"Outsider\" Jeonghoon Byun",
"email": "[email protected]",
"url": "http://blog.outsider.ne.kr/"
}],
"repository": {
"type": "git",
"url": "https://github.com/wb55s/angular-summernote"
},
"dependencies": {
"summernote": "https://github.com/wb55s/summernote.git",
"angular": "~1.5.0"
}
],
"repository": {
"type": "git",
"url": "git://github.com/summernote/angular-summernote.git"
},
"dependencies": {
"summernote": "~0.8.0",
"angular": "~1.5.0"
},
"devDependencies": {
"angular-1.2": "https://raw.githubusercontent.com/angular/bower-angular/v1.2.29/angular.min.js",
"angular-1.3": "https://raw.githubusercontent.com/angular/bower-angular/v1.3.20/angular.min.js",
"angular-1.4": "https://raw.githubusercontent.com/angular/bower-angular/v1.4.9/angular.min.js",
"chai": "~2.3.0",
"angular-mocks": "~1.5.0",
"angular-mocks-1.2": "https://raw.githubusercontent.com/angular/bower-angular-mocks/v1.2.29/angular-mocks.js",
"angular-mocks-1.3": "https://raw.githubusercontent.com/angular/bower-angular-mocks/v1.3.20/angular-mocks.js",
"angular-mocks-1.4": "https://raw.githubusercontent.com/angular/bower-angular-mocks/v1.4.9/angular-mocks.js"
}
}
}
130 changes: 65 additions & 65 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,101 +13,101 @@ var banner = '/* angular-summernote v<%=pkg.version%> | (c) 2016 JeongHoon Byun
var isAngular12 = isAngular13 = isAngular14 = false;

gulp.task('lint', function() {
return gulp.src(['./src/**/*.js', './test/**/*.test.js'])
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
return gulp.src(['./src/**/*.js', './test/**/*.test.js'])
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
});

gulp.task('copy', function() {
return gulp.src('./src/angular-summernote.js')
.pipe(header(banner, {pkg: pkg}))
.pipe(gulp.dest('dist'));
return gulp.src('./src/angular-summernote.js')
.pipe(header(banner, { pkg: pkg }))
.pipe(gulp.dest('dist'));
});

gulp.task('build', ['copy'], function() {
return gulp.src('./src/angular-summernote.js')
.pipe(uglify({mangle: false}))
.pipe(rename({extname: '.min.js'}))
.pipe(header(banner, {pkg: pkg}))
.pipe(gulp.dest('dist'));
return gulp.src('./src/angular-summernote.js')
.pipe(uglify({ mangle: false }))
.pipe(rename({ extname: '.min.js' }))
.pipe(header(banner, { pkg: pkg }))
.pipe(gulp.dest('dist'));
});

gulp.task('karma', function (done) {
var configFile = '/test/karma.conf.js';
if (isAngular12) { configFile = '/test/karma-angular-1-2-x.conf.js'; }
if (isAngular13) { configFile = '/test/karma-angular-1-3-x.conf.js'; }
if (isAngular14) { configFile = '/test/karma-angular-1-4-x.conf.js'; }
gulp.task('karma', function(done) {
var configFile = '/test/karma.conf.js';
if (isAngular12) { configFile = '/test/karma-angular-1-2-x.conf.js'; }
if (isAngular13) { configFile = '/test/karma-angular-1-3-x.conf.js'; }
if (isAngular14) { configFile = '/test/karma-angular-1-4-x.conf.js'; }

if (!process.env.CI) {
new Server({
configFile: __dirname + configFile,
autoWatch: true
}, done).start();
} else {
new Server({
configFile: __dirname + configFile,
browsers: ['PhantomJS'],
singleRun: true
}, done).start();
}
if (!process.env.CI) {
new Server({
configFile: __dirname + configFile,
autoWatch: true
}, done).start();
} else {
new Server({
configFile: __dirname + configFile,
browsers: ['PhantomJS'],
singleRun: true
}, done).start();
}
});

gulp.task('test', function() {
gulp.start('karma');
gulp.start('karma');
});

gulp.task('test:angular12', function() {
isAngular12 = true;
gulp.start('karma');
isAngular12 = true;
gulp.start('karma');
});

gulp.task('test:angular13', function() {
isAngular13 = true;
gulp.start('karma');
isAngular13 = true;
gulp.start('karma');
});

gulp.task('test:angular14', function() {
isAngular14 = true;
gulp.start('karma');
isAngular14 = true;
gulp.start('karma');
});

gulp.task('test:coverage', function(done) {
var configFile = '/test/karma.conf.js';
new Server({
configFile: __dirname + configFile,
singleRun: true,
browsers: ['PhantomJS'],
reporters: ['progress', 'coverage'],
preprocessors: { '../**/src/**/*.js': 'coverage' },
coverageReporter: { type: 'lcov', dir: '../coverage/' },
plugins: [ 'karma-*' ]
}, done).start();
var configFile = '/test/karma.conf.js';
new Server({
configFile: __dirname + configFile,
singleRun: true,
browsers: ['PhantomJS'],
reporters: ['progress', 'coverage'],
preprocessors: { '../**/src/**/*.js': 'coverage' },
coverageReporter: { type: 'lcov', dir: '../coverage/' },
plugins: ['karma-*']
}, done).start();
});

gulp.task('clean:coverage', function () {
return del([
'coverage'
]);
gulp.task('clean:coverage', function() {
return del([
'coverage'

]);
});

gulp.task('coveralls', ['clean:coverage', 'test:coverage'], function() {
return gulp.src('./coverage/**/lcov.info')
.pipe(coveralls());
return gulp.src('./coverage/**/lcov.info')
.pipe(coveralls());
});

gulp.task('travis', ['test', 'test:angular12', 'test:angular13', 'test:angular14'], function() {
});
gulp.task('travis', ['test', 'test:angular12', 'test:angular13', 'test:angular14'], function() {});

gulp.task('nuget-pack', function(done) {
nugetpack({
id: "Angular.Summernote",
version: pkg.version,
authors: pkg.author.name,
description: pkg.description,
projectUrl: pkg.homepage,
licenseUrl: "https://github.com/summernote/angular-summernote/blob/master/LICENSE-MIT",
copyright: "MIT",
tags: pkg.keywords.join(' '),
outputDir: "out"
}, ['dist/*.js', 'README.md' ], done);
});
nugetpack({
id: "Angular.Summernote",
version: pkg.version,
authors: pkg.author.name,
description: pkg.description,
projectUrl: pkg.homepage,
licenseUrl: "https://github.com/summernote/angular-summernote/blob/master/LICENSE-MIT",
copyright: "MIT",
tags: pkg.keywords.join(' '),
outputDir: "out"
}, ['dist/*.js', 'README.md'], done);
});
96 changes: 48 additions & 48 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
{
"name": "angular-summernote",
"description": "AngularJS directive to Summernote",
"version": "0.8.1",
"author": {
"name": "\"Outsider\" Jeonghoon Byun",
"email": "[email protected]",
"url": "http://blog.outsider.ne.kr/"
},
"main": "dist/angular-summernote.js",
"keywords": [
"editor",
"bootstrap",
"WYSIWYG",
"angular",
"angular.js"
],
"homepage": "https://github.com/summernote/angular-summernote",
"repository": {
"type": "git",
"url": "https://github.com/outsideris/involved.git"
},
"license": "MIT",
"devDependencies": {
"del": "^2.1.0",
"gulp": "^3.9.0",
"gulp-coveralls": "^0.1.4",
"gulp-header": "^1.7.1",
"gulp-jshint": "^1.11.2",
"gulp-nuget-pack": "0.0.6",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.4.2",
"jshint-stylish": "^2.0.1",
"karma": "~0.13.9",
"karma-chrome-launcher": "~0.2.0",
"karma-coffee-preprocessor": "~0.3.0",
"karma-coverage": "^0.5.0",
"karma-firefox-launcher": "~0.1.3",
"karma-html2js-preprocessor": "~0.1.0",
"karma-mocha": "~0.2.0",
"karma-phantomjs-launcher": "~0.2.0",
"karma-requirejs": "~0.2.1",
"karma-script-launcher": "~0.1.0",
"mocha": "~2.2.0",
"phantomjs": "^2.1.7",
"requirejs": "~2.1.10"
},
"dependencies": {}
}
"name": "angular-summernote-wb55sv3",
"description": "AngularJS directive to Summernote",
"version": "0.8.3",
"author": {
"name": "\"Outsider\" Jeonghoon Byun",
"email": "[email protected]",
"url": "http://blog.outsider.ne.kr/"
},
"main": "dist/angular-summernote.js",
"keywords": [
"editor",
"bootstrap",
"WYSIWYG",
"angular",
"angular.js"
],
"homepage": "https://github.com/summernote/angular-summernote",
"repository": {
"type": "git",
"url": "https://github.com/outsideris/involved.git"
},
"license": "MIT",
"devDependencies": {
"del": "^2.1.0",
"gulp": "^3.9.0",
"gulp-coveralls": "^0.1.4",
"gulp-header": "^1.7.1",
"gulp-jshint": "^1.11.2",
"gulp-nuget-pack": "0.0.6",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.4.2",
"jshint-stylish": "^2.0.1",
"karma": "~0.13.9",
"karma-chrome-launcher": "~0.2.0",
"karma-coffee-preprocessor": "~0.3.0",
"karma-coverage": "^0.5.0",
"karma-firefox-launcher": "~0.1.3",
"karma-html2js-preprocessor": "~0.1.0",
"karma-mocha": "~0.2.0",
"karma-phantomjs-launcher": "~0.2.0",
"karma-requirejs": "~0.2.1",
"karma-script-launcher": "~0.1.0",
"mocha": "~2.2.0",
"phantomjs": "^2.1.7",
"requirejs": "~2.1.10"
},
"dependencies": {}
}