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.
Component based styles for the web. Parata enforces you to build re-usable components for the web and generates a component wise styleguide.
Parata is packaged as a grunt
plugin. So, make sure you install GruntJS. .
Once grunt
is installed, follow the steps listed below:
npm
project$ npm init
$ npm install parata --save
grunt.initConfig({
parata: {
options: {
stylePreProcessor: 'scss'
}
}
});
grunt.loadNpmTasks('parata');
grunt.initConfig({
parata: {
options: {
}
},
sass: {
dist: {
files: {
'dist/app.dist.css': 'components/app.scss'
}
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('parata');
grunt.loadNpmTasks('grunt-contrib-sass');
$ grunt parata --init
$ grunt parata --component button
$ grunt sass
$ grunt parata --build
$ grunt parata --serve
Navigate to: http://localhost:8888/test/button
Open components/button/
in your editor.
/**
* @component button
* @description Button.
* @variants primary | secondary | default
*/
button {
color: #F5F5F5;
padding: 10px;
&:hover {
cursor: pointer;
}
&.primary {
background: blue;
}
&.secondary {
background: red;
}
&.default {
background: yellow;
}
}
components/app.scss
/**
* Bootstrap file for all styles
*/
@import 'button/style'
<example for="button">
<button class="{{ variant }}">{{ variant }}</button>
</example>
<script for="button">
alert("Hello I'm a component!");
</script>
stylePreProcessor
: Extension of your style files. Eg.: scss
or less
.
componentsDirectory
: Path where all your components reside.
dest
: Destination where all the build files go into.
serverPort
: Default port the serve
task.
FAQs
Component based style guide for the web.
We found that parata 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.
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.