You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

better-base-template

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-base-template - npm Package Compare versions

Comparing version

to
1.0.7

src/core/mixins/generated/_media.scss

6

config.js

@@ -85,5 +85,5 @@ module.exports = {

enableTf: false,
tfFontFaces: false,
tfFontFaces: [],
tfEnableFontFamilyAlias: true,
tfFontFamilyAliases: false,
tfFontFamilyAliases: [],
tfFontFamilyAliasBreakpoints: true,

@@ -149,3 +149,3 @@ tfEnableFontSize: true,

tfEnableFontColor: true,
tfFontColors: false,
tfFontColors: [],
tfFontColorBreakpoints: false,

@@ -152,0 +152,0 @@ tfEnableLineHeight: true,

@@ -19,3 +19,3 @@ # Documentation

2) Require package and pass your configuration.
2) Require package and pass your configuration. For example in `index.js`
```javascript

@@ -27,4 +27,10 @@ const baseTemplate = require('better-base-template');

3) Import generated styles in your **SCSS**
3) Initialize better-base-template
```
node index
```
4) Import generated styles in your **SCSS**
```scss

@@ -208,3 +214,3 @@ @import 'path/to/node_modules/better-base-template/src/base-template';

- **Type** - two-dimensional `array`
- **Default value** - `false`
- **Default value** - `[]`
- **Template** - `[[font-family, path to font, font-weight - optional, font-style - optional], [...]]`

@@ -220,3 +226,3 @@ - **Description** - List for generating font-faces.

- **Type** - two-dimensional `array`
- **Default value** - `false`
- **Default value** - `[]`
- **Template** - `[[font-family, alias], [...]]`

@@ -286,3 +292,3 @@ - **Description** - List of font-family and it's aliases.

- **Type** - two-dimensional `array`
- **Default value** - `false`
- **Default value** - `[]`
- **Template** - `[[text color alias, color], [...]]`

@@ -289,0 +295,0 @@ - **Description** - List of text colors and it's aliases.

{
"name": "better-base-template",
"version": "1.0.6",
"description": "An awesome base-template generator.",
"version": "1.0.7",
"description": "An awesome base-template generator!",
"main": "./src/index.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -27,17 +27,25 @@ 'use strict';

if (typeof(value) === 'object') {
let valueParts = [];
if (Object.keys(value).length > 0) {
let valueParts = [];
for (let valuePart in value) {
let valuePartString = '';
for (let valuePart in value) {
let valuePartString = '';
if (typeof(value[valuePart]) === 'object') {
valuePartString = valuePartString.concat(Object.values(value[valuePart]).join(' '));
if (typeof(value[valuePart]) === 'object') {
valuePartString = valuePartString.concat(Object.values(value[valuePart]).join(' '));
} else {
valuePartString = value[valuePart];
}
valueParts.push(valuePartString);
}
if (valueParts.length > 1) {
value = valueParts.join(', ');
} else {
valuePartString = value[valuePart];
value = ''.concat(valueParts[0], ', ');
}
valueParts.push(valuePartString);
} else {
value = '[]';
}
value = valueParts.join(', ');
}

@@ -44,0 +52,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet