-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update components plugin and deploy command * Update the documentation
- Loading branch information
1 parent
ad19782
commit 4041787
Showing
5 changed files
with
80 additions
and
42 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
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 |
---|---|---|
@@ -1,15 +1,39 @@ | ||
# Use the components | ||
# Components plugin | ||
|
||
Deploys the components dependencies | ||
Deploys the components dependencies. | ||
|
||
## Overview | ||
|
||
The framework comes with a plugin, wich minifies and deploys the dependencies of the components into the public directory of your Vapor project. | ||
The framework comes with a plugin, wich minifies and deploys the dependencies of the components at the target path. | ||
|
||
### Command | ||
|
||
Use the following command in your terminal to start the deployment. | ||
|
||
```sh | ||
swift package --allow-writing-to-package-directory deploy | ||
swift package --allow-writing-to-package-directory deploy --target-path [target-path] | ||
``` | ||
|
||
It will create a folder like this. Containing the composed CSS and JavaScript file. | ||
|
||
``` | ||
htmlkit/ | ||
├── all.css | ||
└── all.js | ||
``` | ||
|
||
Feel free to move the files or copy the content at the place you want it to be. | ||
|
||
### Steps | ||
|
||
Open the terminal and change the directory (for example to your project folder). | ||
|
||
```sh | ||
cd ExampleProject | ||
``` | ||
|
||
Enter the command and name the target path. | ||
|
||
```sh | ||
swift package --allow-writing-to-package-directory deploy --target-path "/ExampleProject/Public" | ||
``` |
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,6 +1,6 @@ | ||
# Use conversion | ||
# Converter plugin | ||
|
||
Converts HTML markup | ||
Converts HTML markup into HTMLKit syntax. | ||
|
||
## Overview | ||
|
||
|