Midas Lambrichts
c09e3dccd6
Overwrite output file if already present.
...
File::open() opens in read only mode. Has been modified to OpenOptions
to be able to both create the file if it doensn't exist, and truncate
and write if it does.
Fixes #34
2020-08-14 21:40:20 +02:00
Connor Skees
68e5f40f7d
load paths take at most one per arg
2020-07-24 23:34:25 -04:00
Ivan Tham
55c2aa2749
refactor load_paths
2020-07-16 21:15:24 +08:00
Connor Skees
938ba492c4
simplify somewhat how load paths are calculated from the cli
2020-07-16 00:22:50 -04:00
Connor Skees
179b368ef8
add cli option to read Sass from stdin
2020-07-16 00:20:51 -04:00
Connor Skees
fb724b8bee
use dynamic dispatch to simplify file io a bit
2020-07-16 00:07:59 -04:00
Connor Skees
d5d527ab70
implement configuration: allows_charset
2020-07-16 00:02:42 -04:00
Connor Skees
2ea48b4445
implement unicode error message configuration
2020-07-15 23:54:46 -04:00
Joe Ling - uni laptop
50d1987af2
Added grass::Options and implemented options.load_paths
2020-07-15 12:37:19 +01:00
Joe Ling - uni laptop
ec5ab05330
added find_import to import and renamed lib method to from_paths
2020-07-13 18:18:25 +01:00
Joe Ling - uni laptop
afbae12b72
fixed formatting
2020-07-13 15:39:14 +01:00
Joe Ling - uni laptop
fe26350932
Added load_paths for @import
2020-07-13 14:52:52 +01:00
Connor Skees
a3ebcb298a
hide unimplemented commandline flags
2020-07-10 16:31:44 -04:00
Yusuf Redzic
ae73c733fb
Add colored help output
2020-07-06 21:09:25 -05:00
ConnorSkees
2cd81ccb0f
bump version to 0.9.0
2020-06-16 20:50:41 -04:00
ConnorSkees
c1b5ff5730
prettify imports
2020-06-16 20:00:11 -04:00
ConnorSkees
71dd7df951
reimplement parsing
2020-06-16 19:38:30 -04:00
ConnorSkees
66f24c474d
fix build on wasm
2020-05-05 19:12:17 -04:00
ConnorSkees
be6ee76486
-I takes 1 arg and --precision takes a value
2020-05-01 16:06:22 -04:00
ConnorSkees
67bee201de
add -t alias for style
2020-05-01 15:57:37 -04:00
ConnorSkees
d5169b2e23
add hidden cli arg --precision
...
dart-sass will accept this arg, but it will ignore its value
2020-05-01 15:48:16 -04:00
ConnorSkees
05b78a3ddd
add profiling feature
2020-05-01 15:43:43 -04:00
ConnorSkees
1326e8f000
add all commandline flags/args from dart-sass
2020-05-01 14:16:40 -04:00
ConnorSkees
690c8a1f89
clippy
2020-04-26 01:52:43 -04:00
ConnorSkees
a339499c9b
return string rather than writing to buffer
2020-04-21 05:25:08 -04:00
ConnorSkees
a3a218f950
Remove StyleSheet::print_as_css from main
2020-04-18 18:59:16 -04:00
ConnorSkees
3181d58441
refactor and cleaning
2020-03-01 14:53:52 -05:00
ConnorSkees
1995b5ec6e
Error messages in builtins
2020-02-16 11:59:04 -05:00
ConnorSkees
627e326ac5
Refactor error messages to not have quotes
2020-02-16 11:10:03 -05:00
ConnorSkees
1cd38f0317
Convert errors to strings for pretty printing
2020-01-20 12:13:52 -05:00
ConnorSkees
37ad341f91
Add short version flag
2020-01-20 11:09:05 -05:00
ConnorSkees
058772edb4
Refactor into library and add argument parsing
2020-01-20 11:00:01 -05:00
ConnorSkees
f23dec81ec
Change return type and name of Mixin::from_tokens
2020-01-20 09:48:51 -05:00
ConnorSkees
33244c34d7
Rename AtRule enum to AtRuleKind
2020-01-20 08:36:06 -05:00
ConnorSkees
c64daceb20
Refactor conversion of SCSS to CSS
2020-01-19 19:27:52 -05:00
ConnorSkees
1f1f43bf7c
Implement keyword arguments in mixins
2020-01-19 11:50:30 -05:00
ConnorSkees
31506c7ce4
Add tests for default value arguments
2020-01-19 11:28:26 -05:00
ConnorSkees
6da84575dc
Prefer match
over if let
2020-01-19 10:41:44 -05:00
ConnorSkees
28050116d3
Prefer match
over if let
2020-01-19 01:01:02 -05:00
ConnorSkees
07cb3a4ac7
Remove clone from multiline comments
2020-01-19 00:29:45 -05:00
ConnorSkees
635f00baa6
Handle toplevel @debug, @warn, @error
2020-01-19 00:10:37 -05:00
ConnorSkees
c35940b84e
Refactor include parsing into src/mixin.rs
2020-01-18 23:55:11 -05:00
ConnorSkees
b25fe63e8e
Further reduce usage of .clone()
2020-01-18 21:05:26 -05:00
ConnorSkees
720b1e9f22
Reduce usage of .clone()
2020-01-18 20:24:28 -05:00
ConnorSkees
b28295d2b1
Refactor mixin parsing into mixin.rs
2020-01-18 19:54:47 -05:00
ConnorSkees
2f1113ead8
Tidy clippy allows
2020-01-18 19:44:34 -05:00
ConnorSkees
622ca8ceef
Remove more instances of unwrap()
2020-01-18 19:00:49 -05:00
ConnorSkees
bb10fad2b8
Tidy imports
2020-01-18 18:36:00 -05:00
ConnorSkees
f3d21f1677
Parse files given path from stdin
2020-01-18 18:12:53 -05:00
ConnorSkees
0485256115
Handle basic imports
2020-01-18 15:47:51 -05:00