Gathering detailed insights and metrics for @yummies/babel-plugin-yummies
Gathering detailed insights and metrics for @yummies/babel-plugin-yummies
Gathering detailed insights and metrics for @yummies/babel-plugin-yummies
Gathering detailed insights and metrics for @yummies/babel-plugin-yummies
[DEPRECATED] New project is called reBEM: https://github.com/rebem/
npm install @yummies/babel-plugin-yummies
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
71 Commits
1 Watchers
3 Branches
2 Contributors
Updated on Jan 23, 2016
Latest Version
1.1.0
Package Id
@yummies/babel-plugin-yummies@1.1.0
Size
5.22 kB
NPM Version
3.4.1
Node Version
5.1.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
7
Babel plugin that implements multilayer components inheritance for Yummies.
npm i -S @yummies/babel-plugin-yummies
.babelrc
:
1{ 2 … 3 "plugins": [ "@yummies/babel-plugin-yummies" ] 4}
require('#…')
s (which starts with #
symbol)layers
dirs array (defined in .yummies.yml
in the root of project) and collect a CHAIN of existing files in special orderrequire('#…')
with require('yummies').yummify(CHAIN)
fs:
.
└── src/
├── core-components/
│ └── example/
│ └── index.js
└── my-components/
└── example/
└── index.js
config:
1files: 2 main: index.js 3 4layers: 5 - src/core-components/ 6 - src/my-components/
source:
1import Example from '#example';
result:
1var Example = require('yummies').yummify([ 2 { 3 type: 'main', 4 module: require('./src/core-components/example/index.js') 5 }, 6 { 7 type: 'main', 8 module: require('./src/my-components/example/index.js') 9 } 10]);
fs:
.
└── src/
├── core-components/
│ └── example/
│ ├── index.js
│ └── styles.less
└── my-components/
└── example/
├── index.js
└── styles.less
config:
1files: 2 main: index.js 3 styles: styles.less 4 5layers: 6 - src/core-components/ 7 - src/my-components/
source:
1import Example from '#example';
result:
1var Example = require('yummies').yummify([ 2 { 3 type: 'main', 4 module: require('./src/core-components/example/index.js') 5 }, 6 { 7 type: 'styles', 8 module: require('./src/core-components/example/styles.less') 9 }, 10 { 11 type: 'main', 12 module: require('./src/my-components/example/index.js') 13 }, 14 { 15 type: 'styles', 16 module: require('./src/my-components/example/styles.less') 17 } 18]);
Resulted Class will have propTypes
static property with React propTypes collected and extended through layers.
fs:
.
└── src/
├── core-components/
│ └── example/
│ ├── index.js
│ └── prop-types.js
└── my-components/
└── example/
├── index.js
└── prop-types.js
config:
1files: 2 main: index.js 3 propTypes: prop-types.js 4 5layers: 6 - src/core-components/ 7 - src/my-components/
source:
1import Example from '#example';
result:
1var Example = require('yummies').yummify([ 2 { 3 type: 'main', 4 module: require('./src/core-components/example/index.js') 5 }, 6 { 7 type: 'propTypes', 8 module: require('./src/core-components/example/prop-types.js') 9 }, 10 { 11 type: 'main', 12 module: require('./src/my-components/example/index.js') 13 }, 14 { 15 type: 'propTypes', 16 module: require('./src/my-components/example/prop-types.js') 17 } 18]);
fs:
.
└── src/
├── core-components/
│ └── example/
│ ├── _type/
│ │ └── test/
│ │ └── index.js
│ ├── index.js
│ └── styles.less
└── my-components/
└── example/
├── _type/
│ └── test/
│ └── styles.less
├── index.js
└── styles.less
config:
1files: 2 main: index.js 3 styles: styles.less 4 5layers: 6 - src/core-components/ 7 - src/my-components/
source:
1import ExampleTypeTest from '#example?_type=test';
result:
1var ExampleTypeTest = require('yummies').yummify([ 2 { 3 type: 'main', 4 module: require('./src/core-components/example/index.js') 5 }, 6 { 7 type: 'styles', 8 module: require('./src/core-components/example/styles.less') 9 }, 10 { 11 type: 'main', 12 module: require('./src/my-components/example/index.js') 13 }, 14 { 15 type: 'styles', 16 module: require('./src/my-components/example/styles.less') 17 }, 18 { 19 type: 'main', 20 module: require('./src/core-components/example/_type/test/index.js') 21 }, 22 { 23 type: 'styles', 24 module: require('./src/my-components/example/_type/test/styles.less') 25 } 26]);
The same process as for single mod:
1import ExampleTypeTestSizeBig from '#example?_type=test&_size=big';
1import ExampleIndexOnly from '#example?-styles';
.yummifyRaw()
)1import ExampleRaw from '#example?raw';
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More