mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
refactor build as components, wip: gathering js, css, images, ...
This commit is contained in:
21
resources/gulp/components/authentication.js
Normal file
21
resources/gulp/components/authentication.js
Normal file
@@ -0,0 +1,21 @@
|
||||
var gulp = require('gulp');
|
||||
var config = require('../config.js');
|
||||
var utils = require('../utils.js');
|
||||
|
||||
gulp.task('copy-authentication-images', function(){
|
||||
return gulp.src([config.paths.src + 'authentication/images/**/*'])
|
||||
.pipe(gulp.dest( config.paths.build + 'authentication/images'));
|
||||
});
|
||||
gulp.task('build-authentication-css', function(){
|
||||
return utils.buildCssGroup([
|
||||
config.paths.src + 'authentication/styles/main.scss'
|
||||
], 'authentication', 'authentication/css/');
|
||||
});
|
||||
|
||||
gulp.task('build-authentication', ['copy-authentication-images', 'build-authentication-css'], function(){
|
||||
var authenticationGroup = [
|
||||
config.paths.vendors + 'requirejs/require.js',
|
||||
config.paths.dist + 'scripts/apps/login/home/config.js'
|
||||
];
|
||||
return utils.buildJsGroup(authenticationGroup, 'authentication', 'authentication/js');
|
||||
});
|
Reference in New Issue
Block a user