English | Japanese
A boilerplate integrating Foundation for Sites and VueJS (Phase I)
This repository is the simplest example of how to use Vue single page application in Foundation for Sites. The project is a template using webpack and babel, gulp, and Vue Custom Element. It is our policy to use the latest version of each.
I wanted to work with the Foundation framework and Vue.JS.
First of all, it was created for beginners of VueJS. Basically, the main focus is to help you understand how to add VueJS to the template created by the foundation new
(This is a command you don't need if you want to use the repository.).
It's like this.
<div>
<my-custom-element></my-custom-element>
</div>
This project requires Node.js <=v12.1.0 and v14.15.5<= is recommended. Please be aware that you might encounter problems with the installation if you are using the most current Node version (bleeding edge) with all the latest features.
To set up the template manually, first download it in Git: the
git clone https://github.com/annrie/Foundation-Vue.git projectname
cp projectname
Then open the folder in your command line, and install the needed dependencies. You can also use NPM, but I'm using yarn2.
# install dependencies
npm install
or
yarn set version berry # Setup for yarn2
echo "nodeLinker: node-modules" > .yarnrc.yml
yarn install
Finally, run npm start
or yarn start
to run Gulp. The finished site will be created in a folder named dist
which can be viewed at the following URL.
http://localhost:8000
To create a compressed, ready-to-use asset, run npm run build
or yarn run build
.
- Adding Vue.js to Foundation's ZURB Stack was very helpful. Normally, it should be folk, but there were too many changes, so I decided to launch a new one.
- The components pages of vue-foundation are also available in this repository. Thank you.
- The animation of the top page is based on the work of yui540. I would like to thank you also.
MIT Copyright © 2020-present, Annrie