New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

generator-nuxt-console-template

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-nuxt-console-template

基于nuxt框架快速生成管理端项目

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

基于vue+nuxt的前端后台管理系统快速生成器

开始安装

首先确保自己已经安装了nodejs

然后安装yeoman

yarn global add yo

然后安装脚手架

yarn global add generator-nuxt-console-template

在自己的空项目中运行:

yo nuxt-console-template

然后就会在此目录下生成以下目录结构:

├── build   // 可以快速生成基础页面
│   ├──  plop    
│   │   ├── page
│   │   └── validate.js
│   ├── inject-env.js
│   ├── plopfile.js
├── src
│   ├── assets
│   ├── components
│   ├── const
│   ├── container
│   ├── directive
│   ├── layouts
│   ├── middleware
│   ├── mixins
│   ├── pages
│   ├── plugins
│   ├── static
│   ├── store
│   └── utils
├── .editorconfig
├── .env.dev
├── .env.prod
├── .eslintrc.js
├── .npmrc
├── .nuxtignore
├── .prettierrc
├── .stylelintrc
├── jsconfig.json
├── nuxt.config.js
├── package.json
└── README.md

然后使用以下命令启动服务:

yarn dev

本项目默认监听端口是3001,所以在浏览器输入 http://localhost:3001 就能看到效果了。

开发完成之后,对项目进行打包,使用以下命令:

yarn build

Keywords

yeoman

FAQs

Package last updated on 04 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts