-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:hironichu/denosass
- Loading branch information
Showing
12 changed files
with
1,300 additions
and
565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
# This workflow will install Deno then run Deno lint and test. | ||
# For more information see: https://github.com/denoland/setup-deno | ||
|
||
name: Deno | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Deno | ||
# uses: denoland/setup-deno@v1 | ||
uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366 | ||
with: | ||
deno-version: v1.x | ||
|
||
# Uncomment this step to verify the use of 'deno fmt' on each commit. | ||
- name: Verify formatting | ||
run: deno fmt --check | ||
|
||
- name: Run linter | ||
run: deno lint | ||
|
||
- name: Run tests | ||
run: deno test -A --unstable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
"url": "http://localhost:5500" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
import sass from "./mod.ts"; | ||
import { SassFormats } from "./src/types/module.types.ts"; | ||
import { parse as CMDParse } from "https://deno.land/[email protected]/flags/mod.ts"; | ||
import { readAll } from "https://deno.land/std/streams/conversion.ts " | ||
import { readAll } from "https://deno.land/std/streams/conversion.ts "; | ||
const readPerm = { name: "read" } as const; | ||
const writePerm = { name: "write" } as const; | ||
const envPerm = { name: "env" } as const; | ||
|
@@ -68,7 +68,7 @@ if (import.meta.main) { | |
if (paths && typeof paths === "string") { | ||
include_paths = paths.split(","); | ||
} else { | ||
include_paths = ["./"] | ||
include_paths = ["./"]; | ||
} | ||
const stdin = await readAll(Deno.stdin); | ||
const sass_result = sass(stdin, { | ||
|
@@ -104,7 +104,7 @@ if (import.meta.main) { | |
if (paths && typeof paths === "string") { | ||
include_paths = paths.split(","); | ||
} else { | ||
include_paths = ["./"] | ||
include_paths = ["./"]; | ||
} | ||
const SassData = sass(parsed._ as string[], { | ||
load_paths: include_paths, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
|
||
"lint": { | ||
"files": { | ||
"include": ["src/"], | ||
"exclude": ["src/wasm"] | ||
}, | ||
"rules": { | ||
"tags": ["recommended"], | ||
"include": ["ban-untagged-todo"], | ||
"exclude": ["no-unused-vars"] | ||
} | ||
}, | ||
"fmt": { | ||
"files": { | ||
"include": ["src/"], | ||
"exclude": ["src/wasm/"] | ||
}, | ||
"options": { | ||
"useTabs": false, | ||
"lineWidth": 80, | ||
"indentWidth": 2, | ||
"singleQuote": true, | ||
"proseWrap": "preserve" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
//This file maybe temporary. | ||
//TODO(@hironichu): Make a proper API to compile SASS to CSS. | ||
// | ||
export { str } from './wasm/grass.browser.js'; | ||
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
export * as denosass from "./wasm/grass.deno.js"; | ||
export * from "https://deno.land/std@0.119.0/testing/asserts.ts"; | ||
export * as denosass from './wasm/grass.deno.js'; | ||
export * from 'https://deno.land/std@0.131.0/testing/asserts.ts'; | ||
export { | ||
emptyDirSync, | ||
ensureDirSync, | ||
walkSync, | ||
} from "https://deno.land/[email protected]/fs/mod.ts"; | ||
export * as path from "https://deno.land/[email protected]/path/mod.ts"; | ||
|
||
} from 'https://deno.land/[email protected]/fs/mod.ts'; | ||
export * as path from 'https://deno.land/[email protected]/path/mod.ts'; |
Oops, something went wrong.