@forge/bundler 4.6.8-next.5 → 4.7.0-next.6
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.
- package/CHANGELOG.md +11 -0
- package/out/webpack.d.ts.map +1 -1
- package/out/webpack.js +10 -6
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @forge/bundler
|
|
2
2
|
|
|
3
|
+
## 4.7.0-next.6
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f0888c8: Add linting support for CSUIK frontend files
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- @forge/cli-shared@3.11.2-next.3
|
|
12
|
+
- @forge/lint@3.4.0-next.4
|
|
13
|
+
|
|
3
14
|
## 4.6.8-next.5
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/out/webpack.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../src/webpack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,GAAG,EAAU,MAAM,OAAO,CAAC;AACxD,OAAO,OAAO,EAAE,EAAE,QAAQ,EAAE,aAAa,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../src/webpack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,GAAG,EAAU,MAAM,OAAO,CAAC;AACxD,OAAO,OAAO,EAAE,EAAE,QAAQ,EAAE,aAAa,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAG5E,OAAO,EACL,OAAO,EAGP,OAAO,EAEP,aAAa,EACb,aAAa,EACb,YAAY,EACb,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,gBAAgB,EAGhB,gBAAgB,EAGjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,UAAU,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAKtG,OAAO,EAAE,UAAU,EAAE,CAAC;AAQtB,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,YAAY,EACpB,GAAG,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,EAC7B,KAAK,EAAE,OAAO,CAAC,KAAK,GAAG,SAAS,GAC/B,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAkChC;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,mBAAmB,EAAE,UAAU,CAAC,EAAE,GAAG,GAAG,aAAa,CAiB9F;AAED,UAAU,eAAe;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,WAAW,kBAAmB,aAAa,YAAY,eAAe,KAAG,QAOrF,CAAC;AA6BF,eAAO,MAAM,SAAS,YAEZ,UAAU,+EAGjB,QAAQ,IAAI,CA+Bd,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,OAwBnB,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAAE,SAAS,UAAU,GAAG,UAAU,EAC9D,cAAc,EAAE,CAAC,WAAW,EAAE,EAAE,EAAE,EAAE,aAAa,EAAE,aAAa,KAAK,mBAAmB,GACvF,OAAO,CAAC,EAAE,CAAC,CA8Bb;AAED,eAAO,MAAM,aAAa,EAAE,OAAuD,CAAC;AAEpF,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,mBAAmB,CAA4C,CAAC;AAEjG,eAAO,MAAM,cAAc,EAAE,aAkB5B,CAAC"}
|
package/out/webpack.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.nativeUiBundle = exports.nodeBundle = exports.sandboxBundle = exports.cr
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const memfs_1 = require("memfs");
|
|
6
6
|
const webpack_1 = tslib_1.__importDefault(require("webpack"));
|
|
7
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
7
8
|
const text_1 = require("./text");
|
|
8
9
|
const cli_shared_1 = require("@forge/cli-shared");
|
|
9
10
|
const lint_1 = require("@forge/lint");
|
|
@@ -92,15 +93,18 @@ class Monitor {
|
|
|
92
93
|
}
|
|
93
94
|
const runLinter = async (logger = { info: console.log }, fileSystemReader = new cli_shared_1.FileSystemReader(), fileSystemWriter = new cli_shared_1.FileSystemWriter()) => {
|
|
94
95
|
logger.info(`\n${cli_shared_1.Text.tunnel.preBundleTask(cli_shared_1.Text.lint.running)}`);
|
|
95
|
-
const
|
|
96
|
-
...(await (0, cli_shared_1.listGitIgnoreFiles)(fileSystemReader)),
|
|
97
|
-
'.git',
|
|
98
|
-
'node_modules'
|
|
99
|
-
]);
|
|
96
|
+
const exclude = [...(await (0, cli_shared_1.listGitIgnoreFiles)(fileSystemReader)), '.git', 'node_modules'];
|
|
100
97
|
const configFile = new cli_shared_1.ConfigFile(fileSystemReader, fileSystemWriter);
|
|
101
98
|
const manifest = await configFile.readConfig();
|
|
99
|
+
const csuikResources = await configFile.getResources(['nativeUI']);
|
|
100
|
+
const csuikDirectories = csuikResources.map((resource) => path_1.default.dirname(resource.path));
|
|
101
|
+
const [filesToLint, ...csuikFilesByDirectory] = await Promise.all([
|
|
102
|
+
fileSystemReader.recursiveReadDir('./src', exclude),
|
|
103
|
+
...csuikDirectories.map((directory) => fileSystemReader.recursiveReadDir(directory, exclude))
|
|
104
|
+
]);
|
|
105
|
+
const csuikFilesToLint = csuikFilesByDirectory.reduce((allFiles, directoryFiles) => allFiles.concat(directoryFiles), []);
|
|
102
106
|
try {
|
|
103
|
-
const lintResults = await (0, lint_1.lint)(filesToLint, manifest, 'development', logger);
|
|
107
|
+
const lintResults = await (0, lint_1.lint)([...filesToLint, ...csuikFilesToLint], manifest, 'development', logger);
|
|
104
108
|
if (lintResults.some((result) => result.size())) {
|
|
105
109
|
logger.info('');
|
|
106
110
|
(0, lint_1.reportLintResults)(logger, lintResults);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bundler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0-next.6",
|
|
4
4
|
"description": "Default bundler for Forge apps",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Atlassian",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@babel/preset-typescript": "^7.16.7",
|
|
21
21
|
"@forge/api": "2.15.2",
|
|
22
22
|
"@forge/babel-plugin-transform-ui": "1.1.2",
|
|
23
|
-
"@forge/cli-shared": "3.11.2-next.
|
|
24
|
-
"@forge/lint": "3.4.0-next.
|
|
23
|
+
"@forge/cli-shared": "3.11.2-next.3",
|
|
24
|
+
"@forge/lint": "3.4.0-next.4",
|
|
25
25
|
"@forge/runtime": "4.3.3",
|
|
26
26
|
"@forge/util": "1.2.3",
|
|
27
27
|
"assert": "^1.1.1",
|