2016-01-23 12:26:56 -05:00
|
|
|
/*
|
|
|
|
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
|
|
|
* http://paperjs.org/
|
|
|
|
*
|
2020-05-23 16:24:42 -04:00
|
|
|
* Copyright (c) 2011 - 2020, Jürg Lehni & Jonathan Puckey
|
|
|
|
* http://juerglehni.com/ & https://puckey.studio/
|
2016-01-23 12:26:56 -05:00
|
|
|
*
|
|
|
|
* Distributed under the MIT license. See LICENSE file for details.
|
|
|
|
*
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
var gulp = require('gulp'),
|
2016-01-29 20:56:05 -05:00
|
|
|
del = require('del'),
|
2016-01-23 12:26:56 -05:00
|
|
|
merge = require('merge-stream'),
|
|
|
|
zip = require('gulp-zip');
|
|
|
|
|
2016-07-09 13:48:02 -04:00
|
|
|
gulp.task('dist', ['build', 'minify', 'docs']);
|
|
|
|
|
|
|
|
gulp.task('zip', ['clean:zip', 'dist'], function() {
|
2016-01-23 12:26:56 -05:00
|
|
|
return merge(
|
|
|
|
gulp.src([
|
|
|
|
'dist/paper-full*.js',
|
|
|
|
'dist/paper-core*.js',
|
2018-12-03 07:53:30 -05:00
|
|
|
'dist/paper.d.ts',
|
2019-11-07 06:12:14 -05:00
|
|
|
'dist/paper-core.d.ts',
|
2017-01-01 08:40:58 -05:00
|
|
|
'dist/node/**/*',
|
2016-01-23 12:26:56 -05:00
|
|
|
'LICENSE.txt',
|
|
|
|
'examples/**/*',
|
|
|
|
], { base: '.' }),
|
|
|
|
gulp.src([
|
|
|
|
'dist/docs/**/*'
|
|
|
|
], { base: 'dist' })
|
|
|
|
)
|
2016-01-29 20:56:05 -05:00
|
|
|
.pipe(zip('paperjs.zip'))
|
2016-01-23 12:26:56 -05:00
|
|
|
.pipe(gulp.dest('dist'));
|
|
|
|
});
|
2016-01-29 20:56:05 -05:00
|
|
|
|
2016-07-09 13:48:02 -04:00
|
|
|
gulp.task('clean:zip', function() {
|
2016-01-29 20:56:05 -05:00
|
|
|
return del([
|
|
|
|
'dist/paperjs.zip'
|
|
|
|
]);
|
|
|
|
});
|