Coder Social home page Coder Social logo

javierbrea / node-sass-alias-importer Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 4.0 510 KB

Node sass importer supporting custom alias for directories or specific files

License: MIT License

JavaScript 99.08% Shell 0.92%
sass node-sass node-sass-importer path alias aliases folder files file directory directories webpack rollup custom customization

node-sass-alias-importer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-sass-alias-importer's Issues

Add windows support.

Describe the bug

The 9486588 commit attempts to add path support presumably to support Windows environments.

However this leads to aliases no longer working because most scss imports use @import "foo/bar"; rather than @import "foo\\bar"; which is what the code would be checking on Windows.

The fix for that is this:

--- if (!aliasFound && url.split(path.sep)[0] === aliasDetails.alias) {
+++ if (!aliasFound && url.split('/')[0] === aliasDetails.alias) {

To Reproduce
Run a test on a windows environment.

Expected behavior
The alias is updated.

Operating system, Node.js an npm versions, or browser version (please complete the following information):

  • OS: Windows 10
  • Node.js: v12.2.0
  • npm: 6.9.0

Link to LICENSE file is broken

The link to the LICENSE file in the README is broken.
The .md extension has to be removed from the LICENSE link to make it work.

Bump node version to 16 / 17

Node LTS at the time I'm writing this issue is 16.13.0
The currently supported node versions are 10, 11, 12, 14 and 15, but the module works fine with Node 16.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update endbug/version-check action to v2.1.4
  • chore(deps): update mindsers/changelog-reader-action action to v2.2.3
  • chore(deps): update dependency eslint to v8.57.0
  • chore(deps): update dependency eslint-config-prettier to v9.1.0
  • chore(deps): update dependency eslint-plugin-prettier to v5.1.3
  • chore(deps): update dependency lint-staged to v15.2.2
  • chore(deps): update dependency prettier to v3.2.5
  • chore(deps): update actions/cache action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency husky to v9
  • chore(deps): update github artifact actions to v4 (major) (actions/download-artifact, actions/upload-artifact)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Pending Status Checks

These updates await pending status checks. To force their creation now, click the checkbox below.

  • chore(deps): update martinbeentjes/npm-get-version-action action to v1.3.1

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/build.yml
  • actions/checkout v3
  • actions/setup-node v3
  • actions/cache v3
  • actions/upload-artifact v3
  • actions/checkout v3
  • actions/setup-node v3
  • actions/cache v3
  • actions/checkout v3
  • actions/download-artifact v3
  • windows 2022
.github/workflows/check-package-version.yml
  • actions/checkout v3
  • EndBug/version-check v2.1.1
  • martinbeentjes/npm-get-version-action v1.2.3
  • mindsers/changelog-reader-action v2.2.2
  • christian-draeger/read-properties 1.1.1
.github/workflows/publish-to-github-registry.yml
  • actions/checkout v3
  • actions/setup-node v3
  • MerthinTechnologies/edit-json-action v1
.github/workflows/publish-to-npm.yml
  • actions/checkout v3
  • actions/setup-node v3
npm
package.json
  • eslint 8.54.0
  • eslint-config-prettier 9.0.0
  • eslint-plugin-prettier 5.0.1
  • husky 8.0.3
  • is-ci 3.0.1
  • jest 29.7.0
  • lint-staged 15.1.0
  • prettier 3.1.0
  • node-sass >=4.0.0
  • node >=14.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Update peer dependencies - node-sass

Is your feature request related to a problem? Please describe.
Node-sass is deprecated, it will cause problema who is working with npm > 7 because the npm will auto install peer dependencies

Describe the solution you'd like
Remove node-sass from peer dependencies or add to optional dependencies

Describe alternatives you've considered
Remove node-sass from peer dependencies or add to optional dependencies

Add Rollup and Webpack E2E tests

It is desirable to add E2E tests checking that the importer works as described in the documentation with both Webpack and Rollup.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.