Toying around with VueJS
When pushing to the master
branch, Travis-CI will build the site and push it into the gh-pages
branch.
The project is using yarn
, but you're free to substitute it for npm
.
First you need to install the package dependencies.
yarn install
Afterwards you can start the server. We use nodemon
to track changes to your webpack config and restart the server on the fly.
The server will be availaible via localhost:8000
.
yarn start
Assuming hotel
is installed, use this command to access the site via http://vuejsplay.dev
.
hotel add 'yarn start --port $PORT' --name vuejsplay --change-origin
To build a production version, use the following command. You'll fine the code in a newely created dist/
directory.
yarn build
# build for production and view the bundle analyzer report
yarn build --report
# run unit tests
yarn unit
# run all tests
yarn test
For a detailed explanation on how things work, check out the guide and docs for vue-loader.