generated from sylhare/Type-on-Strap
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
53 additions
and
2 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 |
---|---|---|
@@ -1,7 +1,58 @@ | ||
--- | ||
layout: post | ||
title: Plugins, LOTS of Plugins | ||
title: Quick Start Guide | ||
author: JeremyZhang | ||
tags: [Test, Keystone,CAS] | ||
excerpt_separator: <!--more--> | ||
--- | ||
--- | ||
# Development | ||
|
||
To develop the project, you need to run it from the source. Therefore, using `Docker` or `npx` might not work well. The source code of our edition is stored on [GitHub](https://github.com/JeremyZXi/Silex). | ||
|
||
To get started, open a terminal and navigate to the directory where you want the project to be located: | ||
|
||
```sh | ||
$ cd <your chosen directory> | ||
``` | ||
|
||
Next, clone the repository and navigate to the project directory: | ||
|
||
```sh | ||
$ git clone https://github.com/JeremyZXi/Silex.git | ||
$ cd Silex | ||
``` | ||
|
||
Install the project dependencies: | ||
|
||
```sh | ||
$ npm install | ||
``` | ||
|
||
Build the project: | ||
|
||
```sh | ||
$ npm run build | ||
``` | ||
|
||
My understanding is that you need to modify the TypeScript files in the `src/` directory and then use `npm run build` to compile the code into a runnable format. The plugin management for `GrapesJS` is located at `Silex/src/ts/client/grapesjs/index.ts`. | ||
|
||
I added a `GrapesJS` plugin using the following code: | ||
|
||
```javascript | ||
import { yourPluginName } from 'your-plugin'; | ||
// rest of the code...... | ||
const plugins = [ | ||
{ name: 'your-plugin', value: yourPluginName }, | ||
]; | ||
``` | ||
The additional GrapesJS plugins that have been successfully integrated are: | ||
|
||
``` | ||
grapesjs-tui-image-editor | ||
grapesjs-typed | ||
grapesjs-tabs | ||
grapesjs-component-countdown | ||
grapesjs-navbar | ||
``` | ||
|
||
Additionally, I modified the options in `grapesjs-blocks-basic` to enable all blocks. |