
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.
@dcos/ui-kit
Advanced tools
Mesosphere DCOS resusable UI Kit components
Install dependencies (Node v8+, NPM 5+)
npm i
Start storybook server locally then visit http://localhost:6006/
npm start
How to setup git hooks
Run the following npm script
npm run setup:git-hooks
Linting
For linting, use your favorite code editor to enable tslint.
If you use vscode you can change your workspace settings as following
{
"eslint.enable": false,
"jshint.enable": false,
"tslint.enable": true,
"tslint.jsEnable": false,
"tslint.run": "onType"
}
To generate a new component run the command
npm run create:component ComponentName
npm test
Use test:watch
if you want the tests to run automatically when a file changes:
npm run test:watch
You can even pass parameters to the test engine (in this case jest), when you,
for instance, want to run a single spec, for example, badge
:
npm run test -- --watch badge
Writing unit tests
A recommended reading is Better Specs, we put
real effort in making sure we
follow these guidelines. Some of the most common ones to follow:
For more on this topic, and examples we recommend Better Specs.
import React from "react";
import Badge from '../badge';
import renderer from 'react-test-renderer';
describe('Badge', () => {
it("match default badge component", () => {
expect(renderer
.create(<Badge>default</Badge>)
.toJSON()).toMatchSnapshot()
});
});
You should follow conventional commit formatting rules, as they provide a framework to write explicit messages that are easy to comprehend when looking through the project history and enable automatic change log generation.
These Guidelines got written based on AngularJS Git Commit Message Conventions.
<type>[optional scope]: <description>
[optional body]
[optional footer]
After your PR gets merged to master
, semantic-release
will automatically cut a release.
FAQs
D2iQ UI Kit
The npm package @dcos/ui-kit receives a total of 93 weekly downloads. As such, @dcos/ui-kit popularity was classified as not popular.
We found that @dcos/ui-kit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.