2
에서 다른 청사진을 생성하고 내가 처음 청사진 내부에서 다른 청사진 (기본적으로 ember g something-else ...
)를 실행합니다. 어떻게해야합니까?내가 <a href="https://ember-cli.com/extending/" rel="nofollow">ember-cli</a>에서 문서를 기반으로 사용자 정의 청사진을 만든 엠버 CLI 청사진
구체적인 사용 사례 : Ember CLI의 기본 구성 요소 청사진을 무시하고 생성 된 모든 구성 요소에 대해 일치하는 CSS 부분 (app/styles/components/
)을 새 구성 요소 청사진에 생성하려고합니다. calling-ember-g-component-within-a-blueprints-index-js에서이 방법을 지적 nullnullnull에
var Blueprint = require('ember-cli/lib/models/blueprint');
module.exports = {
...
afterInstall: function(options) {
var otherBlueprint = Blueprint.lookup('other-blueprint-name', {
paths: [path.resolve(__dirname, '..')]
});
return otherBlueprint.install(options);
},
};
감사 : 발전기 (아마 app/blueprints/blueprint-name/index.js
) 내부
ember 및 ember 데이터 청사진이 Ember-CLI에서 각각의 repos로 이동 되었기 때문에이 작업을 수행 할 수 있습니까? [ember-cli-legacy-blueprints] (https://github.com/ember-cli/ember-cli-legacy-blueprints) 애드온 가져 오기를 시도했지만 청사진 이름 만 내 보냅니다. – ultimatemonty
좋습니다! 게시 해 주셔서 감사합니다 –
@ultimatemonty 아직도 Bower를 통해 Ember 데이터를 가져오고 있습니까? 해당 설정을 시도하지 않았습니다. 이 기능은 Ember CLI 2.7.0에서 작동합니다 (청사진이 이동되었습니다). –