bump version to 2.0.1
This commit is contained in:
parent
2b05ab203b
commit
c60ed4e64b
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1 @@
|
||||
.idea/
|
||||
.node_modules/
|
||||
node_modules/
|
||||
node_modules
|
@ -1,6 +0,0 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "0.10"
|
||||
before_script:
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
1
LICENSE
1
LICENSE
@ -1,6 +1,7 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Gliffy Inc.
|
||||
Copyright (c) 2021 Zeno Zeng
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
"name": "canvas2svg",
|
||||
"version": "1.0.19",
|
||||
"main": "./canvas2svg.js"
|
||||
}
|
@ -1,14 +1,16 @@
|
||||
/*!!
|
||||
* SVGCanvas v2.0.0
|
||||
* A low level canvas to SVG converter. Uses a mock canvas context to build an SVG document.
|
||||
* SVGCanvas v2.0.1
|
||||
* Draw on SVG using Canvas's 2D Context API.
|
||||
*
|
||||
* Licensed under the MIT license:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
*
|
||||
* Author:
|
||||
* Kerry Liu
|
||||
* Zeno Zeng
|
||||
*
|
||||
* Copyright (c) 2014 Gliffy Inc.
|
||||
* Copyright (c) 2021 Zeno Zeng
|
||||
*/
|
||||
|
||||
module.exports = (function () {
|
||||
|
38
gulpfile.js
38
gulpfile.js
@ -1,38 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var gulp = require('gulp');
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
var cheerio = require('cheerio');
|
||||
var bump = require('gulp-bump');
|
||||
|
||||
|
||||
function updateExample(filename) {
|
||||
var playground = fs.readFileSync(path.join(__dirname, filename), {'encoding': 'utf8'});
|
||||
var filenames = fs.readdirSync(path.join(__dirname,'test/example'));
|
||||
var $ = cheerio.load(playground);
|
||||
var $examples = $('#examples');
|
||||
var $select = $('#select');
|
||||
$examples.empty();
|
||||
$select.empty();
|
||||
filenames.forEach(function(filename) {
|
||||
var name = filename.replace('.js', '');
|
||||
$examples.append($('<script type="text/javascript" src="example/'+filename+'"></script>'));
|
||||
$select.append($('<option value="'+name+'">'+name+'</option>'));
|
||||
});
|
||||
fs.writeFileSync(path.join(__dirname, filename), $.html(), {'encoding': 'utf8'})
|
||||
}
|
||||
|
||||
// run this after adding an example file to update playground.html, and testrunner.html
|
||||
gulp.task('update_examples', function() {
|
||||
updateExample('test/playground.html');
|
||||
updateExample('test/testrunner.html');
|
||||
});
|
||||
|
||||
gulp.task('bump', function() {
|
||||
gulp.src(["./package.json", "./bower.json"])
|
||||
.pipe(bump({type:'patch'}))
|
||||
.pipe(gulp.dest('./'));
|
||||
});
|
||||
|
||||
// gulp.task('default', ['update_examples']);
|
13236
package-lock.json
generated
13236
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
24
package.json
24
package.json
@ -1,33 +1,13 @@
|
||||
{
|
||||
"name": "svgcanvas",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"description": "svgcanvas",
|
||||
"main": "index.js",
|
||||
"directories": {
|
||||
"test": "test"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "./node_modules/.bin/karma start --browsers Firefox --single-run"
|
||||
},
|
||||
"keywords": [
|
||||
"canvas",
|
||||
"svg",
|
||||
"canvas2svg"
|
||||
],
|
||||
"author": "Zeno Zeng",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"chai": "^2.1.1",
|
||||
"cheerio": "^0.19.0",
|
||||
"gulp": "^3.9.0",
|
||||
"gulp-bump": "^0.3.1",
|
||||
"karma": "^0.12.36",
|
||||
"karma-chai": "^0.1.0",
|
||||
"karma-chrome-launcher": "^0.1.12",
|
||||
"karma-firefox-launcher": "^0.1.6",
|
||||
"karma-mocha": "^0.1.10",
|
||||
"karma-mocha-reporter": "^1.0.2",
|
||||
"mocha": "^2.2.5",
|
||||
"resemblejs": "^1.2.1"
|
||||
}
|
||||
"license": "MIT"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user