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

Commit b6a78e0

Browse files
authored
Merge pull request #147 from nschonni/remove-lock
feat: v1.0.0 release
2 parents 6f12a45 + 85de4cf commit b6a78e0

File tree

7 files changed

+85
-3657
lines changed

7 files changed

+85
-3657
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Main CI Workflow
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
build-and-publish:
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
node:
15+
- 12
16+
- 14
17+
- 16
18+
19+
os:
20+
- ubuntu-latest
21+
- windows-latest
22+
- macos-latest
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v2
27+
28+
- name: Setup Node.js environment
29+
uses: actions/setup-node@v2.4.0
30+
with:
31+
node-version: ${{ matrix.node }}
32+
33+
- name: Install prerequisites
34+
run: npm install
35+
36+
- name: Lint
37+
run: npm run lint
38+
39+
- name: Test
40+
run: npm run test

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Node.js Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: 14
18+
- run: npm install
19+
- run: npm test
20+
21+
publish-npm:
22+
needs: build
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions/setup-node@v2
27+
with:
28+
node-version: 14
29+
registry-url: https://registry.npmjs.org/
30+
- run: npm install
31+
- run: npm publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ vagrant
2020
.DS_Store
2121
.sass-cache
2222
test/fixtures/**/*.css
23+
package-lock.json

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

middleware.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ var sass = require('node-sass'),
55
fs = require('fs'),
66
url = require('url'),
77
dirname = require('path').dirname,
8-
mkdirp = require('mkdirp'),
98
join = require('path').join;
109

1110
var imports = {};
@@ -15,7 +14,7 @@ var imports = {};
1514
*
1615
* Options:
1716
*
18-
* all supportend options from node-sass project plus following:
17+
* all supported options from node-sass project plus following:
1918
*
2019
* `src` - (String) Source directory used to find `.scss` or `.sass` files.
2120
*
@@ -208,7 +207,7 @@ module.exports = function(options) {
208207
cssDone = false;
209208
sourceMapDone = !sourceMap;
210209

211-
mkdirp(dirname(cssPath), '0700', function(err) {
210+
fs.mkdir(dirname(cssPath), { mode: '0700', recursive: true}, function(err) {
212211
if (err) {
213212
error(err);
214213
cssDone = true;
@@ -229,7 +228,7 @@ module.exports = function(options) {
229228

230229
if (sourceMap) {
231230
var sourceMapPath = this.options.sourceMap;
232-
mkdirp(dirname(sourceMapPath), '0700', function(err) {
231+
fs.mkdir(dirname(sourceMapPath), { mode: '0700', recursive: true}, function(err) {
233232
if (err) {
234233
error(err);
235234
sourceMapDone = true;

0 commit comments

Comments
 (0)