-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c3793e
commit bc3cb83
Showing
8 changed files
with
2,058 additions
and
18 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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# Changelog | ||
_Change is the essence._ | ||
|
||
## 1.1.0 | ||
* Remove all the `gls-` prefixes from the mixin files under the `library` folder and make prefix usage optional (`gls-` prefix still can ben use). | ||
|
||
## 0.0.1 | ||
* Changelog created! |
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
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 |
---|---|---|
@@ -1,13 +1,34 @@ | ||
const { series, src, dest, watch } = require("gulp"); | ||
const { series, src, dest } = require("gulp"); | ||
const concat = require("gulp-concat"); | ||
const replace = require("gulp-replace"); | ||
const header = require("gulp-header"); | ||
|
||
const rename = require("gulp-rename"); | ||
function gather_mixins(done) { | ||
return src(["scss/library/**/*.scss"]) | ||
.pipe(concat("_gerillass-prefix.scss")) | ||
.pipe(dest("scss")); | ||
done(); | ||
} | ||
|
||
function del_charset(done) { | ||
return src("scss/_gerillass-prefix.scss") | ||
.pipe(replace('@charset "UTF-8";', '')) | ||
.pipe(dest("scss")); | ||
done(); | ||
} | ||
|
||
function add_charset(done) { | ||
return src("scss/_gerillass-prefix.scss") | ||
.pipe(header('@charset "UTF-8";')) | ||
.pipe(dest("scss")); | ||
done(); | ||
} | ||
|
||
function namify(done) { | ||
return src("./scss/_gerillass.scss") | ||
.pipe(rename({ prefix: "_gls-", basename: "gerillass", extname: ".scss" })) | ||
.pipe(dest("./scss")); | ||
function add_prefix(done) { | ||
return src("scss/_gerillass-prefix.scss") | ||
.pipe(replace('@mixin ', "@mixin gls-")) | ||
.pipe(dest("scss")); | ||
done(); | ||
} | ||
|
||
exports.start = series(namify); | ||
exports.start = series(gather_mixins, del_charset, add_charset, add_prefix); |
Oops, something went wrong.