Skip to content

Commit 459fa74

Browse files
committed
.
1 parent bbb4a1c commit 459fa74

File tree

4 files changed

+32
-20
lines changed

4 files changed

+32
-20
lines changed

CHANGELOG.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# Zanaptak.TypedCssClasses changelog
1+
# Changelog - Zanaptak.TypedCssClasses
22

3-
## x.x.x (unreleased)
3+
[![GitHub](https://img.shields.io/badge/-github-gray?logo=github)](https://github.com/zanaptak/TypedCssClasses) [![NuGet](https://img.shields.io/nuget/v/Zanaptak.TypedCssClasses?logo=nuget)](https://www.nuget.org/packages/Zanaptak.TypedCssClasses)
44

5-
- Add CSS Module support in Fable projects ([#11](https://github.com/zanaptak/TypedCssClasses/pull/11)) @alfonsogarciacaro
6-
- See fableCssModule parameter
5+
## 1.0.0 (2021-07-30)
6+
7+
- Add [`fableCssModule`](https://github.com/zanaptak/TypedCssClasses/blob/main/doc/configuration.md#fablecssmodule) parameter for CSS Module support in Fable projects ([#11](https://github.com/zanaptak/TypedCssClasses/pull/11)) @alfonsogarciacaro
78
- Fix stale cache data when changing `naming` and `nameCollisions` parameters ([#12](https://github.com/zanaptak/TypedCssClasses/issues/12))
89

910
## 0.4.0 (2020-07-26)
@@ -18,17 +19,17 @@
1819

1920
## 0.3.0 (2020-07-14)
2021

21-
- Add configurable external command capability for CSS preprocessing ([#4](https://github.com/zanaptak/TypedCssClasses/issues/4))
22+
- Add configurable [external command](https://github.com/zanaptak/TypedCssClasses/blob/main/doc/configuration.md#external-command-support-for-css-preprocessing) capability for CSS preprocessing ([#4](https://github.com/zanaptak/TypedCssClasses/issues/4))
2223
- Support environment variables in parameters
2324
- Support OS-specific values in parameters
24-
- Add log file option
25+
- Add [`logFile`](https://github.com/zanaptak/TypedCssClasses/blob/main/doc/configuration.md#logfile) option
2526
- Enable Source Link
2627
- __Breaking change__: Target .NET Standard 2.0 only, per Type Provider SDK guidance (may affect very old build chains)
27-
- __Breaking change__: The environment variable and OS-specific parameter support may affect existing parameter values if they use the same syntax. See the `osDelimiters` and `expandVariables` options to address this.
28+
- __Breaking change__: The environment variable and OS-specific parameter support may affect existing parameter values if they use the same syntax. See the [`osDelimiters`](https://github.com/zanaptak/TypedCssClasses/blob/main/doc/configuration.md#osdelimiters) and [`expandVariables`](https://github.com/zanaptak/TypedCssClasses/blob/main/doc/configuration.md#expandvariables) options to address this.
2829

2930
## 0.2.0 (2019-09-27)
3031

31-
- Add `nameCollisions` parameter for handling duplicate property names ([#1](https://github.com/zanaptak/TypedCssClasses/issues/1))
32+
- Add [`nameCollisions`](https://github.com/zanaptak/TypedCssClasses/blob/main/doc/configuration.md#namecollisions) parameter for handling duplicate property names ([#1](https://github.com/zanaptak/TypedCssClasses/issues/1))
3233

3334
## 0.1.0 (2019-08-21)
3435

@@ -37,7 +38,7 @@
3738

3839
## 0.0.3 (2019-08-10)
3940

40-
- Add GetProperties method providing seq of generated properties
41+
- Add [`getProperties`](https://github.com/zanaptak/TypedCssClasses/blob/main/doc/configuration.md#getproperties) option providing seq of generated properties, useful for code generation
4142
- Add .NET Framework target
4243

4344
## 0.0.2 (2019-08-06)

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Zanaptak.TypedCssClasses [![Nuget](https://img.shields.io/nuget/v/Zanaptak.TypedCssClasses)](https://www.nuget.org/packages/Zanaptak.TypedCssClasses/)
1+
# Zanaptak.TypedCssClasses
2+
3+
[![GitHub](https://img.shields.io/badge/-github-gray?logo=github)](https://github.com/zanaptak/TypedCssClasses) [![NuGet](https://img.shields.io/nuget/v/Zanaptak.TypedCssClasses?logo=nuget)](https://www.nuget.org/packages/Zanaptak.TypedCssClasses)
24

35
A CSS class type provider for F# web development.
46

@@ -67,9 +69,9 @@ div [ ClassName <| String.concat " " [
6769

6870
Preconfigured sample projects to see it in action and use as a starting point:
6971

70-
- [Fable Sass sample](https://github.com/zanaptak/TypedCssClasses/tree/master/sample/FableSass) - Demonstrates TypedCssClasses with Sass compilation in a Fable project.
72+
- [Fable Sass sample](https://github.com/zanaptak/TypedCssClasses/tree/main/sample/FableSass) - Demonstrates TypedCssClasses with Sass compilation in a Fable project.
7173

72-
- [Fable Tailwind sample](https://github.com/zanaptak/TypedCssClasses/tree/master/sample/FableTailwind) - Demonstrates TypedCssClasses with Tailwind CSS in a Fable project.
74+
- [Fable Tailwind sample](https://github.com/zanaptak/TypedCssClasses/tree/main/sample/FableTailwind) - Demonstrates TypedCssClasses with Tailwind CSS in a Fable project.
7375

7476
## Getting started
7577

@@ -92,9 +94,11 @@ type css = CssClasses<"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bo
9294
let x = css.``display-1``
9395
```
9496

97+
It should work with any IDE that supports type providers. (Tested in Visual Studio Code with Ionide-fsharp extension on Windows and Linux, and in Visual Studio on Windows.)
98+
9599
## Configuration
96100

97-
See the [configuration instructions](doc/configuration.md) for full details on configuration parameters to customize the behavior of the type provider.
101+
See the [configuration instructions](https://github.com/zanaptak/TypedCssClasses/blob/main/doc/configuration.md) for full details on configuration parameters to customize the behavior of the type provider.
98102

99103
## Notes
100104

@@ -104,4 +108,4 @@ Web URLs are expected to use static CDN or otherwise unchanging content and are
104108

105109
If using Fable 2.x, update fable-compiler to version 2.3.17 or later to avoid an issue with the type provider failing to resolve relative file paths.
106110

107-
CSS `@import` rules are not processed internally by the type provider. If desired, they can be processed via external command; see the [TestWithFable test project](https://github.com/zanaptak/TypedCssClasses/tree/master/test/TestWithFable) for an example using [PostCSS](https://postcss.org/) with the [postcss-import](https://github.com/postcss/postcss-import) plugin.
111+
CSS `@import` rules are not processed internally by the type provider. If desired, they can be processed via external command; see the [TestWithFable test project](https://github.com/zanaptak/TypedCssClasses/tree/main/test/TestWithFable) for an example using [PostCSS](https://postcss.org/) with the [postcss-import](https://github.com/postcss/postcss-import) plugin.

doc/configuration.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Zanaptak.TypedCssClasses configuration instructions
1+
# Configuration - Zanaptak.TypedCssClasses
2+
3+
[![GitHub](https://img.shields.io/badge/-github-gray?logo=github)](https://github.com/zanaptak/TypedCssClasses) [![NuGet](https://img.shields.io/nuget/v/Zanaptak.TypedCssClasses?logo=nuget)](https://www.nuget.org/packages/Zanaptak.TypedCssClasses)
24

35
## Getting started
46

@@ -21,7 +23,7 @@ type css = CssClasses<"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bo
2123
let x = css.``display-1``
2224
```
2325

24-
This capability should work with any IDE that supports type providers. (Tested on Visual Studio Code with Ionide-fsharp extension on Windows and Linux, and Visual Studio 2019 on Windows.)
26+
It should work with any IDE that supports type providers. (Tested in Visual Studio Code with Ionide-fsharp extension on Windows and Linux, and in Visual Studio on Windows.)
2527

2628
## External command support for CSS preprocessing
2729

@@ -71,10 +73,6 @@ If the `source` parameter specifies a local file, the type provider will monitor
7173

7274
If a `commandFile` is specified, any leading lines from the output of the command that exactly specify a local file path will also be watched.
7375

74-
## CSS Module support for Fable
75-
76-
In a Fable project, CSS modules can be used
77-
7876
## Parameters
7977

8078
### source

src/TypedCssClasses.sln

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1010
..\.editorconfig = ..\.editorconfig
1111
..\.gitattributes = ..\.gitattributes
1212
..\.gitignore = ..\.gitignore
13+
..\CHANGELOG.md = ..\CHANGELOG.md
1314
..\invoke.build.ps1 = ..\invoke.build.ps1
1415
..\README.md = ..\README.md
1516
EndProjectSection
1617
EndProject
18+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "doc", "doc", "{149E8767-E720-444B-BC61-C64C8510D37A}"
19+
ProjectSection(SolutionItems) = preProject
20+
..\doc\configuration.md = ..\doc\configuration.md
21+
EndProjectSection
22+
EndProject
1723
Global
1824
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1925
Debug|Any CPU = Debug|Any CPU
@@ -31,6 +37,9 @@ Global
3137
GlobalSection(SolutionProperties) = preSolution
3238
HideSolutionNode = FALSE
3339
EndGlobalSection
40+
GlobalSection(NestedProjects) = preSolution
41+
{149E8767-E720-444B-BC61-C64C8510D37A} = {CF019DE1-D98F-40B5-A1D4-FC4BE9AC74B6}
42+
EndGlobalSection
3443
GlobalSection(ExtensibilityGlobals) = postSolution
3544
SolutionGuid = {5CDB4F14-36E1-489C-B4F3-E9E8B8E027F4}
3645
EndGlobalSection

0 commit comments

Comments
 (0)