# sass-composer-manifest

> A sass-composer plug-in to `@import` your dependencies from a .json manifest

Latest version **0.0.2** (published 2015-10-27) · 0 weekly downloads

## Install

```sh
npm install sass-composer-manifest
pnpm add sass-composer-manifest
yarn add sass-composer-manifest
bun add sass-composer-manifest
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-10-27 |
| First published | 2015-10-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | e-r-w |

## Links

- npm: https://www.npmjs.com/package/sass-composer-manifest
- npm.io page: https://npm.io/package/sass-composer-manifest

## Dependencies (1)

- [jsonfile](https://npm.io/package/jsonfile.md) ^2.2.3

## Recent versions

- 0.0.2 (latest) — 2015-10-27
- 0.0.1 — 2015-10-26

## README

# sass-composer-manifest

A sass-composer plug-in to `@import` your dependencies from a .json manifest

## usage

the plug-in will use the `"dependencies"` or `"sc:dependencies"` fields of the manifest to source npm packages, and `"locals"` or `"sc:locals"` for local files.

@ build time, specify the plug in before all others so that the `@import`ed files get your other plug-ins too:

```js

var composer = require('sass-composer');
var manifest = require('sass-composer-manifest');

//...

gulp.task('styles', function(){
  return composer({
    entry: 'styles.scss'
  })
    .use(manifest({
      manifest: './package.json'
    })) // always include manifest first!
    .use(composer.plugins.url({
       dir: './build',
       copy: true
    }))
    .compose()
    .pipe(vsource(name + '.css'))
    .pipe(vbuffer())
    .pipe(gulp.dest(SRC_DIRS.STYLES_BUILD))
    ;
});

```

in your package.json:

```json

{
  "name": "my-styles",
  "version": "0.0.1",
  "dependencies": {
    "foo": "^0.0.1"
  },
  "locals": [
    "bar.scss"
  ]
}

```

where `"locals"` are local files (paths relative to the manifest) to be `@import`ed. You can specify paths to find locals as well:

```json

{
  "name": "my-styles",
  "version": "0.0.1",
  "dependencies": {
    "foo": "^0.0.1"
  },
  "paths": [
    "./lib"
  ],
  "locals": [
    "bar.scss"
  ]
}

```

is the same as

```json

{
  "name": "my-styles",
  "version": "0.0.1",
  "dependencies": {
    "foo": "^0.0.1"
  },
  "locals": [
    "./lib/bar.scss"
  ]
}

```

---
_Source: https://npm.io/package/sass-composer-manifest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
