Skip to content

Commit

Permalink
Release v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pandao committed Jun 19, 2015
1 parent d50e13f commit 77c6107
Show file tree
Hide file tree
Showing 52 changed files with 1,953 additions and 1,473 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.sass-cache/
node_modules/
backup/
demo/
research/
test/
tests/
examples/*.map
*.bat
*.sh
Expand Down
18 changes: 17 additions & 1 deletion CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,20 @@ Releases v0.1.0, 115 mixins.
#### v0.1.1

- Added `bower.json` and registed bower package;
- Update `README.md`;
- Update `README.md`;

#### v0.2.0

- Modular division, change scss source files;
- Removed `src/prefixes.scss`;
- Perfect and fixed Flexbox supports;
- Fixed Flexbox properties;
- Added mixin `display-flex()` alias `flexbox()`;
- Added mixin `order()` alias `flex-order()`;
- Added mixin `justify-content()` alias `flex-justify()`;
- Added mixin `inline-flex()` alias `inline-flexbox()`;
- Added mixin `flex-inline()`;
- Change `dist/prefixes.scss` header comment to inline;
- Update `Gulpfile.js`, `package.json` and `bower.json`;
- Update `README.md` and `CHANGE.md`;
- Update Examples;
59 changes: 41 additions & 18 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,67 @@

var gulp = require("gulp");
var gutil = require("gulp-util");
var sass = require("gulp-ruby-sass");
var sass = require("gulp-sass");
var rename = require("gulp-rename");
var notify = require("gulp-notify");
var header = require('gulp-header');
var concat = require("gulp-concat");
var dateFormat = require("dateformatter").format;
var pkg = require("./package.json");

var examplesTask = function(fileName, path, ext) {

path = path || "";
ext = ext || "scss";
pkg.name = "Prefixes.scss";
pkg.today = dateFormat;

var headerComment = ["/*!",
" * <%= pkg.name %> v<%= pkg.version %>",
" * @file <%= fileName(file) %> ",
" * @description <%= pkg.description %>",
" * @license MIT License",
" * @author <%= pkg.author %>",
" * {@link <%= pkg.homepage %>}",
" * @updateTime <%= pkg.today('Y-m-d') %>",
" */",
"\r\n"].join("\r\n");

var headerCommentInline = "/*! <%= pkg.name %> v<%= pkg.version %> | <%= pkg.description %> | Author: <%= pkg.author %> | Copyright (c) 2015 Pandao, MIT License | <%= pkg.homepage %> | <%=pkg.today('Y-m-d') %> */\r\n\r\n@charset \"UTF-8\";\r\n";


var examplesTask = function(files) {

return gulp.src(path + fileName + "." + ext)
.pipe(sass({ style: "nested", sourcemap: false })) //nested,compact,expanded,compressed
.pipe(gulp.dest("examples"))
.pipe(notify({ message: fileName + "." + ext + " task completed!" }));
return gulp.src("examples/" + files)
.pipe(sass({ outputStyle: "nested", sourcemap: false })) //nested,compact,expanded,compressed
.pipe(gulp.dest("examples/css"))
.pipe(notify({ message: "Examples task completed!" }));
};

gulp.task("scss", function() {
return gulp.src("src/prefixes.scss")
.pipe(rename("prefixes.scss"))
.pipe(gulp.dest("dist"))
.pipe(notify({ message: "prefixes.scss task completed!" }));
gulp.task("dist", function() {
return gulp.src("src/**/*.scss")
.pipe(concat("prefixes.scss"))
.pipe(gulp.dest("dist"))
.pipe(header(headerCommentInline, {pkg : pkg, fileName : function(file) {
var name = file.path.split(file.base + "\\");
return name[1];
}}))
.pipe(gulp.dest("dist"))
.pipe(notify({ message: "prefixes.scss task completed!" }));
});

gulp.task("sass", function() {
return examplesTask("*", "examples/**/", "sass");
return examplesTask("*.sass");
});

gulp.task("examples", function() {
return examplesTask("*", "examples/**/");
return examplesTask("**/*.scss");
});

gulp.task("watch", function() {
gulp.watch("src/**/*.scss", ["scss"]);
gulp.watch("src/**/*.scss", ["dist"]);
gulp.watch("examples/**/*.sass", ["sass"]);
gulp.watch("examples/**/*.scss", ["examples"]);
});

gulp.task("default", function() {
gulp.run("scss");
gulp.run("dist");
gulp.run("sass");
gulp.run("examples");
});
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Prefixes.scss

CSS(3) prefixes mixins library for Sass/Scss. Free installation, custom you need css prefixes.
CSS(3) prefixes mixins library for Sass/Scss, Custom you need CSS prefixes.

#### Install

Expand Down
5 changes: 3 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "prefixes.scss",
"version": "0.1.1",
"version": "0.2.0",
"homepage": "https://github.com/pandao/prefixes.scss",
"authors": [
"pandao <[email protected]>"
],
"description": "CSS(3) prefixes mixins library for Sass/Scss. Free installation, custom you need css prefixes.",
"description": "CSS(3) prefixes mixins library for Sass/Scss, Custom you need CSS prefixes.",
"keywords": [
"css",
"prefix",
Expand All @@ -18,6 +18,7 @@
"**/.*",
"node_modules",
"bower_components",
"research",
"test",
"tests"
]
Expand Down
Loading

0 comments on commit 77c6107

Please sign in to comment.