This script allows us to convert uiflow format to vue code.
- Ver 0.01: Only ruby version is implemented
cd ruby
docker-compose run --rm flow2vue bash
ruby -Ku main.rb -t title -i flow.txt --nuxt --demo -f
use demo scaffold as initial project structure or
- prepare the project structure such as nuxt: https://ja.nuxtjs.org/guide/installation
- generate pages with flow2vue
ruby -Ku main.rb -t title -i flow.txt --nuxt --pageonly
- replace the project page srcs with generated file (e.g., dst/pages)
-t
TITLE of application-i
input file--demo
use demo scaffold--nuxt
use scaffold with nuxt patterns--cli2
[NOT RECOMMENDED] use scaffold with vue-cli2's settings-f
rewrite dst directory--pageonly
rewritedst/src
only
If you want to use old version, please use the docker-image as follows:
docker run -v $(pwd):/usr/src/app/mount azumag/vuegen mount/flows.txt title