
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
builder-react-component
Advanced tools
A React component archetype for builder.
This archetype assumes an architecture as follows:
demo/
app.jsx
index.html
src
components/
*.jsx
index.js
test
client/
spec/
components/
*.jsx?
*.jsx?
main.js
test.html
.builderrc
package.json
The src/index.js
file should have exactly one property that exports the
correct camel-cased component name like:
module.exports = {
MyComponentName: require("./components/my-component-name")
};
The archetype will infer from that that the window variable name to export
is window.MyComponentName
and the distribution files to output are:
dist/my-component-name.js
dist/my-component-name.js.map
dist/my-component-name.min.js
dist/my-component-name.min.js.map
by kebab-casing MyComponentName
.
An example project using this structure is: formidable-react-component-boilerplate
$ builder help builder-react-component
[builder:help]
Usage:
builder [action] [task]
Actions:
help, run, concurrent, install
Tasks:
npm:postinstall
[builder-react-component] node -e "require('fs').stat('lib', function(e,s){process.exit(e || !s.isDirectory() ? 1 : 0)})" || builder run build-lib
npm:preversion
[builder-react-component] builder run check
npm:test
[builder-react-component] builder run test-frontend
npm:version
[builder-react-component] builder run clean && builder run build && git add -A dist
build
[builder-react-component] builder run build-lib && builder run build-dist
build-dist
[builder-react-component] builder run clean-dist && builder run build-dist-min && builder run build-dist-dev
build-dist-dev
[builder-react-component] webpack --config node_modules/builder-react-component/config/webpack/webpack.config.dev.js
build-dist-min
[builder-react-component] webpack --config node_modules/builder-react-component/config/webpack/webpack.config.js
build-lib
[builder-react-component] builder run clean-lib && babel --babelrc node_modules/builder-react-component/config/babel/.babelrc src -d lib
check
[builder-react-component] builder run lint && builder run test
check-ci
[builder-react-component] builder run lint && builder run test-ci
check-cov
[builder-react-component] builder run lint && builder run test-cov
check-dev
[builder-react-component] builder run lint && builder run test-dev
clean
[builder-react-component] builder run clean-lib && builder run clean-dist
clean-dist
[builder-react-component] rimraf dist
clean-lib
[builder-react-component] rimraf lib
dev
[builder-react-component] builder concurrent server-dev server-test
hot
[builder-react-component] builder concurrent server-hot server-test
lint
[builder-react-component] builder concurrent lint-server lint-client lint-client-test
lint-client
[builder-react-component] eslint --color --ext .js,.jsx -c node_modules/builder-react-component/config/eslint/.eslintrc-client src demo/*.jsx
lint-client-test
[builder-react-component] eslint --color --ext .js,.jsx -c node_modules/builder-react-component/config/eslint/.eslintrc-client-test src test/client
lint-server
[builder-react-component] eslint --color -c node_modules/builder-react-component/config/eslint/.eslintrc-server *.js
open-demo
[builder-react-component] opener http://127.0.0.1:3000
open-dev
[builder-react-component] builder concurrent dev open-demo
open-hot
[builder-react-component] builder concurrent hot open-demo
server-dev
[builder-react-component] webpack-dev-server --port 3000 --config node_modules/builder-react-component/config/webpack/demo/webpack.config.dev.js --colors --content-base demo
server-hot
[builder-react-component] webpack-dev-server --port 3000 --config node_modules/builder-react-component/config/webpack/demo/webpack.config.hot.js --colors --hot --content-base demo
server-test
[builder-react-component] webpack-dev-server --port 3001 --config node_modules/builder-react-component/config/webpack/webpack.config.test.js --colors
test
[builder-react-component] builder run npm:test
test-ci
[builder-react-component] builder run test-frontend-ci
test-cov
[builder-react-component] builder run test-frontend-cov
test-dev
[builder-react-component] builder run test-frontend-dev
test-frontend
[builder-react-component] node node_modules/builder-react-component/node_modules/karma/bin/karma start node_modules/builder-react-component/config/karma/karma.conf.js
test-frontend-ci
[builder-react-component] node node_modules/builder-react-component/node_modules/karma/bin/karma start --browsers PhantomJS,Firefox node_modules/builder-react-component/config/karma/karma.conf.coverage.js
test-frontend-cov
[builder-react-component] node node_modules/builder-react-component/node_modules/karma/bin/karma start node_modules/builder-react-component/config/karma/karma.conf.coverage.js
test-frontend-dev
[builder-react-component] node node_modules/builder-react-component/node_modules/karma/bin/karma start node_modules/builder-react-component/config/karma/karma.conf.dev.js
0.0.1
FAQs
Builder Archetype - React Component
The npm package builder-react-component receives a total of 6 weekly downloads. As such, builder-react-component popularity was classified as not popular.
We found that builder-react-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 21 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.