ember-cli-conditional-compile:Ember的条件编译(功能标志)

时间:2021-05-01 10:53:17
【文件属性】:
文件名称:ember-cli-conditional-compile:Ember的条件编译(功能标志)
文件大小:156KB
文件格式:ZIP
更新时间:2021-05-01 10:53:17
JavaScript ember-cli-conditional-compile ember-cli-conditional-compile的目标是为Ember应用程序提供易于使用的功能开关,以使隐藏在禁用的功能开关后面的代码不在编译后的代码中。 入门 这是一个ember-cli插件,因此您所需要做的就是 ember install ember-cli-conditional-compile 如果您使用的是Ember 1.13.6或更早版本,则应使用0.3.x系列发行版。 如果您使用的是Ember 1.13.7或更高版本,则必须至少使用0.4.x版本。 要实际使用功能开关,您需要在environment.js文件中添加一些配置。 例如,假设您要具有两个功能开关。 ENABLE_FOO和ENABLE_BAR : var ENV = { // other settings ... f
【文件预览】:
ember-cli-conditional-compile-master
----.gitignore(247B)
----app()
--------.gitkeep(0B)
--------initializers()
----package.json(2KB)
----Makefile(634B)
----LICENSE.md(1KB)
----.watchmanconfig(29B)
----.travis.yml(237B)
----node-tests()
--------addon-test.js(2KB)
----index.js(4KB)
----addon()
--------.gitkeep(0B)
----testem.js(635B)
----.eslintrc.js(1KB)
----README.md(5KB)
----vendor()
--------.gitkeep(0B)
----tests()
--------.jshintrc(867B)
--------acceptance()
--------dummy()
--------unit()
--------helpers()
--------index.html(1017B)
--------test-helper.js(160B)
----config()
--------ember-try.js(462B)
--------environment.js(90B)
----lib()
--------template-compiler.js(2KB)
----.ember-cli(280B)
----ember-cli-build.js(197B)
----.npmignore(160B)
----.editorconfig(543B)
----yarn.lock(377KB)

网友评论