Skip to content

Commit

Permalink
Merge pull request #147 from nschonni/remove-lock
Browse files Browse the repository at this point in the history
feat: v1.0.0 release
  • Loading branch information
nschonni committed Jan 5, 2022
2 parents 6f12a45 + 85de4cf commit b6a78e0
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 3,657 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Main CI Workflow

on:
pull_request:
push:

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

strategy:
fail-fast: false
matrix:
node:
- 12
- 14
- 16

os:
- ubuntu-latest
- windows-latest
- macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}

- name: Install prerequisites
run: npm install

- name: Lint
run: npm run lint

- name: Test
run: npm run test
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm install
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ vagrant
.DS_Store
.sass-cache
test/fixtures/**/*.css
package-lock.json
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

7 changes: 3 additions & 4 deletions middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ var sass = require('node-sass'),
fs = require('fs'),
url = require('url'),
dirname = require('path').dirname,
mkdirp = require('mkdirp'),
join = require('path').join;

var imports = {};
Expand All @@ -15,7 +14,7 @@ var imports = {};
*
* Options:
*
* all supportend options from node-sass project plus following:
* all supported options from node-sass project plus following:
*
* `src` - (String) Source directory used to find `.scss` or `.sass` files.
*
Expand Down Expand Up @@ -208,7 +207,7 @@ module.exports = function(options) {
cssDone = false;
sourceMapDone = !sourceMap;

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

if (sourceMap) {
var sourceMapPath = this.options.sourceMap;
mkdirp(dirname(sourceMapPath), '0700', function(err) {
fs.mkdir(dirname(sourceMapPath), { mode: '0700', recursive: true}, function(err) {
if (err) {
error(err);
sourceMapDone = true;
Expand Down
Loading

0 comments on commit b6a78e0

Please sign in to comment.