forked from mixitconf/mixit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds gulp and node configuration for Gradle
- Loading branch information
Showing
9 changed files
with
3,645 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"presets": ["es2015"], | ||
"retainLines": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,6 @@ build/ | |
.gradle/ | ||
classes/ | ||
out/ | ||
node/ | ||
node_modules/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
'use strict'; | ||
|
||
import gulp from 'gulp'; | ||
import gulpLoadPlugins from 'gulp-load-plugins'; | ||
import del from 'del'; | ||
import runSequence from 'run-sequence'; | ||
|
||
const $ = gulpLoadPlugins(); | ||
|
||
const paths = { | ||
main: 'src/main', | ||
tmp: 'build/.tmp', | ||
dist: { | ||
css : 'src/main/resources/static/css' | ||
} | ||
}; | ||
|
||
// Compile and automatically prefix stylesheets | ||
gulp.task('styles', () => { | ||
const AUTOPREFIXER_BROWSERS = [ | ||
'ie >= 10', | ||
'ie_mob >= 10', | ||
'ff >= 30', | ||
'chrome >= 34', | ||
'safari >= 7', | ||
'opera >= 23', | ||
'ios >= 7', | ||
'android >= 4.4', | ||
'bb >= 10' | ||
]; | ||
|
||
return gulp.src([`${paths.main}/sass/**/*.scss`]) | ||
.pipe($.newer(`${paths.tmp}/styles`)) | ||
.pipe($.sourcemaps.init()) | ||
.pipe($.sass()) | ||
.pipe($.autoprefixer(AUTOPREFIXER_BROWSERS)) | ||
.pipe(gulp.dest(`${paths.tmp}/styles`)) | ||
.pipe($.if('*.css', $.cssnano())) | ||
.pipe($.size({title: 'styles'})) | ||
.pipe($.sourcemaps.write('./')) | ||
.pipe(gulp.dest(`${paths.dist.css}`)); | ||
}); | ||
|
||
|
||
// Clean output directory | ||
gulp.task('clean', () => del([paths.tmp], {dot: true})); | ||
|
||
// Watch files for changes | ||
gulp.task('watch', ['default'], () => { | ||
gulp.watch([`${paths.main}/sass/**/*.scss`], ['styles']); | ||
}); | ||
|
||
// Build production files, the default task | ||
gulp.task('default', ['clean'], cb => | ||
runSequence( | ||
'styles', | ||
cb | ||
) | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "mixit", | ||
"version": "1.0.0", | ||
"description": "Site used to manage Mixit conference (Lyon - France)", | ||
"main": "index.js", | ||
"repository": "https://github.com/mix-it/mixit.git", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"babel-core": "^6.0.15", | ||
"babel-plugin-transform-es2015-modules-systemjs": "^6.9.0", | ||
"babel-preset-es2015": "^6.0.15", | ||
"del": "^2.2.2", | ||
"gulp": "^3.9.1", | ||
"gulp-autoprefixer": "^3.1.1", | ||
"gulp-cssnano": "^2.1.2", | ||
"gulp-if": "^2.0.2", | ||
"gulp-load-plugins": "^1.4.0", | ||
"gulp-newer": "^1.3.0", | ||
"gulp-sass": "^3.0.0", | ||
"gulp-size": "^2.1.0", | ||
"gulp-sourcemaps": "^1.9.1", | ||
"gulp-uncss": "^1.0.6", | ||
"run-sequence": "^1.2.2" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.mixit-menu-lang { | ||
height:18px!important; | ||
width:20px!important; | ||
padding:0!important; | ||
} | ||
|
||
.mixit-content { | ||
padding-top: 20px; | ||
} |
Oops, something went wrong.