Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sass/node-sass
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 60fad5f2d92d9978af6a3d9bb29f4b0ff4a70070
Choose a base ref
...
head repository: sass/node-sass
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7105b0abd35377a52a7df8994aa45aa8395a18e4
Choose a head ref
Loading
20 changes: 12 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
{
"env": {
"es6": true,
"node": true
},
"globals": {},
"extends": "eslint:recommended",
"overrides": [
{
"files": [
"test/**/*.js"
],
"env": {
"mocha": true
}
}
],
"rules": {
"no-bitwise": 2,
"camelcase": 0,
"curly": 2,
"eqeqeq": 2,
"no-unused-expressions": [
@@ -34,13 +44,7 @@
2,
"single"
],
"strict": 0,
"no-undef": 2,
"no-unused-vars": 2,
"semi": 2,
"no-extra-semi": 2,
"no-redeclare": 2,
"block-scoped-var": 2,
"no-console": 0
"block-scoped-var": 2
}
}
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
51 changes: 51 additions & 0 deletions .github/workflows/alpine.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build bindings for Alpine releases

on:
push:
branches-ignore:
- "dependabot/**"
pull_request:

jobs:
build:
runs-on: ubuntu-latest
container:
image: node:${{ matrix.node }}-alpine${{ matrix.alpine }}
strategy:
fail-fast: false
matrix:
node:
- 10
- 12
- 14
- 15

include:
- node: 10
alpine: "3.9"
- node: 12
alpine: "3.9"
- node: 14
alpine: "3.10"
- node: 15
alpine: "3.10"

steps:
- name: Install Alpine build tools
run: apk add --no-cache python make git gcc g++

- uses: actions/checkout@v2

- name: Install packages
run: npm install --unsafe-perm
env:
SKIP_SASS_BINARY_DOWNLOAD_FOR_CI: true

- name: Run tests
run: npm test

- uses: actions/upload-artifact@v2
if: github.repository_owner == 'sass' && github.event_name != 'pull_request'
with:
name: ${{ matrix.node }}
path: vendor/
40 changes: 40 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Coverage

on:
push:
branches-ignore:
- "dependabot/**"
paths:
- ".nycrc.json"
- "**/*.js"
- "test/**"
- "package.json"
- "bin/node-sass"
- ".github/workflows/coverage.yml"
pull_request:
paths:
- ".nycrc.json"
- "**/*.js"
- "test/**"
- "package.json"
- "bin/node-sass"
- ".github/workflows/coverage.yml"

jobs:
build:
runs-on: ubuntu-latest
if: github.repository_owner == 'sass'

steps:
- uses: actions/checkout@v2

- name: Install packages
run: npm install --unsafe-perm

- name: Run Coverage
run: npm run coverage

- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
36 changes: 36 additions & 0 deletions .github/workflows/lint-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Lint JS

on:
push:
branches-ignore:
- "dependabot/**"
paths:
- "**/*.js"
- ".eslintrc.json"
- "package.json"
- "bin/node-sass"
- ".github/workflows/lint-js.yml"
pull_request:
paths:
- "**/*.js"
- ".eslintrc.json"
- "package.json"
- "bin/node-sass"
- ".github/workflows/lint-js.yml"

jobs:
build:
runs-on: ubuntu-latest
env:
SKIP_SASS_BINARY_DOWNLOAD_FOR_CI: true

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2.1.2

- name: Install packages
run: npm install --unsafe-perm

- name: Run Linting
run: npm run lint
67 changes: 67 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Build bindings for Linux releases

on:
push:
branches-ignore:
- "dependabot/**"
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node:
- 10
- 12
- 14
- 15

include:
- node: 10
gcc: "gcc-4.9"
gpp: "g++-4.9"
os: ubuntu-16.04
- node: 12
gcc: "gcc-6"
gpp: "g++-6"
os: ubuntu-18.04
- node: 14
gcc: "gcc-6"
gpp: "g++-6"
os: ubuntu-18.04
- node: 15
gcc: "gcc-6"
gpp: "g++-6"
os: ubuntu-18.04

steps:
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/setup-node@v2.1.2
with:
node-version: ${{ matrix.node }}

- name: Setup GCC/G++
run: sudo apt-get install ${{ matrix.gcc }} ${{ matrix.gpp }}

- name: Install packages
run: npm install --unsafe-perm
env:
SKIP_SASS_BINARY_DOWNLOAD_FOR_CI: true
CC: ${{ matrix.gcc }}
CXX: ${{ matrix.gpp }}
LINK: ${{ matrix.gcc }}
LINKXX: ${{ matrix.gpp }}

- name: Run tests
run: npm test

- uses: actions/upload-artifact@v2
if: github.repository_owner == 'sass' && github.event_name != 'pull_request'
with:
name: ${{ matrix.node }}
path: vendor/
42 changes: 42 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build bindings for macOS releases

on:
push:
branches-ignore:
- "dependabot/**"
pull_request:

jobs:
build:
runs-on: macos-latest

strategy:
fail-fast: false
matrix:
node:
- 10
- 12
- 14
- 15

steps:
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/setup-node@v2.1.2
with:
node-version: ${{ matrix.node }}

- name: Install packages
run: npm install --unsafe-perm
env:
SKIP_SASS_BINARY_DOWNLOAD_FOR_CI: true

- name: Run tests
run: npm test

- uses: actions/upload-artifact@v2
if: github.repository_owner == 'sass' && github.event_name != 'pull_request'
with:
name: ${{ matrix.node }}
path: vendor/
54 changes: 54 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build bindings for Windows releases

on:
push:
branches-ignore:
- "dependabot/**"
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node:
- 10
- 12
- 14
- 15

include:
- node: 10
os: windows-2016
- node: 12
os: windows-2016
- node: 14
os: windows-2016
- node: 15
os: windows-2019

steps:
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/setup-node@v2.1.2
with:
node-version: ${{ matrix.node }}

- name: Install packages
run: npm install --unsafe-perm
env:
SKIP_SASS_BINARY_DOWNLOAD_FOR_CI: true

- name: Run tests
run: npm test

- uses: actions/upload-artifact@v2
if: github.repository_owner == 'sass' && github.event_name != 'pull_request'
with:
name: ${{ matrix.node }}
path: |
vendor/**/binding.node
build/Release/binding.pdb
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -11,4 +11,5 @@ test/lcov.info
test/fixtures/watching-css-out-01
test/fixtures/watching-css-out-02
coverage
package-lock.json
package-lock.json
.nyc_output
14 changes: 14 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"all": true,
"include": [
"bin/*",
"lib/*.js",
"scripts/**/*.js"
],
"extension": [
"node-sass"
],
"reporter": [
"lcovonly"
]
}
Loading