npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

less2er

v1.1.5

Published

监控并转化less到css

Downloads

18

Readme

类似的模块已经很多,只是通过造轮子,熟悉npm模块的发布流程

项目地址

介绍

监控并转化less到css

注意

  • 尽量升级全局less到最新版本(>@3.0)
  • 发现在某些win10机器上使用系统cmd执行 less2er后,仅编译一次,修改文件后再不会触发编译的情况。通过排查是发现是 fs.watch(filePath,callback) 无法触发callback。但是使用webstorm、cmder等第三方命令行工具执行却正常。该问题暂时无解。
  • 除了windows10,其他平台未测试过

特性

  • 零依赖,瞬间安装
  • 支持0配置运行,默认会扫描当前目录下的css、style、less目录

计划

  • [ ] 增、删less文件,无法感知到
  • [ ] 增加lessc的所有自定义配置,做到简单、灵活
  • [ ] 在这里提交你们需要的功能 https://github.com/ccwq/less2er/issues
  • [x] 增加节流,去除无效编译
  • [x] 启动时默认进行一次编译
  • [x] 修复全局调用时,有中文路径报错的问题
  • [x] 执行时会检测是否安装全局less模块,若果发现未安装,会自动执行一次npm i -g less,完成后继续编译。

安装

npm install -g less2er

使用

  • 0配置运行
less2er 
  • 自定义less路径
less2er --path=path/to/your/less