
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
grunt-dependent-styles
Advanced tools
Get all nested imported files from passed SCSS
This plugin requires Grunt ~0.4.0
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-dependent-styles --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-dependent-styles');
The result, which contains dependent style files, will be placed into grunt.config
at dependentStyles.result
section.
If namespace
is provided - it will be appended to path string: dependentStyles.result.theNamespace
.
You can pass found style files to the next grunt task, using Grunt template string <%= dependentStyles.result %>
.
Useful, when you need to
grunt.initConfig({
dependentStyles: {
all: {
options: {
namespace: 'custom' // provide custom namespace
},
src: './**/*.scss'
},
your_target: {
src: './target.scss' // here will be default namespace called the same like task - your_target
}
},
postcss: {
all: {
src: ['<%= dependentStyles.result.all %>'],
options: {
processors: [
stylelint()
]
}
},
your_target: {
src: ['<%= dependentStyles.result.your_target %>'],
options: {
processors: [
stylelint()
]
}
}
}
});
grunt.registerTask('css', ['dependentStyles:your_target', 'postcss:your_target']);
Type: String
Default value: name of the task (target)
Dependent styles result object namespace.
Type: Boolean
Default value: true
Skip styles which name starts with leading underscore.
Type: Object
Default value: {}
Options for sass-graph plugin.
[0.0.1] - 2017-06-22
FAQs
Get all nested imported files from passed SCSS
We found that grunt-dependent-styles 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.