Skip to content

Issues-103, Issues-207 #269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ installation.These variables are mandatory.
## Setup Vanilla Forums

Go to [Setup Vanilla Forums](./docs/SetupVanillaForums.md) to complete installation.

## Build Vanilla Forums

Go to [Build Vanilla Forums](./docs/BuildVanillaForums.md) to install dependencies and build assets.
57 changes: 57 additions & 0 deletions docs/BuildVanillaForums.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Build Vanilla Forums

Vanilla Forums has pre-built frontend assets (js, css and addons assets).

The full source code of Vanilla Forums is available as a Git repository:

https://github.com/vanilla/vanilla/tree/Vanilla_3.3.

## Requirements

- Node.js “>=8.0.0 <12.0.0”
- PHP 7.2 - 7.4 (as of Vanilla 3.3)
- Yarn
- Composer

## Installing yarn

Install yarn:

`npm install -g yarn`

## Installing composer

Install composer:

`php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"`

`php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"`

`php composer-setup.php`

`php -r "unlink('composer-setup.php');"`


## Building Frontend assets

1.Clone or download a repo. Go to the root folder:
cd `Vanilla_3.3`

2.The 'forum' repo overrides Vanilla files.
Copy 'forums/vanilla' to `Vanilla_3.3`.

3.Run the command to install dependencies and build:
`composer install or php composer.phar install`

You should see output

![./images/build.png](./images/build.png)


4.Copy all files from the 'dist' folder to 'forums/vanilla/dist' (the 'forums' repo).

Notes:
The first time you run this, it may take a while. Subsequent runs should be faster, but if you are constantly
updating the javascript or CSS or addons or themes, it's recommended to use the developer build.

`yarn build:dev`
Binary file added docs/images/build.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
468 changes: 468 additions & 0 deletions vanilla/dist/admin/addons/dashboard.min.js

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions vanilla/dist/admin/addons/rich-editor.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading