GithubHelp home page GithubHelp logo

mfk-smart / parceljs-vue-bulma Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 12.98 MB

Simple boilerplate for fronted development starring Parcel (as web application bundler), Vue.js (as js framework) and Bulma (as css framework).

HTML 4.91% JavaScript 27.31% CSS 0.09% Shell 17.83% Vue 49.87%

parceljs-vue-bulma's Introduction

Basic front-end development package

This is a basic starter template to be used in small front-end web application development. It consists of the following components:

  1. ParcelJS - Blazing fast, zero configuration web application bundler
  2. Bulma - a modern CSS framework based on Flexbox
  3. Vue.js - The progressive JavaScript Framework

Installation

Just clone the files from git repo and run npm install.

#Clone the repository

git clone https://github.com/mfk-smart/parceljs-vue-bulma.git

#Change to folder
cd parceljs-vue-bulma

#Install using npm
npm install

#Start development server
npm run dev

#Build for production
npm run build

Scripts Usage

You can generate pages and components quickly by using the following commands:

# Generate page with route and store files
# Route and store import strings are also added to main route and store.

npm run page-create -- -n SamplePage -r -s

# Just generate page with route and store files
# This one will not add import strings to main route or store.

npm run page-create -- -n SamplePage

Similar approach is used for component generation. There's no route option.

# Generate component with store file
# Store import string is also added to main store.

npm run subcomponent-create -- -n SampleComponent -s

# Just generate page and store file
# This one will not add import strings to main store.

npm run subcomponent-create -- -n SampleComponent

Linting and Formatting

I'm using ESLint and Prettier for code linting and formatting. Following is the lines from my .vimrc configuration to use ALE, ESLint and Prettier together:

"... Install ALE and vim-prettier
Plug 'w0rp/ale'
Plug 'prettier/vim-prettier', { 'do': 'npm install' }

"... Select linter and fixer
let g:ale_linters              = { 'javascript': ['eslint'] }
let g:ale_fixers               = { 'javascript': ['prettier'] }

File Structure

Root
├── .git                    (git folder)
├── .cache                  (cache folder, created by parcel after build, git ignored)
├── dist                    (distribution folder, created by parcel after build, git ignored)
├── node_modules            (git ignored)
├── scripts                 (bash scripts to create create page and subcomponents)
├── src
│   ├── app.js
│   ├── components
│   │   ├── pages
│   │   └── subcomponents
│   ├── css
│   │   └── customs.scss
│   ├── images
│   ├── router
│   │   └── index.js
│   ├── store
│   │   └── index.js
│   └── index.html          (entry point)
├── templates               (template files to be used for pages and subcomponents
├── .eslintrc.js            (ESLint configuration)
├── .gitignore
├── .prettierrc.js          (Prettier configuration)
├── README.md               (this file)
├── package-lock.json
└── package.json

Licence

This project is licensed under MIT

parceljs-vue-bulma's People

Contributors

mfk-smart avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

msa7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.