Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
add command prefix $
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohui.lam committed Nov 17, 2017
1 parent 5f14aca commit 8d124fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ Maybe the best X-Editable PHP plugin of the world. 如果你是中文用户,
## Install

```
composer require diana/php-x-editable -vvv
$ composer require diana/php-x-editable -vvv
```

After installed, javascript and css is using jsdelivr.
But if, your project is local web using, or orther limitation to hosted assets locally,
please run the command bellow:

```
composer require diana/php-x-editable-assets -vvv
composer run-script post-autoload-dump -d vendor/diana/php-x-editable-assets
$ composer require diana/php-x-editable-assets -vvv
$ composer run-script post-autoload-dump -d vendor/diana/php-x-editable-assets
```

The secondary line, is publishing css/js to web directory of your project. it will detect laravel(lumen)
Expand All @@ -36,7 +36,7 @@ ortherwise, defaultly, it will deploy css/js to web root dir itself.
If indeed, please run

```
cp -R ./vendor/diana/php-x-editable-assets/assets/ SPECIFIC_PROJECT_FULLPATH/
$ cp -R ./vendor/diana/php-x-editable-assets/assets/ SPECIFIC_PROJECT_FULLPATH/
```


Expand Down
8 changes: 4 additions & 4 deletions README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@
## 安装

```
composer require diana/php-x-editable -vvv
$ composer require diana/php-x-editable -vvv
```

在安装完成后,javascript和css是引用jsdelivr的URL来载入的。
如果您的项目是内网,或者因为其他限制需要本地托管的,请执行下面的命令即可托管在本地。

```
composer require diana/php-x-editable-assets -vvv
composer run-script post-autoload-dump -d vendor/diana/php-x-editable-assets
$ composer require diana/php-x-editable-assets -vvv
$ composer run-script post-autoload-dump -d vendor/diana/php-x-editable-assets
```

其中,第二个命令是发布CSS/JS到项目的WEB目录的。针对laravel(lumen)和thinphp5框架,会发布到public目录。
其他情况默认发布到根目录。
如果框架不满足上面情况,需要手工执行
```
cp -R ./vendor/diana/php-x-editable-assets/assets/ 你项目的WEB根目录/
$ cp -R ./vendor/diana/php-x-editable-assets/assets/ 你项目的WEB根目录/
```


Expand Down

0 comments on commit 8d124fe

Please sign in to comment.