본문 바로가기
Sundry/Python

vuengo tutorial

by phpdoumi 2018. 12. 18.

(.venv) root@da0fa5dd7aae:~/vuengo# npm install -g vue-cli

npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)

/usr/bin/vue -> /usr/lib/node_modules/vue-cli/bin/vue

/usr/bin/vue-init -> /usr/lib/node_modules/vue-cli/bin/vue-init

/usr/bin/vue-list -> /usr/lib/node_modules/vue-cli/bin/vue-list

+ vue-cli@2.9.6

updated 2 packages in 6.515s

(.venv) root@da0fa5dd7aae:~/vuengo# vue init webpack vuengo


? Target directory exists. Continue? No


(.venv) root@da0fa5dd7aae:~/vuengo# ls

vuengo

(.venv) root@da0fa5dd7aae:~/vuengo# tree

.

└── vuengo

    ├── db.sqlite3

    ├── manage.py

    └── vuengo

        ├── __init__.py

        ├── __pycache__

        │   ├── __init__.cpython-36.pyc

        │   ├── settings.cpython-36.pyc

        │   ├── urls.cpython-36.pyc

        │   └── wsgi.cpython-36.pyc

        ├── settings.py

        ├── urls.py

        └── wsgi.py


3 directories, 10 files

(.venv) root@da0fa5dd7aae:~/vuengo# vue init webpack vuengo


? Target directory exists. Continue? Yes

? Project name vuengo

? Project description A Vue.js project

? Author delphi <delphi@kolon.com>

? Vue build standalone

? Install vue-router? Yes

? Use ESLint to lint your code? No

? Set up unit tests No

? Setup e2e tests with Nightwatch? No

? Should we run `npm install` for you after the project has been created? (recom

mended) npm


   vue-cli · Generated "vuengo".



# Installing project dependencies ...

# ========================


npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.

npm WARN deprecated bfj-node4@5.3.1: Switch to the `bfj` package for fixes and new features!

npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.


> uglifyjs-webpack-plugin@0.4.6 postinstall /root/vuengo/vuengo/node_modules/webpack/node_modules/uglifyjs-webpack-plugin

> node lib/post_install.js


npm notice created a lockfile as package-lock.json. You should commit this file.

npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})


added 1127 packages from 647 contributors and audited 10642 packages in 24.583s

found 2 vulnerabilities (1 moderate, 1 high)

  run `npm audit fix` to fix them, or `npm audit` for details


# Project initialization finished!

# ========================


To get started:


  cd vuengo

  npm run dev


Documentation can be found at https://vuejs-templates.github.io/webpack


(.venv) root@da0fa5dd7aae:~/vuengo# cd vuengo/

(.venv) root@da0fa5dd7aae:~/vuengo/vuengo# ls

README.md  config      index.html  node_modules       package.json  static

build      db.sqlite3  manage.py   package-lock.json  src           vuengo

(.venv) root@da0fa5dd7aae:~/vuengo/vuengo# export HOST=0.0.0.0

(.venv) root@da0fa5dd7aae:~/vuengo/vuengo# npm run dev


> vuengo@1.0.0 dev /root/vuengo/vuengo

> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js


 95% emitting                                                                   

 DONE  Compiled successfully in 3256ms                                  23:12:26


 I  Your application is running here: http://0.0.0.0:8080


package.json file 변경.

  "scripts": {

    "dev": "webpack-dev-server --host 0.0.0.0 --disableHostCheck --inline --progress --config build/webpack.dev.conf.js",

    "start": "npm run dev",

    "build": "node build/build.js"

  },


(.venv) root@da0fa5dd7aae:~/vuengo# npm install axios

npm WARN saveError ENOENT: no such file or directory, open '/root/vuengo/package.json'

npm notice created a lockfile as package-lock.json. You should commit this file.

npm WARN enoent ENOENT: no such file or directory, open '/root/vuengo/package.json'

npm WARN vuengo No description

npm WARN vuengo No repository field.

npm WARN vuengo No README data

npm WARN vuengo No license field.


+ axios@0.18.0

added 5 packages from 8 contributors and audited 5 packages in 1.513s

found 0 vulnerabilities




'Sundry > Python' 카테고리의 다른 글

vue-cli jquery bootstrap 설치  (0) 2018.12.28
vue-drf-auth-demo #1  (0) 2018.12.25
json encode decode 예제  (0) 2018.12.14
django-widget-tweaks  (0) 2018.12.03
How to Render Django Form Manually  (0) 2018.12.02