diff --git a/History.md b/Changelog.md similarity index 95% rename from History.md rename to Changelog.md index 2d3800dac..3d37fa5fa 100644 --- a/History.md +++ b/Changelog.md @@ -1,3 +1,38 @@ +0.54.8 / 2020-07-16 +=================== + + * Feature: Patched Renderer.deps() to recognize identifiers as import paths. [#2519](https://github.com/stylus/stylus/pull/2519) + * Fix: fix for Node v14 'Accessing non-existent property' errors [#2538](https://github.com/stylus/stylus/pull/2538) + * Fix: tests on windows [#2523](https://github.com/stylus/stylus/pull/2523) + * Fix: fixed an issue when running Stylus inside of an .asar archive [#2520](https://github.com/stylus/stylus/pull/2520) + * Fix: fix property lookup negation [#2506](https://github.com/stylus/stylus/pull/2506) closes [#2485](https://github.com/stylus/stylus/issues/2485) + +0.54.7 / 2019-08-21 +=================== + + * Fix: bug in hash access [#2484](https://github.com/stylus/stylus/pull/2484) + +0.54.6 / 2019-08-19 +=================== + + * Feature: Extend length method to work with strings [#2110](https://github.com/stylus/stylus/pull/2110) + * Feature: add quiet flag to have a more "quiet" output. [#2088](https://github.com/stylus/stylus/pull/2088) + * Feature: Support for cssnext nested at-rule syntax (apply, nested) [#2335](https://github.com/stylus/stylus/pull/2335) + * Feature: Make prefix-classes work with partial and range refs in selectors [#2278](https://github.com/stylus/stylus/pull/2278) + * Feature: Extend in block level import [#2270](https://github.com/stylus/stylus/pull/2270) + * chore: Use mkdir() recursive option instead of mkdirp() [#2426](https://github.com/stylus/stylus/pull/2426) + * chore: Define function arguments explicitly [#2417](https://github.com/stylus/stylus/pull/2417) + * Fix issue with cos & sin not stripping rad unit. [#2284](https://github.com/stylus/stylus/pull/2284) + * Fix: handle empty at-rules [#2416](https://github.com/stylus/stylus/pull/2416) + * Fix: Do not use the deprecated Buffer() constructor [#2424](https://github.com/stylus/stylus/pull/2424) + * Fix: 'imports' couldn't be set as a option [#2425](https://github.com/stylus/stylus/pull/2411) closes [#2411](https://github.com/stylus/stylus/pull/2411) + * Fix: no such directory error in Stylus Executable [#2421](https://github.com/stylus/stylus/pull/2421) + * Fix: define column for mixin [#2456](https://github.com/stylus/stylus/pull/2456) + * Fix: work with hash [#2453](https://github.com/stylus/stylus/pull/2453) + * Fix: check whether captureStackTrace exists [#2394](https://github.com/stylus/stylus/pull/2394) + + + 0.54.5 / 2016-04-28 =================== diff --git a/Readme.md b/Readme.md index f0788378c..98112f030 100644 --- a/Readme.md +++ b/Readme.md @@ -1,7 +1,8 @@ -

Stylus logo

+

Stylus logo

[![Build Status](https://github.com/stylus/stylus/actions/workflows/ci.yml/badge.svg?branch=dev)](https://github.com/stylus/stylus/actions?query=branch%3Adev) -[![npm version](https://badge.fury.io/js/stylus.svg)](https://badge.fury.io/js/stylus) +[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-brightgreen.svg)](https://github.com/stylus/stylus/pulse) +[![npm version](https://img.shields.io/npm/v/stylus?color=brightgreen)](https://www.npmjs.com/package/stylus) [![npm](https://img.shields.io/npm/dm/stylus.svg)](https://www.npmjs.com/package/stylus) [![Join the community on github discussion](https://img.shields.io/badge/Join%20the%20community-on%20discussions-%23754ffb?logo=googlechat&logoColor=white)](https://github.com/stylus/stylus/discussions) @@ -18,7 +19,35 @@ Watch and compile a stylus file from command line with ```bash stylus -w style.styl -o style.css ``` -You can also [try all stylus features on stylus-lang.com](http://stylus-lang.com/try.html), build something with stylus on [codepen](http://codepen.io) or integrate stylus with [gulp](http://gulpjs.com/) using [gulp-stylus](https://www.npmjs.com/package/gulp-stylus) or [gulp-accord](https://www.npmjs.com/package/gulp-accord). +You can also [try all stylus features on stylus-lang.com](http://stylus-lang.com/try.html), build something with stylus on [codepen](http://codepen.io) or [RunKit](https://npm.runkit.com/stylus) + +### IDE/Editor Support + +| IDE/Editor | built-in support | guide | plugin support | +| ------------- | ------------- | ------------- | ------------- | +| WebStorm | ✅  [bug report](https://youtrack.jetbrains.com/issues/WEB) | [Using stylus with webstorm](https://www.jetbrains.com/help/webstorm/transpiling-stylus-to-css.html) | N/A | +| VSCode | ❌ | N/A | [Stylus](https://marketplace.visualstudio.com/items?itemName=sysoev.language-stylus)(maintainer: [@iChenLei](https://github.com/ichenlei) [@d4rkr00t](https://github.com/d4rkr00t)) | +| Sublime 2/3 | ❌ | N/A |[Stylus](https://packagecontrol.io/packages/Stylus)(maintainer: [@billymoon](https://github.com/billymoon)) | +| Atom | ❌ | N/A | [Stylus](https://atom.io/packages/stylus)(maintainer: [@matthojo](https://github.com/matthojo)) | +| Vim | ❌ | N/A | [vim-stylus](https://github.com/iloginow/vim-stylus)(maintainer: [@iloginow](https://github.com/iloginow)) | + +> Missing your favorite IDE/Editor support ? Please report to us via [stylus issues](https://github.com/stylus/stylus/issues) + +### Modern bundler/task-runner Support + +| Bundler | built-in support | guide | plugin support | +| ------------- | ------------- | ------------- | ------------- | +| webpack | ✅ | [Using stylus with webpack](https://webpack.js.org/loaders/stylus-loader/) | [stylus-loader](https://github.com/webpack-contrib/stylus-loader) | +| vite | ✅ | [Using stylus with vite](https://vitejs.dev/guide/features.html#css-pre-processors) | N/A | +| parcel | ✅ | [Using stylus with parcel v1](https://parceljs.org/stylus.html) \| [v2](https://v2.parceljs.org/languages/stylus/) | N/A | +| fuse-box | ✅ | [Using stylus with fuse-box](https://fuse-box.org/docs/plugins/stylus-plugin) | N/A | +| snowpack | ❌ | [Snowpack plugins guide](https://www.snowpack.dev/reference/plugins) | [snowpack-plugin-stylus](https://github.com/fansenze/snowpack-plugin-stylus) | +| gulp | ❌ | N/A | [gulp-stylus](https://github.com/stevelacy/gulp-stylus) | +| grunt | ❌ | N/A | [grunt-contrib-stylus](https://github.com/gruntjs/grunt-contrib-stylus) | +| rollup | ❌ | N/A | [rollup-plugin-stylus-compiler](https://github.com/RJHwang/rollup-plugin-stylus-compiler) | + + +> Missing your favorite modern bundler/task-runner support ? Please report to us via [stylus issues](https://github.com/stylus/stylus/issues) ### Example @@ -126,24 +155,9 @@ form input { - https://github.com/stylus/stylus/wiki -### Framework Support - - - [Connect](docs/middleware.md) - - [Play! 2.0](https://github.com/patiencelabs/play-stylus) - - [Ruby On Rails](https://github.com/forgecrafted/ruby-stylus-source) - - [Meteor](http://docs.meteor.com/#stylus) - - [Grails](http://grails.org/plugin/stylus-asset-pipeline) - - [Derby](https://github.com/derbyjs/derby-stylus) - - [Laravel](https://laravel.com/docs/5.5/mix#stylus) - -### CMS Support - - - [DocPad](https://github.com/docpad/docpad) - - [Punch](https://github.com/laktek/punch-stylus-compiler) - -### Screencasts +### Stylus cheatsheet - - [CSS Syntax & Postfix Conditionals](http://www.screenr.com/A8v) + - [Stylus cheatsheet](https://devhints.io/stylus), very useful stylus syntax code snippet for you ### Authors @@ -151,7 +165,7 @@ form input { ### More Information - - Language [comparisons](docs/compare.md) + - Language [comparisons](docs/compare.md), compare Less Sass and Stylus. ## Code of Conduct diff --git a/test.js b/test.js deleted file mode 100644 index efc2fc115..000000000 --- a/test.js +++ /dev/null @@ -1,31 +0,0 @@ -var stylus = require('./'); - - -const value = ` -$IMG = { - temp: { - selectors: ("test" "test1") - props: { - pop: "dies" - } - } -} - -add-property(name, expr) - {name} expr - -generateImgClasses() - for $img, $obj in $IMG - {join(",", $obj.selectors)} - for $prop in $IMG - add-property($prop, "url(%s)" % $img) - -html - generateImgClasses()`; - -stylus(value).render((err, css) => { - if (err) { - throw err; - } - console.log(css); -});