-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 067c0f7 Author: Francesco Improta <[email protected]> Date: Sun Apr 24 08:54:37 2022 +0200 Build new zip commit 6af513f Author: Francesco Improta <[email protected]> Date: Sun Apr 24 08:54:27 2022 +0200 Changed zip output folder commit beb7418 Author: Francesco Improta <[email protected]> Date: Sun Apr 24 08:44:35 2022 +0200 Added new release post commit e1fb12a Author: Francesco Improta <[email protected]> Date: Sun Apr 24 08:44:23 2022 +0200 Updated blog meta text color and size commit d5d72ee Author: Francesco Improta <[email protected]> Date: Sun Apr 24 08:43:07 2022 +0200 Bumped version commit 376d4b2 Author: Francesco Improta <[email protected]> Date: Sun Apr 24 08:43:01 2022 +0200 Updated CHANGELOG commit caa230a Author: Omar Muscatello <[email protected]> Date: Sun Apr 24 08:22:21 2022 +0200 SCSS compilation and library building (#44) * Add SCSS compiler * Add documentation * Use compiled library in docs commit d9814b1 Author: Francesco Improta <[email protected]> Date: Thu Mar 24 15:10:54 2022 +0100 Added a draft for the next release
- Loading branch information
1 parent
f1a7402
commit 026acfe
Showing
46 changed files
with
500 additions
and
10,075 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 |
---|---|---|
|
@@ -4,3 +4,7 @@ node_modules/ | |
*.sass.map | ||
*.scss.map | ||
.DS_Store | ||
.idea | ||
bin | ||
lib/dist | ||
lib/dev-server |
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 |
---|---|---|
|
@@ -233,5 +233,5 @@ body { | |
} | ||
|
||
.lead { | ||
color: $gray-600; | ||
color: $gray-800; | ||
} |
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 |
---|---|---|
|
@@ -26,3 +26,8 @@ | |
.blog-footer { | ||
text-align: center; | ||
} | ||
|
||
.card-meta { | ||
color: $gray-600; | ||
font-size: $font-size-sm; | ||
} |
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,32 @@ | ||
--- | ||
title: "Sass/SCSS support, local server and automation" | ||
description: "What new features are we working on this year" | ||
lead: "More features for local development" | ||
date: 2022-04-23T09:00:00+01:00 | ||
draft: false | ||
weight: 90 | ||
contributors: ["Francesco Improta"] | ||
--- | ||
|
||
With the [PR #44](https://github.com/zetareticoli/cssui/pull/44) we have added some features for local development tasks. | ||
|
||
CSS files are renamed to SCSS. The content of the files has not been touched. The content of HTML files must be nested into <body> to make working the hot-reload feature of the web-server. | ||
|
||
It is now possible to: | ||
|
||
- **start a dev server** with hot-reload for local development | ||
- **build the library**, including automatic browser-vendors prefixing and minification. | ||
|
||
This will make it easier to release a new version of the library. | ||
|
||
[Check the docs](https://www.cssui.dev/docs/development/local-development) for more information. | ||
|
||
The components `.md` files have been updated to use the compiled version of the library. They cannot use the source files anymore since they are SCSS. | ||
|
||
As of now, the build files of the library have to be manually copied to the assets/cssui folder. A new PR will be created which will include this improvement. | ||
|
||
[Follow us on Twitter](https://twitter.com/css_ui) or on [Star on Github](https://github.com/zetareticoli/cssui) to stay updated! | ||
|
||
Thank you 🙏 | ||
|
||
*CSSUI Team* |
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
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
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,57 @@ | ||
--- | ||
title: "Build the library" | ||
description: "Building the library is easy as running an NPM task." | ||
lead: "Building the library is easy as running an NPM task." | ||
date: 2022-03-05T14:32:00+01:00 | ||
lastmod: 2022-03-05T14:32:00+01:00 | ||
draft: false | ||
images: [] | ||
menu: | ||
docs: | ||
parent: "development" | ||
weight: 101 | ||
toc: true | ||
--- | ||
|
||
## Setup | ||
|
||
Navigate to the `lib` folder: | ||
|
||
```bash | ||
cd lib | ||
``` | ||
|
||
and then install NPM packages: | ||
|
||
```bash | ||
npm i | ||
``` | ||
|
||
## Build the library | ||
|
||
You can now build the library by running: | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
This will generate the following files in the `lib/dist` folder: | ||
- `cssui.min.css` | ||
- `cssui.min.css.map` | ||
- `cssui.<component>.min.css` | ||
- `cssui.<component>.min.css.map` | ||
- `cssui.bundle.min.css` | ||
- `cssui.bundle.min.css.map` | ||
|
||
The `cssui.bundle.min.css` file contains the `cssui.min.css` and all the `cssui.<component>.min.css` files. | ||
It's a convenient file for fast prototyping. | ||
|
||
In a production scenario, remember don't use the bundle. Include only the `cssui.min.css` and the | ||
`cssui.<component>.min.css` you need instead. | ||
|
||
For each SCSS file, the `build` task performs compilation, browser-vendors prefixing based on | ||
[browserslist](https://github.com/browserslist/browserslist), and minification. | ||
|
||
### The `build:release` task | ||
This task is the same as the `build` one, except that it creates an additional `cssui.zip` file which contains the | ||
output of the `build` task. This is a convenient task for releasing a new version of CSSUI where the ZIP file is needed. |
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,47 @@ | ||
--- | ||
title: "Local development" | ||
description: "The repo contains a simple web server allowing developers to test changes locally. It supports hot-reload, meaning that every time a file is changed, the browser will automatically load the latest changes." | ||
lead: "The repo contains a simple web server allowing developers to test changes locally. It supports hot-reload, meaning that every time a file is changed, the browser will automatically load the latest changes." | ||
date: 2022-03-05T14:32:00+01:00 | ||
lastmod: 2022-03-05T14:32:00+01:00 | ||
draft: false | ||
images: [] | ||
menu: | ||
docs: | ||
parent: "development" | ||
weight: 100 | ||
toc: true | ||
--- | ||
|
||
## Setup | ||
|
||
Navigate to the `lib` folder: | ||
|
||
```bash | ||
cd lib | ||
``` | ||
|
||
and then install NPM packages: | ||
|
||
```bash | ||
npm i | ||
``` | ||
|
||
## Start the dev server | ||
|
||
You can now start the web server by running: | ||
|
||
```bash | ||
npm run start | ||
``` | ||
|
||
By default, the web server listens on `http://localhost:8080`. Make sure the port is not used by other programs. | ||
|
||
The web server allows to navigate the directory tree. You can preview your component clicking on the homonym folder and | ||
then on the related `.html` file. | ||
|
||
**Note:** the web server's root path is the `lib/dev-server` folder. It contains the compiled SCSS file and the HTML files. | ||
|
||
## Hot-reload | ||
Every time you change the `.html` or `.scss` file of a component, the browser will reflect the latest changes automatically. | ||
|
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 +1 @@ | ||
<p><small>Posted {{ .PublishDate.Format "January 2, 2006" }} by {{ if .Params.contributors -}}{{ range $index, $contributor := .Params.contributors }}{{ if gt $index 0 }} and {{ end }}<a class="stretched-link position-relative" href="{{ "/contributors/" | relURL }}{{ . | urlize }}/">{{ . }}</a>{{ end -}}{{ end -}} ‐ <strong>{{ .ReadingTime -}} min read</strong></small><p> | ||
<p class="card-meta"><small>Posted {{ .PublishDate.Format "January 2, 2006" }} by {{ if .Params.contributors -}}{{ range $index, $contributor := .Params.contributors }}{{ if gt $index 0 }} and {{ end }}<a class="stretched-link position-relative" href="{{ "/contributors/" | relURL }}{{ . | urlize }}/">{{ . }}</a>{{ end -}}{{ end -}} ‐ <strong>{{ .ReadingTime -}} min read</strong></small><p> |
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 @@ | ||
defaults |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.