-
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.
- Loading branch information
1 parent
057270d
commit 63acc0e
Showing
6 changed files
with
71 additions
and
18 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,17 @@ | ||
package org.groocss | ||
|
||
import groovy.transform.CompileStatic | ||
import groovy.transform.EqualsAndHashCode | ||
import groovy.transform.TupleConstructor | ||
|
||
/** | ||
* Created by adavis on 8/9/17. | ||
*/ | ||
@TupleConstructor | ||
@EqualsAndHashCode | ||
@CompileStatic | ||
class Comment { | ||
String comment | ||
boolean isEmpty() { comment == '' } | ||
String toString() { "/**$comment*/" } | ||
} |
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
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,17 @@ | ||
package org.groocss | ||
|
||
import groovy.transform.CompileStatic | ||
import groovy.transform.EqualsAndHashCode | ||
import groovy.transform.TupleConstructor | ||
|
||
/** | ||
* Created by adavis on 8/9/17. | ||
*/ | ||
@TupleConstructor | ||
@EqualsAndHashCode | ||
@CompileStatic | ||
class Raw { | ||
String rawCss | ||
boolean isEmpty() { rawCss == '' } | ||
String toString() {rawCss} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.groocss | ||
|
||
import spock.lang.Specification | ||
|
||
/** | ||
* Created by adavis on 8/9/17. | ||
*/ | ||
class RawSpec extends Specification { | ||
|
||
def "raw should just include it"() { | ||
given: | ||
def css = GrooCSS.process { | ||
raw '::webkit-blaw { dostuff }' | ||
} | ||
expect: | ||
'::webkit-blaw { dostuff }' == "$css" | ||
} | ||
} |