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,29 @@
'use strict';
var through = require('through2');
var falafel = require('falafel');
module.exports = apply;
function apply() {
var buffers = [];
return through(function(chunk, enc, next) {
buffers.push(chunk);
next();
}, function(next) {
var resp = falafel(Buffer.concat(buffers).toString(), {
ecmaVersion: 6,
allowReturnOutsideFunction: true
}, function (node) {
if (
node.type === 'MemberExpression' &&
node.object && node.property &&
node.object.name === 'process'
&& node.property.name === 'browser'
) {
node.update('true');
}
});
this.push(resp.toString());
next();
});
}

View File

@@ -0,0 +1,26 @@
{
"name": "inline-process-browser",
"version": "1.0.0",
"description": "inline process.browser",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/calvinmetcalf/inline-process-browser.git"
},
"keywords": [
"browserify-transform"
],
"author": "Calvin W. Metcalf <calvin.metcalf@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/calvinmetcalf/inline-process-browser/issues"
},
"homepage": "https://github.com/calvinmetcalf/inline-process-browser#readme",
"dependencies": {
"falafel": "^1.0.1",
"through2": "^0.6.5"
}
}

View File

@@ -0,0 +1,23 @@
inline-process-browser
===
Browserify transform which turns any reference to `process.browser` into `true`.
Can remove non-browser code when combined with [unreachable-branch-transform](https://github.com/zertosh/unreachable-branch-transform)
turns
```js
if (process.browser) {
//something
}
```
into
```js
if (true) {
//something
}
```