Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
nsaunders committed May 3, 2020
1 parent 5e1148d commit 984356b
Show file tree
Hide file tree
Showing 9 changed files with 1,089 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8.10.0
1 change: 1 addition & 0 deletions .nvmrc
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
language: node_js
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<p align="center">
<a href="https://hacss.io" target="_blank"><img width="256" src="https://raw.githubusercontent.com/hacss/assets/master/logos/hacss-black.svg"></a><br>
Compose Plugins
</p>

<p align="center">
<a href="https://travis-ci.org/hacss/hacss"><img src="https://img.shields.io/travis/hacss/compose-plugins/master.svg" alt="Build Status"></a>
<a href="https://github.com/hacss/hacss/releases"><img src="https://img.shields.io/npm/v/@hacss/compose-plugins.svg" alt="Latest Release"></a>
<a href="https://github.com/hacss/hacss/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/@hacss/compose-plugins.svg" alt="License"></a>
</p>

This can be used to create a plugin on the basis of other plugins.
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var compose = require("@hacss/compose-plugins");
var copy = require("@hacss/plugin-copy");
var del = require("@hacss/plugin-delete");

module.exports = function(spec) {
return compose(
del(Object.keys(spec)),
copy(spec),
);
};
Loading

0 comments on commit 984356b

Please sign in to comment.