A Nuxt.js + Vuetify.js starter project template without the distraction of a complicated development environment.
This is a project template for vue-cli.
$ vue init ncviewer/vuetify-template my-project
$ cd my-project
# run dev server
$ npm run dev
# OR
$ npx nuxtMake sure to use a version of vue-cli >= 2.1 (
vue -V).
# serve with hot reloading at localhost
$ npm run devGo to http://localhost
# build for production and launch the server
$ npm run build
$ npm start# generate a static project
$ npm run generateBuddy works is used to automate our code tests. Currently this runs eslint and check if the site successfully builds.
PR's adding additional tests through the use of a tool like jest are welcomed.
To test locally, clone this repo and install dependancies through npm.
-
After dependancies are installed, simply run:
npm test -
A new folder
test-buildwill be created with an instance of your template and settings as defined by/scenarios/full.json -
Then simply
cd test-buildand install the template dependancies withnpm ci. -
Lastly run
npm run buildto generate the site (automatically runs linter). -
You can then Use
npm startto start the server and verify any changes are functional as expected.
In order to setup a CI server to run tests, create a configuration that clones the repo and automates the above tests.