Skip to content

Commit

Permalink
Configured vue cli builder
Browse files Browse the repository at this point in the history
  • Loading branch information
vasil-sokolov committed Oct 27, 2023
1 parent fcb8cc4 commit 0151f6c
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VUE_APP_API_HOST=API_LOCAL_HOST
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
/*.zip
.vscode/
.php-cs-fixer.cache
.env
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,25 @@ git clone https://github.com/afterlogic/webmail-pro-8.git INSTALL_FOLDER_PATH
./builder.sh -t build
```
5. Now you are ready to open a URL pointing to the installation directory in your favorite web browser. Be sure to add `/adminpanel/` to main URL to access admin interface.
5. In case you want to use the product in development mode and work with JS, you need to run webpack dev server. But before that rename .env.dist to .env and specify the Web API host. For example, `http://localhost/aurora/`.
Please note that if the backend responds on a domain other than localhost, you will have to specify custom headers in the index.php file to avoid CORS blocking cross-domain requests.
6. Upon installing the product, you'll need to [configure your installation](https://afterlogic.com/docs/webmail-pro/configuring-webmail).
Now you can run webpack dev server:
```
npm run serve
```
This will compile JS script files. If you need to work with CSS, you need to run the following command:
```
npm run styles:watch --themes=Default,DefaultDark,DeepForest,Funny,Sand
```
You can modify the themes list and specify the themes you are currently working with.
6. Now you are ready to open a URL pointing to the installation directory in your favorite web browser. Be sure to add `/adminpanel/` to main URL to access admin interface.
7. Upon installing the product, you'll need to [configure your installation](https://afterlogic.com/docs/webmail-pro/configuring-webmail).

**IMPORTANT:**

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"license": "AGPL-3.0",
"scripts": {
"serve": "vue-cli-service serve",
"js:build": "node -e \"require('./modules/CoreWebclient/gulp-tasks/javascript.js').default.build()\"",
"js:min": "node -e \"require('./modules/CoreWebclient/gulp-tasks/javascript.js').default.min()\"",
"js:watch": "node -e \"require('./modules/CoreWebclient/gulp-tasks/javascript.js').default.watch()\"",
Expand Down
3 changes: 3 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const config = require('./modules/CoreWebclient/gulp-tasks/vue.config.js')

module.exports = config

0 comments on commit 0151f6c

Please sign in to comment.