Skip to content

Scope Objects Visualization(By Esprima、Acron、escope、eslint-scope)

Notifications You must be signed in to change notification settings

lizhihao132/escope-demo

 
 

Repository files navigation

Demo

escope-demo

部署此站点的方法

更新库

若要更新 escope / eslint-scope / esprima / acron 库, 直接在项目目录下执行以下命令, 以 escope 为例, 更新到 xxx 版本 npm view escope version, 然后 npm i escope@xxx 注意不能直接改 package.json 里的版本号再 npm install, 这无法处理好依赖关系(无法递归更新依赖库版本).

打包

确保 package.json 中有以下配置, 再 npm run build , 配置内容: "scripts": { "build": "webpack --config webpack.config.js" }

运行

  1. npm run build
  2. dist 目录下即为打包好的站点目录, 在里面 npx serve, 浏览器就可以访问 localhost:3000 即可.

注意

当前本项目中的 esprima 版本(4.0.1)就不要更新了, 因为 esprima 更新后, 不再抛出异常, 而是返回的对象中有 errors, 且不再返回 columns 了, 这将影响报错信息的生成. 令人无语.

About

Scope Objects Visualization(By Esprima、Acron、escope、eslint-scope)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.1%
  • HTML 4.6%
  • CSS 2.3%