adapt-authoring-ui 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -211,7 +211,7 @@ export default class JavaScriptTask {
211
211
  plugins.push({
212
212
  name: path.basename(dir),
213
213
  main: 'index.js',
214
- sourcePath: path.relative(this.cwd, dir)
214
+ sourcePath: dir
215
215
  })
216
216
  })
217
217
  })
package/lib/UiBuild.js CHANGED
@@ -14,13 +14,12 @@ class UiBuild {
14
14
  this.log = log
15
15
  this.isDev = isDev
16
16
  this.enableWatch = enableWatch
17
- this.uiPlugins = uiPlugins
17
+ this.uiPlugins = uiPlugins.map(p => path.relative(this.app.rootDir, p).replaceAll('\\', '/'))
18
18
 
19
19
  const outputDir = buildDir.replaceAll('\\', '/')
20
20
 
21
21
  this.Paths = {
22
22
  App: 'node_modules/adapt-authoring-ui/app',
23
- Plugins: 'node_modules/adapt-authoring-*/ui-plugins',
24
23
  Output: outputDir,
25
24
  OutputDirs: {
26
25
  assets: `${outputDir}/css/assets`,
@@ -31,34 +30,33 @@ class UiBuild {
31
30
  this.Globs = {
32
31
  assets: [
33
32
  `${this.Paths.App}/**/assets/**`,
34
- `${this.Paths.Plugins}/**/assets/**`
33
+ ...this.uiPlugins.map(p => `${p}/**/assets/**`)
35
34
  ],
36
35
  libraries: [
37
36
  `${this.Paths.App}/libraries/**/*`,
38
37
  `${this.Paths.App}/modules/*/libraries/**/*`,
39
- `${this.Paths.Plugins}/libraries/**/*`
38
+ ...this.uiPlugins.map(p => `${p}/libraries/**`)
40
39
  ],
41
40
  required: [
42
41
  `${this.Paths.App}/core/required/**/*`,
43
42
  `${this.Paths.App}/modules/*/required/**/*`,
44
- `${this.Paths.Plugins}/required/**/*`
43
+ ...this.uiPlugins.map(p => `${p}/required/**/*`)
45
44
  ],
46
45
  hbs: [
47
46
  `${this.Paths.App}/**/*.hbs`,
48
- `${this.Paths.Plugins}/**/*.hbs`
47
+ ...this.uiPlugins.map(p => `${p}/**/*.hbs`)
49
48
  ],
50
49
  js: [
51
50
  `${this.Paths.App}/**/*.js`,
52
51
  `${this.Paths.App}/**/*.js`,
53
- `${this.Paths.Plugins}/**/*.js`,
54
- `${this.Paths.Plugins}/**/*.jsx`
52
+ ...this.uiPlugins.map(p => `${p}/**/*.js`),
53
+ ...this.uiPlugins.map(p => `${p}/**/*.jsx`)
55
54
  ],
56
55
  less: [
57
56
  `${this.Paths.App}/**/*.less`,
58
- `${this.Paths.Plugins}/**/*.less`
57
+ ...this.uiPlugins.map(p => `${p}/**/*.less`)
59
58
  ]
60
59
  }
61
-
62
60
  this.preBuildHook = new Hook()
63
61
  this.postBuildHook = new Hook()
64
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adapt-authoring-ui",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Front-end application for the Adapt authoring tool",
5
5
  "homepage": "https://github.com/adapt-security/adapt-authoring-ui",
6
6
  "license": "GPL-3.0",