npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

iapyang-vue-template

v0.6.3

Published

a simple vue template

Downloads

10

Readme

iapyang-vue-template

GitHub issues GitHub forks GitHub stars

NPM

NPM

Changelog

v0.6.3

🐛 Polish

  • advance fucntion on merge options

For more old changelog, please go to Changelog

Env

  • language:vue
  • style:sass+postcss
  • javascript:es6
  • pack:webpack

Directory Structure

 My-App/       
    |——dev/    
    |   |——component/ all vue component    
    |   |   |——common/ common component can be used in global
    |   |   |——layout/ component to build pages
    |   |   |——view/ route page  
    |   |   |——App.vue export vue    
    |   |——font/  
    |   |——image/    
    |   |——script/
    |   |   |——*.js
    |   |   |——plugin/
    |   |——store/ vuex  
    |   |   |——actions.js
    |   |   |——getters.js
    |   |   |——index.js
    |   |   |——mutation-types.js
    |   |   |——mutations.js
    |   |   |——state.js 
    |   |——style/ common style    
    |   |——router.js router    
    |   |——static/
    |——build/ output files
    |——.eslintignore
    |——.eslintrc   
    |——.gitignore    
    |——.package.json
    |——iapvt.config.js
    |__***/**

The Dev Directory

The dev folder contains evreythings you need during your development.

This folder is required.

The Component Directory

The component folder contains all the .vue files.

This folder is optional.

The Font Directory

The font folder contains font files.

This folder is optional.

The Image Directory

The image folder contains image files.

This folder is optional.

The Script Directory

The script folder contains javascript files.

The index.js file will be placed here.

This folder is required.

The Store Directory

The stroe folder contains vuex files.

This folder is optional.

The Style Directory

The style folder contains common scss files.

This folder is optional.

router.js

The router.js is file for vue router.

This is optional.

The Static Directory

The static store the files won;t change.

It'll copy to static folder when build.

This is optional.

iapvt.config.js

Override webpack engine.

// used when you need more loader 

module.exports = {
  rules: [{
      test: /\.(html)$/,
      use: {
        loader: 'html-loader',
        options: {
          attrs: [':data-src']
        }
      }  
  }]
};
  • bundle
// export js can be used by CDN & commonJs & AMD

const path = require('path');

module.exports = {
  bundle: {
    // js location
    path: path.resolve('./dev/component/App.vue'),
    // library name
    name: 'app',
  },
};
// This is optional, if you use mine default template before, ignore this options
// with this you can render more than one page

const path = require('path');

module.exports = {
  htmlsOptions: [{
    // template location
    template: path.resolve(__dirname, './dev/view/demo.html'),
    // output js name, like 'demo/index' means index.js in demos folder
    name: 'demo/index',
    // template js files, must be an array
    entry: [path.resolve(__dirname, './dev/script/demo.js')],
  }],
  // default is 'cover', will not render mine default template unless you set it 'combine'
  htmlsHandleType: 'combine',
}

Install

npm install iapyang-vue-template -D

Configuration

In package.json, add scripts.

{
  "scripts": {
    "dev": "iapvt",
    "build": "iapvt build",
    "cli": "iapvt cli",
    "gh": "iapvt gh"
  }
}

usage

// for develop
npm run dev
// for build
npm run build
// for upload to git-pages
npm run gh
// for generate blank runable structure
npm run cli
// for generate blank runable structure without router files
npm run cli -r
// for generate blank runable structure without vuex files
npm run cli -s

To be done

  • [x] user can change webpack url font & pics size