lib-theme-contructor
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -14,2 +14,6 @@ const fs = require('fs-extra'); | ||
async function createTheme(opts) { | ||
if (!opts.out) { | ||
throw new Error('out option can\'t be empty'); | ||
} | ||
opts.options.palette = Object.assign({}, palette, opts.options.palette); | ||
@@ -16,0 +20,0 @@ opts.options.variables = Object.assign({}, variables, opts.options.variables); |
{ | ||
"name": "lib-theme-contructor", | ||
"version": "0.1.0", | ||
"description": "Theme constructor", | ||
"version": "0.2.0", | ||
"private": false, | ||
"description": "Theme constructor for lib-react-components", | ||
"keywords": [ | ||
@@ -18,10 +19,8 @@ "postcss", | ||
"type": "git", | ||
"url": "git+https://github.com/pentatonica/lib-theme-contructor.git" | ||
"url": "git+https://github.com/PeculiarVentures/react-components.git" | ||
}, | ||
"author": "Pentatonica.co", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/pentatonica/lib-theme-contructor/issues" | ||
"url": "https://github.com/PeculiarVentures/react-components/issues" | ||
}, | ||
"homepage": "https://github.com/pentatonica/lib-theme-contructor#readme", | ||
"homepage": "https://PeculiarVentures.github.io/react-components/", | ||
"devDependencies": { | ||
@@ -51,6 +50,7 @@ "assert": "^1.4.1", | ||
"files": [ | ||
"README.md", | ||
"LICENSE.md", | ||
"lib/" | ||
] | ||
], | ||
"author": "PeculiarVentures Team", | ||
"license": "AGPL-3.0", | ||
"gitHead": "7587bba68162bb492be64a3d8690b6baa7ee0de0" | ||
} |
@@ -1,13 +0,16 @@ | ||
# Lib theme constructor | ||
# `lib-theme-constructor` | ||
Theme constructor for [react components](https://www.npmjs.com/package/lib-react-components) | ||
This package contains a code for generate theme for the lib-react-components package. | ||
## Installation | ||
## Install | ||
```bash | ||
npm install lib-theme-contructor --D | ||
npm install --save-dev lib-theme-contructor | ||
``` | ||
## Configure | ||
## Usage | ||
### Prepare theme file | ||
```js | ||
@@ -22,4 +25,4 @@ // index.js | ||
name: 'theme-name', | ||
entry: path.join(__dirname, '../entry/path/to/index.sss'), | ||
out: path.join(__dirname, '../output/dir/name'), | ||
entry: path.join(__dirname, './entry/path/to/index.sss'), | ||
out: path.join(__dirname, './output/dir/name'), | ||
options: { | ||
@@ -58,3 +61,4 @@ palette: { | ||
## Run | ||
### Run theme file | ||
```bash | ||
@@ -64,7 +68,2 @@ node index.js | ||
Now in your `../output/dir/name` you have `theme-name.css` file with new theme. | ||
### Run test | ||
```bash | ||
npm run test | ||
``` | ||
Now in your `./output/dir/name` you have `theme-name.css` file with new CSS theme. |
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
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
46851
309
0
3
70
66