Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-less-pods

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-less-pods

Generates style.less file into pods.

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

ember-cli-less-pods

Addon to generate less files directly pod folders. Based on ember-cli-sass-pods

Compatibility

Ember 1.13+

Example of usage

E.g. you have a contacts route and contact-box component.

Generate regular route and component:
ember g route contacts -p
ember g component contact-box -p
Then, use ember-cli-less-pods power and generate styles:
ember g less contacts -p
ember g less components/contact-box -p
Your file structure would be:
app/

app/contacts
app/contacts/route.js
app/contacts/template.hbs
app/contacts/style.less

app/components/
app/components/contact-box
app/components/contact-box/component.js
app/components/contact-box/template.hbs
app/components/contact-box/style.less

app/styles/
app/styles/app.less
app/styles/[importFileName].less
app/styles/[importFileName].less
@import "contacts/style";
@import "components/contact-box/style";

Installation

Install ember-cli-less-pods
  • ember install ember-cli-less-pods

It will automatically install ember-cli-less less preprocess package.

The import file

You need to add the import file into your main app less file.

If you use podModulePrefix your imports file would be:

[podModulePrefix].less

otherwise it would be:

pods.less

Add import line into your main app less file:

@import "[podModulePrefix] or pods";
Watched folder

Add paths for watching in the 'ember.cli-build.js' (for Ember 2+ ember-cli-build.js):

var app = new EmberApp(defaults, {
  lessOptions: {
    includePaths: ['app']
  }
});

Usage

To generate styles into your pod - just run:

ember g style [path] -p

Enjoy styling

Keywords

FAQs

Package last updated on 09 May 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc