A convention-based version update notifier. Use it to notify users already on the page that a new version has been deployed.
> ember install ember-cli-new-version
1.0.0
voila!
updateInterval
- the amount of time, in milliseconds, to wait between version checks default: 60000firstCheckInterval
- the amount of time, in milliseconds, to wait before the first version check is run after booting the application default: 0versionFileName
- the name of the file on the server to check default: /VERSION.txtupdateMessage
- the message to show to users when update has been detected. There are two tokens allowed in this string: {newVersion}
and {oldVersion}
which will replaced with their respective values.eg. (and default). "This application has been updated from version {oldVersion} to {newVersion}. Please save any work, then refresh browser to see changes."showReload
- true shows a reload button the user can click to refresh. false hides the button. default: truereloadButtonText
- Sets the text for the default reload button. default: "Reload"onNewVersion(newVersion, oldVersion)
- a closure action that is called whenever a new version is detected. You can use this to track the version status elsewhere in your app (outside the component).updateNeeded(oldVersion, newVersion)
- a function that is called to check if an update message should be shown. For example, a function could be passed that only shows a message on major version changes. default: Always show message on any version changeBy default the notification is styled as a Bootstrap Alert. If you want custom layouts orto use a different framework, then you can define your own markup for the notification.
You can opt-in to automatically generating a VERSION.txt
during the build process. Opting-in means you don't need maintain a /public/VERSION.txt
in your project. Simply add the following to ember-cli-build.js
:
let app = new EmberApp(defaults, {
newVersion: {
enabled: true
}
});
This will result in dist/VERSION.txt
being created.
To override the version filename:
let app = new EmberApp(defaults, {
newVersion: {
enabled: true,
fileName: 'MY-VERSION.txt'
}
});
This will result in dist/MY-VERSION.txt
being created. Note that this will also update the default versionFileName
attribute in the {{new-version-notifier}}
component.
ember-cli-app-version
Since version 1.2.0 this addons is able to use the version string provided by ember-cli-app-version.
All you have to do is install ember-cli-app-version
and enable a flag in ember-cli-build.js
.
Then an update is triggered based on full version strings with build metadata such as 1.0.0-beta-2-e1dffe1
.
let app = new EmberApp(defaults, {
newVersion: {
enabled: true,
useAppVersion: true
}
});
See the Contributing guide for details.
This project is licensed under the MIT License.
2019.7.28 更新:该问题官方已修复,至少由于文中所述原因引起的bug已修复。 具体的报错信息: No matching version found for @ember-data/model@^3.11.2 npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! nota
Angular/angular-cli 原文来自:https://github.com/angular/angular-cli Angular/angular-cli 原文来自:https://github.com/angular/angular-cli cli应用于基于ember-cli项目的Angular应用 备注: 如果你正从测试版或rc版本更新,请查看我们的1.0更新指南。
本文由Edwin Reynoso和Nilson Jacques进行了同行评审。 感谢所有SitePoint的同行评审人员使SitePoint内容达到最佳状态! 组件是Ember应用程序的重要组成部分。 它们允许您定义自己的,特定于应用程序的HTML标记,并使用JavaScript来实现其行为。 从Ember 2.x开始,组件将替换视图和控制器 (已弃用),并且是构建Ember应用程序的推荐方法。
What is this? A bash scipt to quickly set up your new ember project for a smooth developer experience in VS Code. Quickstart ⚡ Create a new ember app NOTE: Assumes ember-cli is installed globally | np
Ember New Relic This Ember addon adds New Relic Browser to your app. All PRs and issues are welcome. Installation Usage Basic Usage Configuration SPA Monitoring Environments Content Security Policy De
Ember CLI 是一个 Ember.js 命令行工具,提供了由 broccoli 提供的快速的资源管道和项目结构。 Ember CLI 基于 Ember App Kit Project 目前已经废弃。 Assets Compilation Ember CLI asset compilation is based on broccoli. Broccoli has support for: Ha
This repository is no longer maintained. As a replacement check out: https://github.com/sir-dunxalot/ember-tooltips Ember CLI Tooltipster An Ember CLI add-on that wraps Tooltipster into an ember compo
ember-cli-updater This ember-cli addon helps you update your ember-cli application or addon. The idea of this addon is to automate some parts of the upgrade process so it's simplified. Not every chang
Ember-cli-yadda This Ember CLI addon facilitates writing BDD tests in the Gherkin language and executing them against your Ember app. @mschinis (Micheal Schinis) Did a great talk at @emberlondon BDD a