Giter Site home page Giter Site logo

toimcbigfrontserver's Introduction

项目说明

此项目为慕课网大前端对应的课程学习项目,此项目为前端对应的服务端nodeJS项目,技术栈为使用node-koa开发作为基本开发

项目笔记

关于package.json的命令介绍

"scripts": {
    "start": "nodemon --exec babel-node src/index.js",
    "webpack:debug": "node --inspect-brk ./node_modules/.bin/webpack",
    "dev": "cross-env NODE_ENV=dev nodemon --exec babel-node --inspect=3333 src/index.js",
    "build": "cross-env NODE_ENV=prod webpack --config config/webpack.config.prod.js",
    "clean": "rimraf dist",
    // cross-env NODE_ENV=dev 传递环境变量 dev
    // webpack --watch 监听对应的配置文件 配置文件中存在入口文件 当入口文件相关联的文件变化时 webpack自动为我们打包 形成到 /dist/server.bundle.js
    // --progress 查看所有的打印信息 --hide-modules 隐藏有关模块的打包信息
    "watch": "cross-env NODE_ENV=dev webpack --watch --progress--hide-modules --config config/webpack.config.dev.js",
    // 运行起来打包出来的文件
    // --inspect 调试模式
    "debug": "nodemon --inspect ./dist/server.bundle.js",
    // 运行项目 需要执行以上两个命令 借助 npm-run-all 这个包帮助我们执行多个命令
    "start:dist": "npm-run-all -p watch debug"
}

toimcbigfrontserver's People

Contributors

core-admin avatar

Watchers

James Cloos 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.