-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.js
51 lines (45 loc) · 2.93 KB
/
aliases.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*****************************************************************
* Webpack Configuration (to trick IDE understanding imports)
*
* For PHP Storm:
* File > Settings > Languages & Frameworks > JavaScript > Webpack
****************************************************************/
const path = require('path');
module.exports = {
resolve: {
// NOTE: Not sure how this is intended to work... if at all!?
// @see https://webpack.js.org/configuration/resolve/#resolvedescriptionfiles
// descriptionFiles: [
// path.resolve(__dirname, './packages/vuepress-utils/package.json'),
// path.resolve(__dirname, './packages/xyz/package.json'),
// path.resolve(__dirname, './package.json')
// ],
// conditionNames: ['require', 'import'],
alias: {
// container
'@aedart/container': path.resolve(__dirname, './packages/container/src'),
// contracts
'@aedart/contracts/container': path.resolve(__dirname, './packages/contracts/container'),
'@aedart/contracts/support/arrays': path.resolve(__dirname, './packages/contracts/support/arrays'),
'@aedart/contracts/support/concerns': path.resolve(__dirname, './packages/contracts/support/concerns'),
'@aedart/contracts/support/exceptions': path.resolve(__dirname, './packages/contracts/support/exceptions'),
'@aedart/contracts/support/facades': path.resolve(__dirname, './packages/contracts/support/facades'),
'@aedart/contracts/support/meta': path.resolve(__dirname, './packages/contracts/support/meta'),
'@aedart/contracts/support/mixins': path.resolve(__dirname, './packages/contracts/support/mixins'),
'@aedart/contracts/support/objects': path.resolve(__dirname, './packages/contracts/support/objects'),
'@aedart/contracts/support/reflections': path.resolve(__dirname, './packages/contracts/support/reflections'),
'@aedart/contracts/support': path.resolve(__dirname, './packages/contracts/support'),
'@aedart/contracts': path.resolve(__dirname, './packages/contracts/src'),
// support
'@aedart/support': path.resolve(__dirname, './packages/support/src'),
// vuepress-utils
'@aedart/vuepress-utils/components': path.resolve(__dirname, './packages/vuepress-utils/src/components'),
'@aedart/vuepress-utils/contracts': path.resolve(__dirname, './packages/vuepress-utils/src/contracts'),
'@aedart/vuepress-utils/navigation': path.resolve(__dirname, './packages/vuepress-utils/src/navigation'),
'@aedart/vuepress-utils/plugins': path.resolve(__dirname, './packages/vuepress-utils/src/plugins'),
'@aedart/vuepress-utils': path.resolve(__dirname, './packages/vuepress-utils/src'),
// xyz
'@aedart/xyz': path.resolve(__dirname, './packages/xyz/src'),
},
},
}