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

View File

@@ -0,0 +1,42 @@
var falafel = require('../');
var acorn = require('acorn-jsx');
var test = require('tape');
test('custom parser', function (t) {
var src = '(function() { var f = {a: "b"}; var a = <div {...f} className="test"></div>; })()';
var nodeTypes = [
'Identifier',
'Identifier',
'Literal',
'Property',
'ObjectExpression',
'VariableDeclarator',
'VariableDeclaration',
'Identifier',
'Identifier',
'JSXSpreadAttribute',
'JSXIdentifier',
'Literal',
'JSXAttribute',
'JSXIdentifier',
'JSXOpeningElement',
'JSXIdentifier',
'JSXClosingElement',
'JSXElement',
'VariableDeclarator',
'VariableDeclaration',
'BlockStatement',
'FunctionExpression',
'CallExpression',
'ExpressionStatement',
'Program'
];
t.plan(nodeTypes.length);
var output = falafel(src, {parser: acorn, ecmaVersion: 6, plugins: { jsx: true }}, function(node) {
t.equal(node.type, nodeTypes.shift());
});
});