@seedcss/seed-publish
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "@seedcss/seed-publish", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Mixins that manage rendered CSS from modular importing", | ||
@@ -40,9 +40,7 @@ "main": "index.js", | ||
], | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"devDependencies": { | ||
"mkdirp": "^0.5.1", | ||
"node-sass": "^4.9.3", | ||
"seed-bistro": "^0.2.0" | ||
"sass-pathfinder": "^0.0.5", | ||
"seed-bistro": "^0.2.1" | ||
}, | ||
@@ -53,5 +51,3 @@ "publishConfig": { | ||
"prepublish": "npm run build", | ||
"postversion": "npm run build", | ||
"prepack": "npm run build", | ||
"gitHead": "8bf23e91822b26218c812f2ea845a0f33773a62a" | ||
"gitHead": "0749da9715a0e19c23feb2570c6c88583a1fce02" | ||
} |
@@ -1,6 +0,9 @@ | ||
# seed-publish [![Build Status](https://travis-ci.org/helpscout/seed-publish.svg?branch=master)](https://travis-ci.org/helpscout/seed-publish) [![npm version](https://badge.fury.io/js/%40seedcss%2Fseed-publish.svg)](https://badge.fury.io/js/%40seedcss%2Fseed-publish) | ||
# seed-publish | ||
Mixins that manage rendered CSS from modular importing | ||
[![npm version](https://badge.fury.io/js/%40seedcss%2Fseed-publish.svg)](https://badge.fury.io/js/%40seedcss%2Fseed-publish) | ||
> Mixins that manage rendered CSS from modular importing | ||
## Install | ||
``` | ||
@@ -14,24 +17,30 @@ npm install @seedcss/seed-publish --save | ||
## Basic Usage | ||
### SCSS | ||
This seed pack needs to be imported into your sass pipeline. Below is an example using Gulp: | ||
```javascript | ||
var gulp = require('gulp'); | ||
var sass = require('gulp-sass'); | ||
var pack = require('seed-publish'); | ||
const gulp = require("gulp"); | ||
const sass = require("gulp-sass"); | ||
const pathfinder = require("sass-pathfinder"); | ||
const pack = require("@seedcss/seed-publish"); | ||
gulp.task('sass', function () { | ||
return gulp.src('./sass/**/*.scss') | ||
.pipe(sass({ | ||
includePaths: pack | ||
})) | ||
.pipe(gulp.dest('./css')); | ||
gulp.task("sass", function() { | ||
return gulp | ||
.src("./sass/**/*.scss") | ||
.pipe( | ||
sass({ | ||
includePaths: pathfinder( | ||
// Other includePaths... | ||
pack | ||
) | ||
}) | ||
) | ||
.pipe(gulp.dest("./css")); | ||
}); | ||
``` | ||
Once that is setup, simply `@import` *seed-publish* as needed in your `.scss` file: | ||
Once that is setup, simply `@import` **seed-publish** as needed in your `.scss` file: | ||
@@ -42,1 +51,19 @@ ```scss | ||
``` | ||
## Options | ||
The following variables can be found in `_config.scss` | ||
```scss | ||
// publish :: Config | ||
// Global namespace | ||
@if not variable-exists(__seed-publish-list) { | ||
$__seed-publish-list: ( | ||
seed-publish: true | ||
) !global; | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13551
67
4
1