esbuild-plugin-less
Advanced tools
Comparing version 0.0.7 to 1.0.1
@@ -1,1 +0,1 @@ | ||
var f=Object.create,o=Object.defineProperty,d=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,v=Object.getOwnPropertyNames,w=Object.getOwnPropertyDescriptor;var l=e=>o(e,"__esModule",{value:!0});var L=(e,s)=>{l(e);for(var t in s)o(e,t,{get:s[t],enumerable:!0})},D=(e,s,t)=>{if(l(e),s&&typeof s=="object"||typeof s=="function")for(let a of v(s))!u.call(e,a)&&a!=="default"&&o(e,a,{get:()=>s[a],enumerable:!(t=w(s,a))||t.enumerable});return e},p=e=>e&&e.__esModule?e:D(o(e!=null?f(d(e)):{},"default",{value:e,enumerable:!0}),e);L(exports,{lessLoader:()=>P});var r=p(require("path")),i=p(require("fs")),c=p(require("less")),h="less";function P(e={}){return{name:"less-loader",setup:s=>{s.onResolve({filter:/\.less$/},t=>({path:r.resolve(process.cwd(),r.relative(process.cwd(),t.resolveDir),t.path),namespace:h})),s.onLoad({filter:/.*/,namespace:h},async t=>{let a=await i.promises.readFile(t.path,"utf-8"),n=r.dirname(t.path),m=r.basename(t.path);return{contents:(await c.default.render(a,{filename:m,rootpath:n,paths:[...e.paths||[],n],...e})).css,loader:"css",resolveDir:n}})}}} | ||
var f=Object.create,o=Object.defineProperty,d=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,v=Object.getOwnPropertyNames,w=Object.getOwnPropertyDescriptor;var l=e=>o(e,"__esModule",{value:!0});var L=(e,s)=>{l(e);for(var t in s)o(e,t,{get:s[t],enumerable:!0})},D=(e,s,t)=>{if(l(e),s&&typeof s=="object"||typeof s=="function")for(let a of v(s))!u.call(e,a)&&a!=="default"&&o(e,a,{get:()=>s[a],enumerable:!(t=w(s,a))||t.enumerable});return e},p=e=>e&&e.__esModule?e:D(o(e!=null?f(d(e)):{},"default",{value:e,enumerable:!0}),e);L(exports,{lessLoader:()=>P});var r=p(require("path")),i=p(require("fs")),c=p(require("less")),h="less";function P(e={}){return{name:"less-loader",setup:s=>{s.onResolve({filter:/\.less$/},t=>({path:r.resolve(process.cwd(),r.relative(process.cwd(),t.resolveDir),t.path),namespace:h})),s.onLoad({filter:/.*/,namespace:h},async t=>{let a=await i.promises.readFile(t.path,"utf-8"),n=r.dirname(t.path),m=r.basename(t.path);return{contents:(await c.default.render(a,{filename:m,rootpath:n,...e,paths:[...e.paths||[],n]})).css,loader:"css",resolveDir:n}})}}} |
@@ -1,1 +0,1 @@ | ||
import{basename as p,dirname as l,relative as i,resolve as c}from"path";import{promises as h}from"fs";import m from"less";var a="less";function f(t={}){return{name:"less-loader",setup:r=>{r.onResolve({filter:/\.less$/},e=>({path:c(process.cwd(),i(process.cwd(),e.resolveDir),e.path),namespace:a})),r.onLoad({filter:/.*/,namespace:a},async e=>{let o=await h.readFile(e.path,"utf-8"),s=l(e.path),n=p(e.path);return{contents:(await m.render(o,{filename:n,rootpath:s,paths:[...t.paths||[],s],...t})).css,loader:"css",resolveDir:s}})}}}export{f as lessLoader}; | ||
import{basename as p,dirname as l,relative as i,resolve as c}from"path";import{promises as h}from"fs";import m from"less";var a="less";function f(t={}){return{name:"less-loader",setup:r=>{r.onResolve({filter:/\.less$/},e=>({path:c(process.cwd(),i(process.cwd(),e.resolveDir),e.path),namespace:a})),r.onLoad({filter:/.*/,namespace:a},async e=>{let o=await h.readFile(e.path,"utf-8"),s=l(e.path),n=p(e.path);return{contents:(await m.render(o,{filename:n,rootpath:s,...t,paths:[...t.paths||[],s]})).css,loader:"css",resolveDir:s}})}}}export{f as lessLoader}; |
{ | ||
"name": "esbuild-plugin-less", | ||
"version": "0.0.7", | ||
"version": "1.0.1", | ||
"description": "esbuild plugin for less files", | ||
@@ -33,2 +33,7 @@ "repository": "https://github.com/iam-medvedev/esbuild-plugin-less.git", | ||
"devDependencies": { | ||
"@semantic-release/changelog": "^5.0.1", | ||
"@semantic-release/commit-analyzer": "^8.0.1", | ||
"@semantic-release/github": "^7.2.0", | ||
"@semantic-release/npm": "^7.0.10", | ||
"@semantic-release/release-notes-generator": "^9.0.1", | ||
"@types/jest": "^26.0.20", | ||
@@ -39,2 +44,3 @@ "@types/node": "^14.14.22", | ||
"prettier": "^2.2.1", | ||
"semantic-release": "^17.3.9", | ||
"ts-jest": "^26.4.4", | ||
@@ -52,3 +58,7 @@ "ts-node": "^9.1.1", | ||
"less" | ||
] | ||
], | ||
"volta": { | ||
"node": "14.15.5", | ||
"yarn": "1.22.5" | ||
} | ||
} |
@@ -8,2 +8,3 @@ [![License: WTFPL](https://img.shields.io/badge/License-WTFPL-brightgreen.svg)](http://www.wtfpl.net/about/) | ||
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fiam-medvedev%2Fesbuild-plugin-less.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fiam-medvedev%2Fesbuild-plugin-less?ref=badge_shield) | ||
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) | ||
@@ -47,2 +48,2 @@ # esbuild-plugin-less | ||
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fiam-medvedev%2Fesbuild-plugin-less.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fiam-medvedev%2Fesbuild-plugin-less?ref=badge_large) | ||
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fiam-medvedev%2Fesbuild-plugin-less.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fiam-medvedev%2Fesbuild-plugin-less?ref=badge_large) |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6306
7
1
48
14