polendina 2.0.0-alpha → 2.0.1
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.
|
@@ -10,9 +10,9 @@ jobs:
|
|
|
10
10
|
runs-on: ${{ matrix.os }}
|
|
11
11
|
steps:
|
|
12
12
|
- name: Checkout Repository
|
|
13
|
-
uses: actions/checkout@v2.
|
|
13
|
+
uses: actions/checkout@v2.4.0
|
|
14
14
|
- name: Use Node.js ${{ matrix.node }}
|
|
15
|
-
uses: actions/setup-node@v2.
|
|
15
|
+
uses: actions/setup-node@v2.5.0
|
|
16
16
|
with:
|
|
17
17
|
node-version: ${{ matrix.node }}
|
|
18
18
|
- name: Install Dependencies
|
|
@@ -29,19 +29,16 @@ jobs:
|
|
|
29
29
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
|
30
30
|
steps:
|
|
31
31
|
- name: Checkout
|
|
32
|
-
uses: actions/checkout@v2.
|
|
32
|
+
uses: actions/checkout@v2.4.0
|
|
33
33
|
with:
|
|
34
34
|
fetch-depth: 0
|
|
35
35
|
- name: Setup Node.js
|
|
36
|
-
uses: actions/setup-node@v2.
|
|
36
|
+
uses: actions/setup-node@v2.5.0
|
|
37
37
|
with:
|
|
38
38
|
node-version: 14
|
|
39
39
|
- name: Install dependencies
|
|
40
40
|
run: |
|
|
41
41
|
npm install --no-progress --no-package-lock --no-save
|
|
42
|
-
- name: Build
|
|
43
|
-
run: |
|
|
44
|
-
npm run build
|
|
45
42
|
- name: Install plugins
|
|
46
43
|
run: |
|
|
47
44
|
npm install \
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
### [2.0.1](https://github.com/rvagg/polendina/compare/v2.0.0...v2.0.1) (2021-12-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Trivial Changes
|
|
5
|
+
|
|
6
|
+
* **deps-dev:** bump tape in /test/fixtures/tape-failure ([8e6bd35](https://github.com/rvagg/polendina/commit/8e6bd3575b9fe8cd3e3f252865aa7322dd724b5d))
|
|
7
|
+
* **deps-dev:** bump tape in /test/fixtures/tape-failure-esm ([325e8d4](https://github.com/rvagg/polendina/commit/325e8d4b5fb35de6b950044173b733e9233114ec))
|
|
8
|
+
* **deps:** bump actions/checkout from 2.3.4 to 2.4.0 ([0ff4939](https://github.com/rvagg/polendina/commit/0ff49399120f162955512827b427f5336e951280))
|
|
9
|
+
* **deps:** bump actions/setup-node from 2.4.0 to 2.5.0 ([cf1d48f](https://github.com/rvagg/polendina/commit/cf1d48f01b105f945b7a393703625cbd60348b18))
|
|
10
|
+
* **deps:** bump strip-ansi from 6.0.1 to 7.0.1 ([feeba0d](https://github.com/rvagg/polendina/commit/feeba0db755a83ee1d5b1e0d2730a8f9ae90a635))
|
|
11
|
+
|
|
12
|
+
## [2.0.0](https://github.com/rvagg/polendina/compare/v1.1.1...v2.0.0) (2021-12-08)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ⚠ BREAKING CHANGES
|
|
16
|
+
|
|
17
|
+
* upgrade to webpack5
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* support both ESM and CJS ([4de7f38](https://github.com/rvagg/polendina/commit/4de7f38ae789463c5907e8e3fcab05052b441730))
|
|
22
|
+
* upgrade to webpack5 ([4e99018](https://github.com/rvagg/polendina/commit/4e99018837d51cc125324804755593a50205a28d))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Trivial Changes
|
|
26
|
+
|
|
27
|
+
* add dependabot config, also for fixtures ([d074252](https://github.com/rvagg/polendina/commit/d0742522961100022597f9e92512164ade788bee))
|
|
28
|
+
* update deps (those that can be updated without code changes) ([7cca22c](https://github.com/rvagg/polendina/commit/7cca22cbc3847757ca887cfc632cceb99ff6439f))
|
|
29
|
+
|
|
30
|
+
### [1.1.1](https://github.com/rvagg/polendina/compare/v1.1.0...v1.1.1) (2021-12-07)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* no build step for release ([b91faf0](https://github.com/rvagg/polendina/commit/b91faf08395e6f8bc44b21d02d94c2136bcac942))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Trivial Changes
|
|
39
|
+
|
|
40
|
+
* add auto-releases ([#17](https://github.com/rvagg/polendina/issues/17)) ([9e71246](https://github.com/rvagg/polendina/commit/9e71246667ba96d8253aa180271728b35e700b45))
|
package/lib/wrap-loader.cjs
CHANGED
|
@@ -24,7 +24,7 @@ wrapLoader.pitch = function pitch (remainingRequest) {
|
|
|
24
24
|
const { registry } = require(${JSON.stringify(`!!${path.normalize(path.resolve(argv.outputDir, 'test-registry.js'))}`)})
|
|
25
25
|
registry.argv = JSON.parse(${JSON.stringify(JSON.stringify(argv))})
|
|
26
26
|
registry.tests.push({
|
|
27
|
-
name: JSON.parse('${JSON.stringify(path.normalize(path.relative(process.cwd(), remainingRequest)))}'),
|
|
27
|
+
name: JSON.parse('${JSON.stringify(path.normalize(path.relative(process.cwd(), remainingRequest))).replace(/\\/g, '/')}'),
|
|
28
28
|
load: () => { return require(${JSON.stringify(`!!${remainingRequest}`)}) }
|
|
29
29
|
})
|
|
30
30
|
module.exports = {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polendina",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Non-UI browser testing for JavaScript libraries from the command-line",
|
|
5
5
|
"main": "polendina.js",
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"rimraf": "^3.0.2",
|
|
16
16
|
"st": "^3.0.0",
|
|
17
17
|
"stream-browserify": "^3.0.0",
|
|
18
|
-
"strip-ansi": "^
|
|
18
|
+
"strip-ansi": "^7.0.1",
|
|
19
19
|
"webpack": "~5.65.0",
|
|
20
20
|
"webpack-merge": "~5.8.0",
|
|
21
21
|
"yargs": "^17.3.0"
|
package/polendina.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { promisify } from 'util'
|
|
2
2
|
import path from 'path'
|
|
3
|
-
import fs from 'fs
|
|
3
|
+
import fs from 'fs'
|
|
4
4
|
import http from 'http'
|
|
5
5
|
import { fileURLToPath } from 'url'
|
|
6
6
|
import st from 'st'
|
|
@@ -46,7 +46,8 @@ export class Polendina {
|
|
|
46
46
|
resolve: {
|
|
47
47
|
fallback: {
|
|
48
48
|
stream: path.join(__dirname, 'node_modules', 'stream-browserify'),
|
|
49
|
-
path: path.join(__dirname, 'node_modules', 'path-browserify')
|
|
49
|
+
path: path.join(__dirname, 'node_modules', 'path-browserify'),
|
|
50
|
+
fs: false
|
|
50
51
|
}
|
|
51
52
|
},
|
|
52
53
|
plugins: [
|
|
@@ -62,13 +63,13 @@ export class Polendina {
|
|
|
62
63
|
config = merge(config, userConfig)
|
|
63
64
|
}
|
|
64
65
|
|
|
65
|
-
await fs.mkdir(this.outputDir, { recursive: true })
|
|
66
|
+
await fs.promises.mkdir(this.outputDir, { recursive: true })
|
|
66
67
|
const copyFiles = ['index.html', 'test-registry.js', 'page-run.js', 'common-run.js', this._runnerModule]
|
|
67
68
|
if (this._options.runner.startsWith('bare-')) {
|
|
68
69
|
copyFiles.push('bare.js')
|
|
69
70
|
}
|
|
70
71
|
await Promise.all(copyFiles.map((file) => {
|
|
71
|
-
return fs.copyFile(path.join(__dirname, 'resources', file), path.join(this.outputDir, file))
|
|
72
|
+
return fs.promises.copyFile(path.join(__dirname, 'resources', file), path.join(this.outputDir, file))
|
|
72
73
|
}))
|
|
73
74
|
|
|
74
75
|
const stats = await webpack(config)
|
|
@@ -89,7 +90,7 @@ export class Polendina {
|
|
|
89
90
|
|
|
90
91
|
if (this._options.stats) {
|
|
91
92
|
this.statsFile = path.join(config.output.path, 'webpack-stats.json')
|
|
92
|
-
await fs.writeFile(this.statsFile, JSON.stringify(info), 'utf8')
|
|
93
|
+
await fs.promises.writeFile(this.statsFile, JSON.stringify(info), 'utf8')
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
96
|
|