-
项目中需要做一次校验处理,要对JSON做些小动作,开始了对AST的了解。
类似的需求如这个问题:[fs 如何读取 js 模块的注释](https://cnodejs.org/topic/58d335b92c8bf2a8364562a9),从论坛回复得到了一些不错的启发。
> 可以试试用 jsdoc 或 jscodeshift 的 API
> jscodeshift 是 FB 家的,它是对 r…
onvno updated
4 years ago
-
As a result of recent drama (reported here: https://www.bleepingcomputer.com/news/security/dev-corrupts-npm-libs-colors-and-faker-breaking-thousands-of-apps/)
I tracked down recently updated forks …
-
```
Enter the following command in your terminal when you are ready to use your codemod:
jscodeshift -t path/to/codemod.js [files]
```
-
### What version of Effect is running?
3.0.3
### What steps can reproduce the bug?
> npx @effect/codemod@latest effect-3.0 src/**/*.tsx
Processing 149 files...
Spawning 7 workers...
Sending 22…
-
> Another `sourcemap` related idea I had (which probably deserves it's own issue) is that it would be cool to be able to 'retroactively generate a `sourcemap`) for a webapp, based on the unminified ou…
-
When we got this problem in the `remix` repo (https://github.com/remix-run/remix/pull/3987), I reported this in the `jscodeshift` repo (https://github.com/facebook/jscodeshift/issues/520), but since a…
-
在 umi 3 项目中升级 antd 4 时,如下报错。
umi 3 会生成一个 `src/.umi` 目录,这个目录在 `.gitignore` 里被忽略。
```
// .gitignore
pids
logs
node_modules
npm-debug.log
coverage/
run
dist
public
.DS_Store
.nyc_out…
-
Add support for `jscodeshift -t http://astexplorer.net/#/QaBzVS9XHK`
-
## Describe the bug
jscodeshift throws `SyntaxError: Unexpected token, expected ","` for typescript file with just types
```
jscodeshift: 0.13.1
- babel: 7.17.5
- babylon: 7.17.3
- flow: 0.…
-
Just trying to compile related or inspiring projects in dynamic language refactoring we can check out:
Refactoring tools
* [Smalltalk refactory](http://www.refactory.com/the-refactorings): If sm…