Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@qfox
Copy link
Contributor

@qfox qfox commented Feb 17, 2016

This PR changes load/save logic in CacheStorage.
Now it uses JSON.parse+fs.readFileSync instead of require+clearRequire.

/cc @blond

@blond blond added the review label Feb 17, 2016
@blond
Copy link
Member

blond commented Feb 18, 2016

Нужно поменять имя расширение с .js на .json.

https://github.com/enb-make/enb/blob/master/lib/make.js#L119

@blond
Copy link
Member

blond commented Feb 18, 2016

Может сделаем loadAsync по аналогии с saveAsync?

@qfox
Copy link
Contributor Author

qfox commented Feb 18, 2016

Можно. В этом таске?

@blond
Copy link
Member

blond commented Feb 18, 2016

В этом таске?

Я не против =)

@qfox
Copy link
Contributor Author

qfox commented Feb 19, 2016

@blond Где мы load используем? Где можем заменить load на loadAsync?

@blond
Copy link
Member

blond commented Feb 19, 2016

@qfox qfox force-pushed the hotfix/cache-pure-json branch from af8619c to 86b4b43 Compare February 20, 2016 15:29
@qfox qfox force-pushed the hotfix/cache-pure-json branch from 86b4b43 to 2938fdd Compare February 20, 2016 16:10
blond added a commit that referenced this pull request Feb 20, 2016
What's the point to use CommonJS format in Cache files?
@blond blond merged commit a55fcec into enb:master Feb 20, 2016
@blond blond removed the review label Feb 20, 2016
@qfox qfox deleted the hotfix/cache-pure-json branch February 24, 2016 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants