mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-28 01:28:42 +08:00
1.11.2
This commit is contained in:
parent
350e065575
commit
33a9234d9c
5 changed files with 55 additions and 6765 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -18,6 +18,8 @@
|
|||
/build/local
|
||||
/build/dist
|
||||
/build/tmp
|
||||
/build/docker
|
||||
/dist
|
||||
/data
|
||||
.DS_Store
|
||||
/tests/fix.php
|
||||
|
|
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
version: '2'
|
||||
services:
|
||||
node:
|
||||
image: node:8.4-alpine
|
||||
working_dir: /usr/app
|
||||
command: sh -c 'yarn install && yarn global add gulp@3.9.1 && gulp all:docker'
|
||||
volumes:
|
||||
- ./dev:/usr/app/dev
|
||||
- ./rainloop:/usr/app/rainloop
|
||||
- ./assets:/usr/app/assets
|
||||
- ./vendors:/usr/app/vendors
|
||||
- ./build/owncloud:/usr/app/build/owncloud
|
||||
- ./dist:/usr/app/dist
|
||||
|
||||
- ./.eslintrc.js:/usr/app/.eslintrc.js
|
||||
- ./gulpfile.js:/usr/app/gulpfile.js
|
||||
- ./index.php:/usr/app/index.php
|
||||
- ./package.json:/usr/app/package.json
|
||||
- ./webpack.config.builder.js:/usr/app/webpack.config.builder.js
|
||||
- ./webpack.config.js:/usr/app/webpack.config.js
|
||||
- ./yarn.lock:/usr/app/yarn.lock
|
||||
|
||||
- ./build/docker/node_modules:/usr/app/node_modules
|
||||
- ./build/docker/tmp:/tmp
|
61
gulpfile.js
61
gulpfile.js
|
@ -130,37 +130,6 @@ function copyFile(sFile, sNewFile, callback)
|
|||
callback();
|
||||
}
|
||||
|
||||
function signFile(sFile, callback)
|
||||
{
|
||||
var exec = require('child_process').exec;
|
||||
exec('gpg2 --openpgp -u 87DA4591 -a -b ' + sFile, function(err) {
|
||||
if (err) {
|
||||
gutil.log('gpg error: skip');
|
||||
}
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function signFileTask(callback) {
|
||||
if (argv.sign)
|
||||
{
|
||||
signFile(cfg.destPath + cfg.zipFile, function() {
|
||||
if (cfg.zipFileShort)
|
||||
{
|
||||
signFile(cfg.destPath + cfg.zipFileShort, callback);
|
||||
}
|
||||
else
|
||||
{
|
||||
callback();
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
callback();
|
||||
}
|
||||
};
|
||||
|
||||
cfg.paths.globjs = 'dev/**/*.js';
|
||||
cfg.paths.static = 'rainloop/v/' + cfg.devVersion + '/static/';
|
||||
cfg.paths.staticJS = 'rainloop/v/' + cfg.devVersion + '/static/js/';
|
||||
|
@ -521,7 +490,13 @@ gulp.task('rainloop:shortname', ['rainloop:zip'], function(callback) {
|
|||
copyFile(cfg.destPath + cfg.zipFile, cfg.destPath + cfg.zipFileShort, callback);
|
||||
});
|
||||
|
||||
gulp.task('rainloop:sign', ['rainloop:shortname'], signFileTask);
|
||||
gulp.task('rainloop:copy-dist', ['rainloop:shortname'], function(callback) {
|
||||
var newPath = cfg.destPath.replace('build/dist/releases', 'dist/releases');
|
||||
fs.mkdirSync(newPath, '0777', true);
|
||||
copyFile(cfg.destPath + cfg.zipFile, newPath + cfg.zipFile, function() {
|
||||
copyFile(cfg.destPath + cfg.zipFileShort, newPath + cfg.zipFileShort, callback);
|
||||
});
|
||||
});
|
||||
|
||||
// build (OwnCloud)
|
||||
gulp.task('rainloop:owncloud:copy', function() {
|
||||
|
@ -594,7 +569,13 @@ gulp.task('rainloop:owncloud:shortname', ['rainloop:owncloud:zip'], function(cal
|
|||
copyFile(cfg.destPath + cfg.zipFile, cfg.destPath + cfg.zipFileShort, callback);
|
||||
});
|
||||
|
||||
gulp.task('rainloop:owncloud:sign', ['rainloop:owncloud:shortname'], signFileTask);
|
||||
gulp.task('rainloop:owncloud:copy-dist', ['rainloop:owncloud:shortname'], function(callback) {
|
||||
var newPath = cfg.destPath.replace('build/dist/releases', 'dist/releases');
|
||||
fs.mkdirSync(newPath, '0777', true);
|
||||
copyFile(cfg.destPath + cfg.zipFile, newPath + cfg.zipFile, function() {
|
||||
copyFile(cfg.destPath + cfg.zipFileShort, newPath + cfg.zipFileShort, callback);
|
||||
});
|
||||
});
|
||||
|
||||
// main
|
||||
gulp.task('moment', ['moment:locales']);
|
||||
|
@ -607,11 +588,13 @@ gulp.task('clean', ['js:clean', 'css:clean', 'assets:clean']);
|
|||
|
||||
gulp.task('rainloop:start', ['rainloop:copy', 'rainloop:setup']);
|
||||
|
||||
gulp.task('rainloop', ['rainloop:start', 'rainloop:zip', 'rainloop:clean', 'rainloop:shortname', 'rainloop:sign']);
|
||||
gulp.task('rainloop', ['rainloop:start', 'rainloop:zip', 'rainloop:clean', 'rainloop:shortname']);
|
||||
gulp.task('rainloop:docker', ['rainloop', 'rainloop:copy-dist']);
|
||||
|
||||
gulp.task('owncloud', ['rainloop:owncloud:copy',
|
||||
'rainloop:owncloud:copy-rainloop', 'rainloop:owncloud:copy-rainloop:clean',
|
||||
'rainloop:owncloud:setup', 'rainloop:owncloud:zip', 'rainloop:owncloud:clean', 'rainloop:owncloud:shortname', 'rainloop:owncloud:sign']);
|
||||
'rainloop:owncloud:setup', 'rainloop:owncloud:zip', 'rainloop:owncloud:clean', 'rainloop:owncloud:shortname']);
|
||||
gulp.task('owncloud:docker', ['owncloud', 'rainloop:owncloud:copy-dist']);
|
||||
|
||||
// default
|
||||
gulp.task('default', function(callback) {
|
||||
|
@ -629,6 +612,14 @@ gulp.task('watch', ['css:main', 'js:validate'], function() {
|
|||
// aliases
|
||||
gulp.task('build', ['rainloop']);
|
||||
|
||||
gulp.task('all', function(callback) {
|
||||
runSequence('rainloop', 'owncloud', callback);
|
||||
});
|
||||
|
||||
gulp.task('all:docker', function(callback) {
|
||||
runSequence('rainloop:docker', 'owncloud:docker', callback);
|
||||
});
|
||||
|
||||
gulp.task('d', ['default']);
|
||||
gulp.task('w', ['watch']);
|
||||
gulp.task('l', ['js:libs']);
|
||||
|
|
6727
package-lock.json
generated
6727
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -3,8 +3,8 @@
|
|||
"title": "RainLoop Webmail",
|
||||
"description": "Simple, modern & fast web-based email client",
|
||||
"private": true,
|
||||
"version": "1.11.1",
|
||||
"ownCloudVersion": "5.0.0",
|
||||
"version": "1.11.2",
|
||||
"ownCloudVersion": "5.0.1",
|
||||
"homepage": "http://rainloop.net",
|
||||
"main": "gulpfile.js",
|
||||
"author": {
|
||||
|
@ -94,10 +94,10 @@
|
|||
"gulp-zip": "4.0.0",
|
||||
"ifvisible.js": "1.0.6",
|
||||
"jquery": "2.2.4",
|
||||
"jquery-backstretch": "2.1.16",
|
||||
"jquery-lazyload": "1.9.7",
|
||||
"jquery-mousewheel": "3.1.13",
|
||||
"jquery-scrollstop": "1.2.0",
|
||||
"jquery-backstretch": "2.1.16",
|
||||
"js-cookie": "2.1.4",
|
||||
"json-loader": "0.5.7",
|
||||
"json3": "3.3.2",
|
||||
|
|
Loading…
Reference in a new issue