Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
React-monk is here to help you with the JavaScript fatigue.
Set up quickly a working environment with:
npm init -y
npm install react-monk --save-dev
npm install react react-dom --save
You're all set!
Create a src/index.js
file with the following content:
import React from 'react';
import { someClass } from './index.css';
export default class RenderComponent extends React.Component {
render() {
return <div>
<h1 className={someClass}>Hello World</h1>
</div>;
}
};
Now run ./node_modules/.bin/react-monk transform src
to publish the code from
src
to lib
directory.
It is ready for npm consuming.
run
./node_modules/.bin/react-monk help transform
for more options.
Create a samples/basic.js
file with the following content:
import React from 'react';
import ReactDOM from 'react-dom';
import RenderComponent from '../src/index';
let renderDiv = document.getElementById('app');
if (!renderDiv) {
renderDiv = document.createElement('div');
renderDiv.id = 'app';
document.body.appendChild(renderDiv);
}
ReactDOM.render(<RenderComponent />, renderDiv);
Now run ./node_modules/.bin/react-monk serve samples/basic.js
.
Open you browser at http://localhost:1337
to see you sample application.
run
./node_modules/.bin/react-monk help serve
for more options.
Using the previous samples/basic.js
file, run ./node_modules/.bin/react-monk build samples/basic.js --html 'Sample application'
to generate a bundle in
dist
directory.
run
./node_modules/.bin/react-monk help build
for more options.
Create a src/index-test.js
file with the following content:
import RenderComponent from './index';
it('should work', () => { });
Launch mocha tests with ./node_modules/.bin/react-monk test src
run
./node_modules/.bin/react-monk help test
for more options. All unknown options are forwarded to mocha runtime.
react-monk extends the existing
FAQs
React cli tool to help with your JavaScript fatigue
The npm package react-monk receives a total of 0 weekly downloads. As such, react-monk popularity was classified as not popular.
We found that react-monk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.