
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Component based styles for the web.
Parata is packaged as a grunt
plugin. So, make sure you install GruntJS. Parata lets you build re-usable components for the web and generates a component wise styleguide.
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: {
stylePreProcessor: 'scss'
}
},
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>
FAQs
Component based style guide for the web.
The npm package parata receives a total of 0 weekly downloads. As such, parata popularity was classified as not popular.
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.