ember-decorators

Useful decorators for Ember applications.

Github星跟蹤圖

Ember Decorators

npm version
Build Status

Ember Decorators began as a project dedicated to exploring and unlocking the
future of native classes in Ember.js. Now, that future is here! Decorators will
be landing soon in Ember, and there is a polyfill available for
them
.

This library now contains a few extra decorators which were not upstreamed to
Ember, and may still be useful to some users. Check out the documentation
website
for detailed API
documentation for all the decorators included in this addon.

Usage

First install the main ember-decorators addon.

ember install ember-decorators

This addon doesn't contain any decorators itself, but includes the core set of
subaddons that are necessary to begin writing Ember using native classes:

  • @ember-decorators/component
  • @ember-decorators/object

See the API Documentation
for detailed examples and documentation of the individual decorators.

Development

Specs

Ember follows the legacy decorators "stage 1" proposal API.
The decorators proposal is currently being redesigned for stage 3, and the
champions have publicly stated that this is the recommended path forward.

Organization

This repository consists of multiple packages managed with lerna.js.
The decorators all reside in their own individual packages under /packages,
along with the main ember-decorators package.

The main package serves three purposes:

  1. A quick way to install all of the subpackages and get new projects up and
    running. Installing the main package also adds any necessary babel transforms,
    and sets up ESLint properly.
  2. A place for common functionality, such as the native class blueprints that
    overwrite the default Ember blueprints.
  3. A place for the documentation site and tests for all of the other addons.
    Tests were consolidated from the other addons in order to speed up the testing
    and development process.

Setting up

  • Fork the repository
  • git clone <your-fork-url>
  • cd ember-decorators
  • npm install

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • npm test – Runs the test suite on the current Ember version

Running the dummy application

License

This project is licensed under the MIT License.

主要指標

概覽
名稱與所有者ember-decorators/ember-decorators
主編程語言JavaScript
編程語言JavaScript (語言數: 4)
平台
許可證
所有者活动
創建於2015-04-13 15:30:38
推送於2025-06-16 18:01:51
最后一次提交2020-03-23 08:09:06
發布數61
最新版本名稱v6.1.1 (發布於 2019-09-06 10:41:11)
第一版名稱v0.1.0 (發布於 )
用户参与
星數356
關注者數10
派生數96
提交數481
已啟用問題?
問題數178
打開的問題數19
拉請求數254
打開的拉請求數17
關閉的拉請求數43
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?