Added zip task

This commit is contained in:
jos 2014-05-31 21:01:30 +02:00
parent 286c55fb40
commit ff6e54b715
6 changed files with 20 additions and 36 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
build
downloads
node_modules
*.zip

View File

@ -12,3 +12,4 @@ component.json
Jakefile.js
.npmignore
.gitignore
*.zip

View File

@ -1,13 +1,14 @@
# JSON Editor Online - History
# JSON Editor - History
http://jsoneditoronline.org
https://github.com/josdejong/jsoneditor
## not yet released, version 3.0.0
## 2014-05-31, version 3.0.0
- Large code reorganization.
- Editor must be loaded as `new JSONEditor(...)` instead of
`new jsoneditor.JSONEditor(...)`.
- Large code reorganization.
- Web application has been moved to another project.
## 2014-01-03, version 2.3.6

6
NOTICE
View File

@ -1,7 +1,7 @@
JSON Editor Online
http://jsoneditoronline.org
JSON Editor
https://github.com/josdejong/jsoneditor
Copyright (C) 2011-2013 Jos de Jong
Copyright (C) 2011-2014 Jos de Jong
Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -1,10 +1,11 @@
# JSON Editor Online
# JSON Editor
https://github.com/josdejong/jsoneditor
http://jsoneditoronline.org/
### Description
JSON Editor Online is a web-based tool to view, edit, and format JSON.
JSON Editor is a web-based tool to view, edit, and format JSON.
It has various modes such as a tree editor, a code editor, and a plain text
editor.

View File

@ -9,6 +9,7 @@ var fs = require('fs'),
merge = require('merge-stream'),
mkdirp = require('mkdirp'),
webpack = require('webpack'),
archiver = require('archiver'),
uglify = require('uglify-js');
var ENTRY = './src/js/JSONEditor.js',
@ -161,33 +162,12 @@ gulp.task('asset-jsonlint', ['asset-clean'], function (done) {
gulp.task('build-assets', ['asset-clean', 'asset-ace', 'asset-jsonlint'], function () {});
// TODO: create zip file?
//gulp.task('zip', ['bundle', 'minify'], function () {
// var pkg = 'jsoneditor-' + require('./package.json').version;
// var file = BUILD + pkg + '.zip';
//
// var zip = require('gulp-zip');
//
// gulp.task('default', function () {
// gulp.src([
// 'README.md',
// 'NOTICE',
// 'LICENSE',
// 'HISTORY.md',
// JSONEDITOR_JS,
// JSONEDITOR_CSS,
// JSONEDITOR_MIN_JS,
// JSONEDITOR_MAP_JS,
// JSONEDITOR_MIN_CSS,
// 'img/*.*',
// 'asset/**/*.*',
// 'docs/**/*.*',
// 'examples/**/*.*'
// ])
// .pipe(zip(file))
// .pipe(gulp.dest('.'));
// });
//});
// TODO: zip file using archiver
var pkg = 'jsoneditor-' + require('./package.json').version + '.zip';
gulp.task('zip', shell.task([
'zip ' + pkg + ' ' +
'README.md NOTICE LICENSE HISTORY.md jsoneditor.js jsoneditor.css jsoneditor.min.js jsoneditor.min.css jsoneditor.map img asset docs examples -r '
]));
// The default task (called when you run `gulp`)
gulp.task('default', ['bundle', 'minify']);