yii2-app-vue ¶
- for yii2 web application width vueJs
- Installation
- Usage
- Local Development Server
- Directory components vuejs to:
for yii2 web application width vueJs ¶
Installation ¶
The preferred way to install this extension is through composer.
Either run
composer create-project aki/yii2-app-vue basic
php yii migrate
npm install
Usage ¶
Development ¶
npm run dev
or
npm run watch
Local Development Server ¶
If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, you may use the serve yii command. This command will start a development server at http://localhost:8000:
php yii serve
Directory components vuejs to: ¶
assets/ contains assets definition
commands/ contains console commands (controllers)
config/ contains application configurations
controllers/ contains Web controller classes
mail/ contains view files for e-mails
models/ contains model classes
runtime/ contains files generated during runtime
tests/ contains various tests for the basic application
vendor/ contains dependent 3rd-party packages
views/ contains view files for the Web application
assets/ contains assets files
js/ contains js files
components/ contains components vue files
sass/ contains scss files
web/ contains the entry script and Web resources
Some indication of what this extension actually does would be rather usefull here.
Thank you! It`s working!
I can't use the next commands:
-npm run dev
-npm run watch
There is no dev and watch script setup in package.json file.
Can you fix this,please?
Thank you, really like this extension.
You forgot include css-loader dependency to package.json. So it's unpossible to use
@IgorTsvetkov
Hi.
Dear friend, command code npm run dev
Available in package.json.
Please order code first
npm i
And then
Run npm run dev
@IgorTsvetkov
20796
There is a css-loader in this package
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.