Skip to content

Commit

Permalink
feat: Removed node sass fork, bumped packages to support no 16 (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
jairo-bc authored Dec 30, 2022
1 parent e0dbbe7 commit 969f98c
Show file tree
Hide file tree
Showing 11 changed files with 2,030 additions and 3,424 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
strategy:
matrix:
node: [14.x]
node: [16.x]
os: ['ubuntu-latest', 'windows-2019', 'macos-latest']

runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
node-version: '16.x'
- run: npm ci
# Setup .npmrc file to publish to npm registry
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.19
16.
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

19 changes: 0 additions & 19 deletions appveyor.yml

This file was deleted.

6 changes: 0 additions & 6 deletions lib/ScssCompiler.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const _ = require('lodash');
const path = require('path');
const Fiber = require('fibers');
const { promisify } = require('util');

class ScssCompiler {
Expand All @@ -18,10 +17,6 @@ class ScssCompiler {
this._wasUsed = false;
}

activateNodeSassForkEngine() {
this.engine = require('@bigcommerce/node-sass');
}

activateNodeSassEngine() {
this.engine = require('node-sass');
}
Expand Down Expand Up @@ -75,7 +70,6 @@ class ScssCompiler {
files: options.files,
sourceMap: options.sourceMap,
sourceMapEmbed: options.sourceMap,
fiber: Fiber,
functions: this.getScssFunctions(options.themeSettings),
importer: this.scssImporter.bind(this),
quietDeps: true, // suppress deprecation warnings
Expand Down
8 changes: 3 additions & 5 deletions lib/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ class StencilStyles {
}

activateEngine(engine) {
if (engine === 'node-sass') {
this.compilers['scss'].activateNodeSassEngine();
} else if (engine === 'node-sass-fork') {
this.compilers['scss'].activateNodeSassForkEngine();
} else if (engine === 'dart-sass') {
if (engine === 'dart-sass') {
this.compilers['scss'].activateDartSassEngine();
} else {
this.compilers['scss'].activateNodeSassEngine();
}
}
}
Expand Down
Loading

0 comments on commit 969f98c

Please sign in to comment.