Prepare release

This commit is contained in:
benweet 2014-08-31 21:35:18 +01:00
parent 3e6c1590dd
commit 39d483807e
8 changed files with 56 additions and 43 deletions

View File

@ -186,7 +186,7 @@ gulp.task('cache-manifest', function() {
}); });
gulp.task('cache-manifest-stackedit-io', function() { gulp.task('cache-manifest-stackedit-io', function() {
return makeCacheManifest('./public-stackedit.io/', 'https://cdn.stackedit.io/v' + getVersion() + '/'); return makeCacheManifest('./public-stackedit.io/', 'https://cdn.stackedit.io/' + getVersion() + '/');
}); });
gulp.task('bower-requirejs', function(cb) { gulp.task('bower-requirejs', function(cb) {
@ -203,15 +203,16 @@ gulp.task('clean', [
'clean-font', 'clean-font',
'clean-img' 'clean-img'
]); ]);
gulp.task('default', function() { gulp.task('default', function(cb) {
return runSequence([ runSequence([
'jshint', 'jshint',
'requirejs', 'requirejs',
'less', 'less',
'copy-font', 'copy-font',
'copy-img' 'copy-img'
], ],
'cache-manifest'); 'cache-manifest',
cb);
}); });
function bumpTask(importance) { function bumpTask(importance) {
@ -225,7 +226,6 @@ function bumpTask(importance) {
}; };
} }
gulp.task('bump', bumpTask('patch'));
gulp.task('bump-patch', bumpTask('patch')); gulp.task('bump-patch', bumpTask('patch'));
gulp.task('bump-minor', bumpTask('minor')); gulp.task('bump-minor', bumpTask('minor'));
gulp.task('bump-major', bumpTask('major')); gulp.task('bump-major', bumpTask('major'));
@ -242,7 +242,7 @@ gulp.task('git-commit', function() {
gulp.task('git-tag', function() { gulp.task('git-tag', function() {
var tag = 'v' + getVersion(); var tag = 'v' + getVersion();
util.log('Tagging as: ' + util.colors.cyan(tag)); util.log('Tagging as: ' + util.colors.cyan(tag));
git.tag(tag, 'Version ' + getVersion()); git.tag(tag, 'Version ' + getVersion()).end();
}); });
gulp.task('git-push', function() { gulp.task('git-push', function() {
@ -250,18 +250,18 @@ gulp.task('git-push', function() {
}); });
function releaseTask(importance) { function releaseTask(importance) {
return function() { return function(cb) {
return runSequence( runSequence(
'bump-' + importance, 'bump-' + importance,
'default', 'default',
'git-add', 'git-add',
'git-commit', 'git-commit',
'git-tag', 'git-tag',
'git-push'); 'git-push',
cb);
}; };
} }
gulp.task('release', releaseTask('patch')); gulp.task('patch', releaseTask('patch'));
gulp.task('release-patch', releaseTask('patch')); gulp.task('minor', releaseTask('minor'));
gulp.task('release-minor', releaseTask('minor')); gulp.task('major', releaseTask('major'));
gulp.task('release-major', releaseTask('major'));

View File

@ -1,6 +1,6 @@
{ {
"name": "stackedit", "name": "stackedit",
"version": "4.1.1", "version": "4.1.2",
"description": "StackEdit is a free, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.", "description": "StackEdit is a free, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.",
"dependencies": { "dependencies": {
"bootstrap": "3.0.3", "bootstrap": "3.0.3",

View File

@ -1,6 +1,6 @@
{ {
"name": "stackedit", "name": "stackedit",
"version": "4.1.1", "version": "4.1.2",
"private": true, "private": true,
"description": "StackEdit is a free, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.", "description": "StackEdit is a free, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.",
"main": "res/main.js", "main": "res/main.js",

View File

@ -1,5 +1,5 @@
CACHE MANIFEST CACHE MANIFEST
#Date Thu Aug 28 2014 00:16:44 #Date Sun Aug 31 2014 21:35:18 GMT+0100 (IST)
CACHE: CACHE:
. .
@ -9,6 +9,23 @@ viewer
# start_inject_resources # start_inject_resources
res-min/main.js res-min/main.js
res-min/require.js res-min/require.js
res-min/img/button.svg
res-min/img/code-block.png
res-min/img/comments.png
res-min/img/conflict.png
res-min/img/diagram.png
res-min/img/gittip.png
res-min/img/icons.png
res-min/img/icons2x.png
res-min/img/live-preview.png
res-min/img/logo.svg
res-min/img/math.png
res-min/img/menu-icon.png
res-min/img/menu.png
res-min/img/publish.png
res-min/img/stackedit-32.ico
res-min/img/syntax-highlighting.gif
res-min/img/toc.gif
res-min/font/PTSans-Bold-webfont.woff res-min/font/PTSans-Bold-webfont.woff
res-min/font/PTSans-BoldItalic-webfont.woff res-min/font/PTSans-BoldItalic-webfont.woff
res-min/font/PTSans-Italic-webfont.woff res-min/font/PTSans-Italic-webfont.woff
@ -29,23 +46,6 @@ res-min/font/fontello.eot
res-min/font/fontello.svg res-min/font/fontello.svg
res-min/font/fontello.ttf res-min/font/fontello.ttf
res-min/font/fontello.woff res-min/font/fontello.woff
res-min/img/button.svg
res-min/img/code-block.png
res-min/img/comments.png
res-min/img/conflict.png
res-min/img/diagram.png
res-min/img/gittip.png
res-min/img/icons.png
res-min/img/icons2x.png
res-min/img/live-preview.png
res-min/img/logo.svg
res-min/img/math.png
res-min/img/menu-icon.png
res-min/img/menu.png
res-min/img/publish.png
res-min/img/stackedit-32.ico
res-min/img/syntax-highlighting.gif
res-min/img/toc.gif
res-min/themes/base.css res-min/themes/base.css
res-min/themes/blue.css res-min/themes/blue.css
res-min/themes/default.css res-min/themes/default.css
@ -409,10 +409,10 @@ libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFiveSym/Regular/Main.js
libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Bold/Main.js libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Bold/Main.js
libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Regular/All.js libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Regular/All.js
libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Regular/Main.js libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Regular/Main.js
libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/All.js
libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/Main.js
libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/All.js libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/All.js
libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/Main.js libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/Main.js
libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/All.js
libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/Main.js
libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Bold/Main.js libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Bold/Main.js
libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/All.js libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/All.js
libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/Main.js libs/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/Main.js

View File

@ -4637,7 +4637,10 @@ function diff_match_patch() {
delete i.pdfPageSize, delete i.sshProxy, localStorage.settings = JSON.stringify(i)), delete i.pdfPageSize, delete i.sshProxy, localStorage.settings = JSON.stringify(i)),
o = "v20"), "v20" == o && (e.has(localStorage, "settings") && (i = JSON.parse(localStorage.settings), o = "v20"), "v20" == o && (e.has(localStorage, "settings") && (i = JSON.parse(localStorage.settings),
delete i.markdownMimeType, localStorage.settings = JSON.stringify(i)), o = "v21"), delete i.markdownMimeType, localStorage.settings = JSON.stringify(i)), o = "v21"),
localStorage.version = o, localStorage; "v21" == o && (e.has(localStorage, "settings") && (i = JSON.parse(localStorage.settings),
i.template && (i.template = i.template.replace("https://stackedit.io/", "https://cdn.stackedit.io/latest/")),
localStorage.settings = JSON.stringify(i)), o = "v22"), localStorage.version = o,
localStorage;
}), function(e) { }), function(e) {
var t; var t;
"function" == typeof define ? define("xregexp", e) : "object" == typeof exports ? (t = e(), "function" == typeof define ? define("xregexp", e) : "object" == typeof exports ? (t = e(),
@ -6812,9 +6815,9 @@ var saveAs = saveAs || "undefined" != typeof navigator && navigator.msSaveOrOpen
}, utils; }, utils;
}), define("constants", [], function() { }), define("constants", [], function() {
var e = {}; var e = {};
return e.VERSION = "4.1.1", e.MAIN_URL = "https://stackedit.io/", e.GOOGLE_ANALYTICS_ACCOUNT_ID = "UA-39556145-1", return e.VERSION = "4.1.2", e.MAIN_URL = "https://stackedit.io/", e.CDN_URL = "https://cdn.stackedit.io/latest/",
e.GOOGLE_API_KEY = "AIzaSyAeCU8CGcSkn0z9js6iocHuPBX4f_mMWkw", e.GOOGLE_DRIVE_APP_ID = "241271498917", e.GOOGLE_ANALYTICS_ACCOUNT_ID = "UA-39556145-1", e.GOOGLE_API_KEY = "AIzaSyAeCU8CGcSkn0z9js6iocHuPBX4f_mMWkw",
e.DROPBOX_APP_KEY = "lq6mwopab8wskas", e.DROPBOX_APP_SECRET = "851fgnucpezy84t", e.GOOGLE_DRIVE_APP_ID = "241271498917", e.DROPBOX_APP_KEY = "lq6mwopab8wskas", e.DROPBOX_APP_SECRET = "851fgnucpezy84t",
e.DROPBOX_RESTRICTED_APP_KEY = "sw0hlixhr8q1xk0", e.DROPBOX_RESTRICTED_APP_SECRET = "1r808p2xygs6lbg", e.DROPBOX_RESTRICTED_APP_KEY = "sw0hlixhr8q1xk0", e.DROPBOX_RESTRICTED_APP_SECRET = "1r808p2xygs6lbg",
e.BITLY_ACCESS_TOKEN = "317e033bfd48cf31155a68a536b1860013b09c4c", e.DEFAULT_FILE_TITLE = "Title", e.BITLY_ACCESS_TOKEN = "317e033bfd48cf31155a68a536b1860013b09c4c", e.DEFAULT_FILE_TITLE = "Title",
e.DEFAULT_FOLDER_NAME = "New folder", e.GDRIVE_DEFAULT_FILE_TITLE = "New Markdown document", e.DEFAULT_FOLDER_NAME = "New folder", e.GDRIVE_DEFAULT_FILE_TITLE = "New Markdown document",
@ -6864,7 +6867,7 @@ var saveAs = saveAs || "undefined" != typeof navigator && navigator.msSaveOrOpen
gdriveFullAccess: !0, gdriveFullAccess: !0,
dropboxFullAccess: !0, dropboxFullAccess: !0,
githubFullAccess: !0, githubFullAccess: !0,
template: [ "<!DOCTYPE html>", "<html>", "<head>", '<meta charset="utf-8">', "<title><%= documentTitle %></title>", '<link rel="stylesheet" href="' + t.MAIN_URL + 'res-min/themes/base.css" />', '<script type="text/javascript" src="' + t.MAIN_URL + 'libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>', "</head>", '<body><div class="container"><%= documentHTML %></div></body>', "</html>" ].join("\n"), template: [ "<!DOCTYPE html>", "<html>", "<head>", '<meta charset="utf-8">', "<title><%= documentTitle %></title>", '<link rel="stylesheet" href="' + t.CDN_URL + 'res-min/themes/base.css" />', '<script type="text/javascript" src="' + t.CDN_URL + 'libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>', "</head>", '<body><div class="container"><%= documentHTML %></div></body>', "</html>" ].join("\n"),
pdfTemplate: [ "<!DOCTYPE html>", "<html>", "<head>", '<meta charset="utf-8">', "<title><%= documentTitle %></title>", '<link rel="stylesheet" href="http://localhost/res-min/themes/base.css" />', '<script type="text/x-mathjax-config">', 'MathJax.Hub.Config({ messageStyle: "none" });', "</script>", '<script type="text/javascript" src="http://localhost/libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>', "</head>", "<body><%= documentHTML %></body>", "</html>" ].join("\n"), pdfTemplate: [ "<!DOCTYPE html>", "<html>", "<head>", '<meta charset="utf-8">', "<title><%= documentTitle %></title>", '<link rel="stylesheet" href="http://localhost/res-min/themes/base.css" />', '<script type="text/x-mathjax-config">', 'MathJax.Hub.Config({ messageStyle: "none" });', "</script>", '<script type="text/javascript" src="http://localhost/libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>', "</head>", "<body><%= documentHTML %></body>", "</html>" ].join("\n"),
pdfOptions: [ "{", ' "marginTop": 25,', ' "marginRight": 25,', ' "marginBottom": 25,', ' "marginLeft": 25,', ' "pageSize": "A4"', "}" ].join("\n"), pdfOptions: [ "{", ' "marginTop": 25,', ' "marginRight": 25,', ' "marginBottom": 25,', ' "marginLeft": 25,', ' "pageSize": "A4"', "}" ].join("\n"),
extensionSettings: {} extensionSettings: {}

View File

@ -2,6 +2,7 @@ define([], function() {
var constants = {}; var constants = {};
constants.VERSION = "4.1.2"; constants.VERSION = "4.1.2";
constants.MAIN_URL = "https://stackedit.io/"; constants.MAIN_URL = "https://stackedit.io/";
constants.CDN_URL = "https://cdn.stackedit.io/latest/";
constants.GOOGLE_ANALYTICS_ACCOUNT_ID = "UA-39556145-1"; constants.GOOGLE_ANALYTICS_ACCOUNT_ID = "UA-39556145-1";
constants.GOOGLE_API_KEY = "AIzaSyAeCU8CGcSkn0z9js6iocHuPBX4f_mMWkw"; constants.GOOGLE_API_KEY = "AIzaSyAeCU8CGcSkn0z9js6iocHuPBX4f_mMWkw";
constants.GOOGLE_DRIVE_APP_ID = "241271498917"; constants.GOOGLE_DRIVE_APP_ID = "241271498917";

View File

@ -26,8 +26,8 @@ define([
'<head>', '<head>',
'<meta charset="utf-8">', '<meta charset="utf-8">',
'<title><%= documentTitle %></title>', '<title><%= documentTitle %></title>',
'<link rel="stylesheet" href="' + constants.MAIN_URL + 'res-min/themes/base.css" />', '<link rel="stylesheet" href="' + constants.CDN_URL + 'res-min/themes/base.css" />',
'<script type="text/javascript" src="' + constants.MAIN_URL + 'libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>', '<script type="text/javascript" src="' + constants.CDN_URL + 'libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>',
'</head>', '</head>',
'<body><div class="container"><%= documentHTML %></div></body>', '<body><div class="container"><%= documentHTML %></div></body>',
'</html>' '</html>'

View File

@ -265,6 +265,15 @@ define([
version = "v21"; version = "v21";
} }
localStorage.version = version; if(version == "v21") {
if(_.has(localStorage, 'settings')) {
settings = JSON.parse(localStorage.settings);
settings.template && (settings.template = settings.template.replace('https://stackedit.io/', 'https://cdn.stackedit.io/latest/'));
localStorage.settings = JSON.stringify(settings);
}
version = "v22";
}
localStorage.version = version;
return localStorage; return localStorage;
}); });