feat: Add Be and tbd skill, also added Roadmap file

This commit is contained in:
2026-05-10 16:32:12 -04:00
parent 3500ade13f
commit 0bb8885802
29587 changed files with 10611695 additions and 0 deletions

3
Skills/@be/be/node_modules/join-component/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,3 @@
components
build
node_modules

5
Skills/@be/be/node_modules/join-component/History.md generated vendored Normal file
View File

@@ -0,0 +1,5 @@
1.1.0 / 2012-12-29
==================
* add Oxford comma support

14
Skills/@be/be/node_modules/join-component/Makefile generated vendored Normal file
View File

@@ -0,0 +1,14 @@
build: components index.js
@component build --dev
components: component.json
@component install --dev
clean:
rm -fr build components template.js
test:
@./node_modules/.bin/mocha --require should
.PHONY: clean test

54
Skills/@be/be/node_modules/join-component/Readme.md generated vendored Normal file
View File

@@ -0,0 +1,54 @@
# join
Join a list in a nice human friendly way.
## Installation
$ component install component/join
## API
- [join(arr)](#joinarr)
- [join(arr, str)](#joinarr-str)
- [join(arr, str) with Oxford comma](#joinarr-str-with-oxford-comma)
<a name=""></a>
<a name="joinarr"></a>
# join(arr)
should default to "and".
```js
join(['foo', 'bar']).should.equal('foo and bar');
```
<a name="joinarr-str"></a>
# join(arr, str)
should join.
```js
join([], 'and').should.equal('');
join(['foo'], 'and').should.equal('foo');
join(['foo', 'bar'], 'and').should.equal('foo and bar');
join(['foo', 'bar', 'baz'], 'or').should.equal('foo, bar or baz');
```
<a name="joinarr-str-with-oxford-comma"></a>
# join(arr, str) with Oxford comma
should remove comma with less than 3 items.
```js
join([], ', or').should.equal('');
join(['foo'], ', or').should.equal('foo');
join(['foo', 'bar'], ', or').should.equal('foo or bar');
```
should join with 3 or more items.
```js
join(['foo', 'bar', 'baz'], ', and').should.equal('foo, bar, and baz');
```
## License
MIT

View File

@@ -0,0 +1,13 @@
{
"name": "join",
"repo": "component/join",
"description": "Join a list",
"version": "1.1.0",
"keywords": ["join", "list"],
"dependencies": {},
"development": {},
"license": "MIT",
"scripts": [
"index.js"
]
}

28
Skills/@be/be/node_modules/join-component/index.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
/**
* Join `arr` with the trailing `str` defaulting to "and",
* and `sep` string defaulting to ", ".
*
* @param {Array} arr
* @param {String} str
* @param {String} sep
* @return {String}
* @api public
*/
module.exports = function(arr, str, sep){
str = str || 'and';
sep = sep || ', ';
if (arr.length < 2) return arr[0] || '';
var oxford = str.slice(0, 2) === sep;
if (!oxford) {
str = ' ' + str;
} else if (arr.length == 2) {
str = str.slice(1);
}
return arr.slice(0, -1).join(sep) + str + ' ' + arr[arr.length - 1];
};

18
Skills/@be/be/node_modules/join-component/package.json generated vendored Normal file
View File

@@ -0,0 +1,18 @@
{
"name": "join-component",
"repo": "component/join",
"description": "Join a list",
"version": "1.1.0",
"keywords": [],
"dependencies": {},
"devDependencies": {
"mocha": "*",
"should": "*"
},
"license": "MIT",
"component": {
"scripts": {
"join/index.js": "index.js"
}
}
}

View File

@@ -0,0 +1,29 @@
var join = require('..');
describe('join(arr)', function(){
it('should default to "and"', function(){
join(['foo', 'bar']).should.equal('foo and bar');
})
})
describe('join(arr, str)', function(){
it('should join', function(){
join([], 'and').should.equal('');
join(['foo'], 'and').should.equal('foo');
join(['foo', 'bar'], 'and').should.equal('foo and bar');
join(['foo', 'bar', 'baz'], 'or').should.equal('foo, bar or baz');
})
})
describe('join(arr, str) with Oxford comma', function() {
it('should remove comma with less than 3 items', function() {
join([], ', or').should.equal('');
join(['foo'], ', or').should.equal('foo');
join(['foo', 'bar'], ', or').should.equal('foo or bar');
})
it('should join with 3 or more items', function() {
join(['foo', 'bar', 'baz'], ', and').should.equal('foo, bar, and baz');
})
})