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

optimize-vue-cli

v1.3.5

Published

基于 vue-cli 3.0 构建的快速开发框架的脚手架

Downloads

6

Readme

optimize-vue-cli 脚手架

LICENSE

  • This is a multi-page project tool based on @vue/cli 3.0. Can quickly create projects, modules (pages), components. Modules (pages) created using this tool are accessible without additional configuration.

  • The development tool will receive long-term maintenance and is expected to be updated to 3.0 by vue. Js.

  • 这是一个基于@vue/cli 3.0构建的多页面项目工具。可快速创建项目、模块(页面)、组件。使用该工具创建的模块(页面)无需额外配置即可访问。

  • 该开发工具将获得长期维护,预期至vue.js更新至3.0。

NPM version NPM download NPM download

GitHub watchers GitHub stars GitHub forks GitHub issues GitHub last commit (branch)

Template 模板源码

Source Code

Install 安装脚手架

  • Run in command line.
  • 请在命令行中运行。
// Install vue-cli-3.0 at first.
npm i -g @vue/cli

// Install yarn.
npm i -g yarn

// Install cli
npm i -g optimize-vue-cli

Create Project 创建项目

  • Run in the project's parent folder.
  • 请在项目的父目录中运行。
vues create <project-name>
// eg: vues create demo

Init Project 初始化项目

  • Run in the project's root folder.
  • 请在项目的根目录中运行。
// Open project folder if your not in the project's root folder.
cd <project-path>

// Init
yarn install 

Add Module 添加模块(页面)

  • Run in the project's root folder.
  • 请在项目的根目录中运行。
vues add -m <module-title> -p <module-path>
// eg: vues add -m module1 -p /mobile/page/index
// Html-Title: module1
// Html-Url: localhost:port/mobile/page/index

Add Component 添加组件

  • Run in the project's root folder.
  • 请在项目的根目录中运行。
vues add -c <component-path>
// eg: vues add -c /home/index

Add multiple modules at a time 单次添加多个模块(页面)

  • Run in the project's root folder.
  • 请在项目的根目录中运行。
vues add -a -m <module-path-array>
// eg: vues add -a -m /page/a,/page/b
// Html-Title: Page Title
// Html-Url-0: localhost:port/page/a
// Html-Url-1: localhost:port/page/b

Add multiple components at a time 单次添加多个组件

  • Run in the project's root folder.
  • 请在项目的根目录中运行。
vues add -a -c <component-path-array>
// eg: vues add -a -c /home/index,/home/personal

About 关于