Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Toolchain
sgc
Commits
7e0e102b
Commit
7e0e102b
authored
Dec 29, 2014
by
Philipp Nowinski
Browse files
[FEATURE] complete css setup
parent
751fa27b
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/templates/_gulpfile.js
View file @
7e0e102b
...
...
@@ -3,6 +3,9 @@
var
gulp
=
require
(
'
gulp
'
),
path
=
require
(
'
path
'
),
compass
=
require
(
'
gulp-compass
'
),
autoprefixer
=
require
(
'
gulp-autoprefixer
'
),
cssImport
=
require
(
'
gulp-cssimport
'
),
minifyCss
=
require
(
'
gulp-minify-css
'
),
argv
=
require
(
'
yargs
'
).
argv
,
extension
=
(
function
()
{
if
(
typeof
argv
.
ext
===
'
undefined
'
)
{
...
...
@@ -18,8 +21,12 @@ gulp.task('css', function() {
return
gulp
.
src
(
sassPath
+
'
/**/*.scss
'
)
.
pipe
(
compass
({
config_file
:
path
.
join
(
extensionPath
,
'
config.rb
'
),
sourcemap
:
true
,
css
:
cssPath
,
sass
:
sassPath
}))
.
pipe
(
cssImport
())
.
pipe
(
autoprefixer
())
.
pipe
(
minifyCss
())
.
pipe
(
gulp
.
dest
(
cssPath
));
});
app/templates/_package.json
View file @
7e0e102b
...
...
@@ -6,7 +6,11 @@
},
"devDependencies"
:
{
"gulp"
:
"^3.8.10"
,
"gulp-autoprefixer"
:
"^2.0.0"
,
"gulp-compass"
:
"^2.0.3"
,
"gulp-cssimport"
:
"^1.3.1"
,
"gulp-minify-css"
:
"^0.3.11"
,
"yargs"
:
"^1.3.3"
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment