Coder Social home page Coder Social logo

yeshenyuewu5 / vue-blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vueblog/vue-blog

0.0 1.0 0.0 4.41 MB

使用 vue、vue-router、vuex、vue-cli、element-ui 搭建个人博客。https://www.fxss.work/vue-blog/

Home Page: https://www.fxss.work/vue-blog/

License: MIT License

Shell 0.51% JavaScript 17.18% HTML 0.97% Vue 58.54% SCSS 22.79%

vue-blog's Introduction

vue-blog

使用 vue、vue-router、vuex、vue-cli、element-ui 搭建个人博客

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Run your unit tests

npm run test:unit

Customize configuration

See Configuration Reference.

使用 .env 和 .env.local 来进行变量配置,在 .env 中配置所有的变量, .env.local 中配置本地开发所需要的变量,在本地运行时, .env.local 会覆盖 .env 中对应的变量。

注意:只有以 VUE_APP_ 开头的变量会被 webpack.DefinePlugin 静态嵌入到客户端侧的包中。你可以在应用的代码中这样访问它们:

console.log(process.env.VUE_APP_SECRET)

在构建过程中,process.env.VUE_APP_SECRET 将会被相应的值所取代。在 VUE_APP_SECRET=secret 的情况下,它会被替换为 "secret"

Mock的使用

添加 Mock 生成模拟数据。

新添加了一种运行模式 "mock": "vue-cli-service serve --mode mock" ,要使用 mock 生成假数据的时候,直接运行 npm run mock

git 提交

npm run commit

说明文档:git commit 规范

vue-blog's People

Contributors

fxss5201 avatar

Watchers

 avatar

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.