This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no issue - this prevents the need for running `npm/yarn install` inside the `lib/gh-koenig` directory - `ember-cli` may eventually be able to handle this with an `ember install` or similar command, there's [an in-repo-addon RFC](https://github.com/jamesarosen/rfcs-1/blob/638cad240524682e457302e1f1e4693d67d2b035/active/0000-better-in-repo-addons.md) suggesting this improvement but it hasn't got much traction yet - it may be necessary to wait until ember-cli has standardised on `yarn`
- Loading branch information
1 parent
33490ad
commit 2b3d512
Showing
4 changed files
with
47 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,14 @@ | ||
/* jshint node: true */ | ||
|
||
var MergeTrees = require('broccoli-merge-trees'); | ||
var Funnel = require('broccoli-funnel'); | ||
var path = require('path'); | ||
|
||
module.exports = { | ||
name: 'gh-koenig', | ||
treeForVendor: function () { | ||
var files = []; | ||
var MOBILEDOC_DIST_DIRECTORY = path.join(path.dirname( | ||
require.resolve(path.join('mobiledoc-kit', 'package.json'))), 'dist'); | ||
|
||
files.push(new Funnel(MOBILEDOC_DIST_DIRECTORY, { | ||
files: [ | ||
'amd/mobiledoc-kit.js', | ||
'amd/mobiledoc-kit.map' | ||
], | ||
destDir: 'mobiledoc-kit' | ||
})); | ||
|
||
return MergeTrees(files, 'assets'); | ||
|
||
}, | ||
treeForPublic: function () { | ||
return new Funnel(__dirname + '/public/tools/', { | ||
destDir: 'assets/tools/' | ||
}); | ||
}, | ||
included: function (app) { | ||
app.import('vendor/mobiledoc-kit/amd/mobiledoc-kit.js'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters