Added zip task
This commit is contained in:
parent
286c55fb40
commit
ff6e54b715
|
@ -2,3 +2,4 @@
|
||||||
build
|
build
|
||||||
downloads
|
downloads
|
||||||
node_modules
|
node_modules
|
||||||
|
*.zip
|
|
@ -12,3 +12,4 @@ component.json
|
||||||
Jakefile.js
|
Jakefile.js
|
||||||
.npmignore
|
.npmignore
|
||||||
.gitignore
|
.gitignore
|
||||||
|
*.zip
|
|
@ -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
|
- Editor must be loaded as `new JSONEditor(...)` instead of
|
||||||
`new jsoneditor.JSONEditor(...)`.
|
`new jsoneditor.JSONEditor(...)`.
|
||||||
- Large code reorganization.
|
- Web application has been moved to another project.
|
||||||
|
|
||||||
|
|
||||||
## 2014-01-03, version 2.3.6
|
## 2014-01-03, version 2.3.6
|
||||||
|
|
6
NOTICE
6
NOTICE
|
@ -1,7 +1,7 @@
|
||||||
JSON Editor Online
|
JSON Editor
|
||||||
http://jsoneditoronline.org
|
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");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
# JSON Editor Online
|
# JSON Editor
|
||||||
|
https://github.com/josdejong/jsoneditor
|
||||||
http://jsoneditoronline.org/
|
http://jsoneditoronline.org/
|
||||||
|
|
||||||
|
|
||||||
### Description
|
### 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
|
It has various modes such as a tree editor, a code editor, and a plain text
|
||||||
editor.
|
editor.
|
||||||
|
|
||||||
|
|
34
gulpfile.js
34
gulpfile.js
|
@ -9,6 +9,7 @@ var fs = require('fs'),
|
||||||
merge = require('merge-stream'),
|
merge = require('merge-stream'),
|
||||||
mkdirp = require('mkdirp'),
|
mkdirp = require('mkdirp'),
|
||||||
webpack = require('webpack'),
|
webpack = require('webpack'),
|
||||||
|
archiver = require('archiver'),
|
||||||
uglify = require('uglify-js');
|
uglify = require('uglify-js');
|
||||||
|
|
||||||
var ENTRY = './src/js/JSONEditor.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 () {});
|
gulp.task('build-assets', ['asset-clean', 'asset-ace', 'asset-jsonlint'], function () {});
|
||||||
|
|
||||||
// TODO: create zip file?
|
// TODO: zip file using archiver
|
||||||
//gulp.task('zip', ['bundle', 'minify'], function () {
|
var pkg = 'jsoneditor-' + require('./package.json').version + '.zip';
|
||||||
// var pkg = 'jsoneditor-' + require('./package.json').version;
|
gulp.task('zip', shell.task([
|
||||||
// var file = BUILD + pkg + '.zip';
|
'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 '
|
||||||
// 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('.'));
|
|
||||||
// });
|
|
||||||
//});
|
|
||||||
|
|
||||||
// The default task (called when you run `gulp`)
|
// The default task (called when you run `gulp`)
|
||||||
gulp.task('default', ['bundle', 'minify']);
|
gulp.task('default', ['bundle', 'minify']);
|
||||||
|
|
Loading…
Reference in New Issue