Skip to content
/ Foundation-Vue Public template

A Foundation + VueJS project use webpack4 , babel7 and gulp4 (Phase I)

License

Notifications You must be signed in to change notification settings

annrie/Foundation-Vue

Repository files navigation

Foundation - Vue

English | Japanese

A boilerplate integrating Foundation for Sites and VueJS (Phase I)

site image

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.

Motivation for development

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>

Requirements

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.

Setup

To set up the template manually, first download it in Git: the

git clone https://github.com/annrie/Foundation-Vue.git projectname
cp projectname

Installation

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.

acknowledgement

  • 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.

License

MIT Copyright © 2020-present, Annrie