Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@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 were written based on AngularJS Git Commit Message Conventions.
<type>[optional scope]: <description>
[optional body]
[optional footer]
After your PR is merged to master
to cut a release is very simple, assuming you are on master
branch follow the steps below.
Fetch all git tags
git fetch origin --tags
Then run the command to automatically update the package.json
, changelog.md
and create a new release commit.
npm run release
Now push the latest commit and the tag created (run git tag
to see all tags).
git push origin master && git push origin TAG_VERSION
And finally publish to npm.
npm publish
FAQs
D2iQ UI Kit
The npm package @dcos/ui-kit receives a total of 543 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.