mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
834d2303a6
Builds are deployed to prebuilt/dist an prebuilt/module branches.
38 lines
980 B
JavaScript
38 lines
980 B
JavaScript
/*
|
|
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
|
* http://paperjs.org/
|
|
*
|
|
* Copyright (c) 2011 - 2016, Juerg Lehni & Jonathan Puckey
|
|
* http://scratchdisk.com/ & http://jonathanpuckey.com/
|
|
*
|
|
* Distributed under the MIT license. See LICENSE file for details.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
var gulp = require('gulp'),
|
|
del = require('del'),
|
|
merge = require('merge-stream'),
|
|
zip = require('gulp-zip');
|
|
|
|
gulp.task('dist', ['minify', 'docs', 'clean:dist'], function() {
|
|
return merge(
|
|
gulp.src([
|
|
'dist/paper-full*.js',
|
|
'dist/paper-core*.js',
|
|
'LICENSE.txt',
|
|
'examples/**/*',
|
|
], { base: '.' }),
|
|
gulp.src([
|
|
'dist/docs/**/*'
|
|
], { base: 'dist' })
|
|
)
|
|
.pipe(zip('paperjs.zip'))
|
|
.pipe(gulp.dest('dist'));
|
|
});
|
|
|
|
gulp.task('clean:dist', function() {
|
|
return del([
|
|
'dist/paperjs.zip'
|
|
]);
|
|
});
|