Skip to content

Commit 5560b9d

Browse files
authored
Merge pull request #269 from topcoder-platform/issues-103
Issues-103, Issues-207
2 parents d28771a + 73f6056 commit 5560b9d

File tree

126 files changed

+4168
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+4168
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ installation.These variables are mandatory.
2929
## Setup Vanilla Forums
3030

3131
Go to [Setup Vanilla Forums](./docs/SetupVanillaForums.md) to complete installation.
32+
33+
## Build Vanilla Forums
34+
35+
Go to [Build Vanilla Forums](./docs/BuildVanillaForums.md) to install dependencies and build assets.

docs/BuildVanillaForums.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Build Vanilla Forums
2+
3+
Vanilla Forums has pre-built frontend assets (js, css and addons assets).
4+
5+
The full source code of Vanilla Forums is available as a Git repository:
6+
7+
https://github.com/vanilla/vanilla/tree/Vanilla_3.3.
8+
9+
## Requirements
10+
11+
- Node.js “>=8.0.0 <12.0.0”
12+
- PHP 7.2 - 7.4 (as of Vanilla 3.3)
13+
- Yarn
14+
- Composer
15+
16+
## Installing yarn
17+
18+
Install yarn:
19+
20+
`npm install -g yarn`
21+
22+
## Installing composer
23+
24+
Install composer:
25+
26+
`php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"`
27+
28+
`php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"`
29+
30+
`php composer-setup.php`
31+
32+
`php -r "unlink('composer-setup.php');"`
33+
34+
35+
## Building Frontend assets
36+
37+
1.Clone or download a repo. Go to the root folder:
38+
cd `Vanilla_3.3`
39+
40+
2.The 'forum' repo overrides Vanilla files.
41+
Copy 'forums/vanilla' to `Vanilla_3.3`.
42+
43+
3.Run the command to install dependencies and build:
44+
`composer install or php composer.phar install`
45+
46+
You should see output
47+
48+
![./images/build.png](./images/build.png)
49+
50+
51+
4.Copy all files from the 'dist' folder to 'forums/vanilla/dist' (the 'forums' repo).
52+
53+
Notes:
54+
The first time you run this, it may take a while. Subsequent runs should be faster, but if you are constantly
55+
updating the javascript or CSS or addons or themes, it's recommended to use the developer build.
56+
57+
`yarn build:dev`

docs/images/build.png

103 KB
Loading

vanilla/dist/admin/addons/dashboard.min.js

Lines changed: 468 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vanilla/dist/admin/addons/rich-editor.min.js

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)