Coder Social home page Coder Social logo

combine-our-koa-routes's Introduction

运行脚本的两种情况

1.运行的代码是es5的时候

当运行的项目代码全部是es5的时候,也就是没有引入babel,可以用node '入口文件路径'

2.运行的代码有es6及es6以上的代码的时候

项目中引入了babel,设置了.bablerc,此时运行nodemon --exec babel-node '入口文件路径',其中nodemon是一个可以实时的运行环境

##调试webpack的方法

1.console.log()

2.npx node --inspect-brk ./node_modules/.bin/webpack 因为webpack是commonjs的规范

./node_modules/.bin/webpack --progress可以看到执行的过程,在webpackconfig之前打一个断点,在export前console.log一下,chrome浏览器导航栏中输入chrome://inspect/#devices 点击inspect弹出,点击运行,然后到控制台可以看到基本的配置

3.在vscode中添加launch.json,点击vscode左侧三角小虫子按钮,add configuration添加一个脚本,输入nodemon,弹出提示,点击nodemon进行配置

检查项目依赖的方法

1.npm install -g npm-check-updates 2.ncu

combine-our-koa-routes's People

Contributors

moyangzhen avatar

Stargazers

 avatar

Watchers

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