diff --git a/.github/workflows/tests.plugin-banner.yml b/.github/workflows/tests.plugin-banner.yml index 2fc3add1459..13c61c97b95 100644 --- a/.github/workflows/tests.plugin-banner.yml +++ b/.github/workflows/tests.plugin-banner.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-banner on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-banner && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-banner && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-banner && npm run testci diff --git a/.github/workflows/tests.plugin-bartack.yml b/.github/workflows/tests.plugin-bartack.yml index 2fc3add1459..8f4d52e8582 100644 --- a/.github/workflows/tests.plugin-bartack.yml +++ b/.github/workflows/tests.plugin-bartack.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-bartack on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-bartack && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-bartack && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-bartack && npm run testci diff --git a/.github/workflows/tests.plugin-bundle.yml b/.github/workflows/tests.plugin-bundle.yml index 2fc3add1459..4faf1da5895 100644 --- a/.github/workflows/tests.plugin-bundle.yml +++ b/.github/workflows/tests.plugin-bundle.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-bundle on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-bundle && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-bundle && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-bundle && npm run testci diff --git a/.github/workflows/tests.plugin-bust.yml b/.github/workflows/tests.plugin-bust.yml index 2fc3add1459..ce037e5050c 100644 --- a/.github/workflows/tests.plugin-bust.yml +++ b/.github/workflows/tests.plugin-bust.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-bust on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-bust && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-bust && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-bust && npm run testci diff --git a/.github/workflows/tests.plugin-buttons.yml b/.github/workflows/tests.plugin-buttons.yml index 2fc3add1459..aecfa789bd3 100644 --- a/.github/workflows/tests.plugin-buttons.yml +++ b/.github/workflows/tests.plugin-buttons.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-buttons on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-buttons && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-buttons && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-buttons && npm run testci diff --git a/.github/workflows/tests.plugin-cutonfold.yml b/.github/workflows/tests.plugin-cutonfold.yml index 2fc3add1459..c29dd6ce7d9 100644 --- a/.github/workflows/tests.plugin-cutonfold.yml +++ b/.github/workflows/tests.plugin-cutonfold.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-cutonfold on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-cutonfold && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-cutonfold && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-cutonfold && npm run testci diff --git a/.github/workflows/tests.plugin-dimension.yml b/.github/workflows/tests.plugin-dimension.yml index 2fc3add1459..cd813e0c0fd 100644 --- a/.github/workflows/tests.plugin-dimension.yml +++ b/.github/workflows/tests.plugin-dimension.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-dimension on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-dimension && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-dimension && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-dimension && npm run testci diff --git a/.github/workflows/tests.plugin-export-dxf.yml b/.github/workflows/tests.plugin-export-dxf.yml index 2fc3add1459..e85ff2cdc15 100644 --- a/.github/workflows/tests.plugin-export-dxf.yml +++ b/.github/workflows/tests.plugin-export-dxf.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-export-dxf on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-export-dxf && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-export-dxf && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-export-dxf && npm run testci diff --git a/.github/workflows/tests.plugin-flip.yml b/.github/workflows/tests.plugin-flip.yml index 2fc3add1459..38769d09aee 100644 --- a/.github/workflows/tests.plugin-flip.yml +++ b/.github/workflows/tests.plugin-flip.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-flip on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-flip && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-flip && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-flip && npm run testci diff --git a/.github/workflows/tests.plugin-gore.yml b/.github/workflows/tests.plugin-gore.yml index 2fc3add1459..11849792c07 100644 --- a/.github/workflows/tests.plugin-gore.yml +++ b/.github/workflows/tests.plugin-gore.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-gore on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-gore && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-gore && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-gore && npm run testci diff --git a/.github/workflows/tests.plugin-grainline.yml b/.github/workflows/tests.plugin-grainline.yml index 2fc3add1459..21b0aa665b1 100644 --- a/.github/workflows/tests.plugin-grainline.yml +++ b/.github/workflows/tests.plugin-grainline.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-grainline on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-grainline && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-grainline && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-grainline && npm run testci diff --git a/.github/workflows/tests.plugin-i18n.yml b/.github/workflows/tests.plugin-i18n.yml index 2fc3add1459..a9ce5adbd8e 100644 --- a/.github/workflows/tests.plugin-i18n.yml +++ b/.github/workflows/tests.plugin-i18n.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-i18n on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-i18n && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-i18n && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-i18n && npm run testci diff --git a/.github/workflows/tests.plugin-logo.yml b/.github/workflows/tests.plugin-logo.yml index 2fc3add1459..e69ca8c87f9 100644 --- a/.github/workflows/tests.plugin-logo.yml +++ b/.github/workflows/tests.plugin-logo.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-logo on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-logo && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-logo && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-logo && npm run testci diff --git a/.github/workflows/tests.plugin-measurements.yml b/.github/workflows/tests.plugin-measurements.yml index 2fc3add1459..9c74793584e 100644 --- a/.github/workflows/tests.plugin-measurements.yml +++ b/.github/workflows/tests.plugin-measurements.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-measurements on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-measurements && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-measurements && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-measurements && npm run testci diff --git a/.github/workflows/tests.plugin-mirror.yml b/.github/workflows/tests.plugin-mirror.yml index 2fc3add1459..2f297d5ebbc 100644 --- a/.github/workflows/tests.plugin-mirror.yml +++ b/.github/workflows/tests.plugin-mirror.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-mirror on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-mirror && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-mirror && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-mirror && npm run testci diff --git a/.github/workflows/tests.plugin-notches.yml b/.github/workflows/tests.plugin-notches.yml index 2fc3add1459..4b4e1086b60 100644 --- a/.github/workflows/tests.plugin-notches.yml +++ b/.github/workflows/tests.plugin-notches.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-notches on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-notches && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-notches && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-notches && npm run testci diff --git a/.github/workflows/tests.plugin-round.yml b/.github/workflows/tests.plugin-round.yml index 2fc3add1459..1816632b6ec 100644 --- a/.github/workflows/tests.plugin-round.yml +++ b/.github/workflows/tests.plugin-round.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-round on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-round && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-round && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-round && npm run testci diff --git a/.github/workflows/tests.plugin-scalebox.yml b/.github/workflows/tests.plugin-scalebox.yml index 2fc3add1459..7fd428b8116 100644 --- a/.github/workflows/tests.plugin-scalebox.yml +++ b/.github/workflows/tests.plugin-scalebox.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-scalebox on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-scalebox && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-scalebox && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-scalebox && npm run testci diff --git a/.github/workflows/tests.plugin-sprinkle.yml b/.github/workflows/tests.plugin-sprinkle.yml index 2fc3add1459..e965ba46bfe 100644 --- a/.github/workflows/tests.plugin-sprinkle.yml +++ b/.github/workflows/tests.plugin-sprinkle.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-sprinkle on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-sprinkle && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-sprinkle && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-sprinkle && npm run testci diff --git a/.github/workflows/tests.plugin-svgattr.yml b/.github/workflows/tests.plugin-svgattr.yml index 2fc3add1459..3e811328d81 100644 --- a/.github/workflows/tests.plugin-svgattr.yml +++ b/.github/workflows/tests.plugin-svgattr.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-svgattr on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-svgattr && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-svgattr && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-svgattr && npm run testci diff --git a/.github/workflows/tests.plugin-theme.yml b/.github/workflows/tests.plugin-theme.yml index 2fc3add1459..cdee8ce0e33 100644 --- a/.github/workflows/tests.plugin-theme.yml +++ b/.github/workflows/tests.plugin-theme.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-theme on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-theme && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-theme && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-theme && npm run testci diff --git a/.github/workflows/tests.plugin-title.yml b/.github/workflows/tests.plugin-title.yml index 2fc3add1459..68baa843362 100644 --- a/.github/workflows/tests.plugin-title.yml +++ b/.github/workflows/tests.plugin-title.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-title on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-title && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-title && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-title && npm run testci diff --git a/.github/workflows/tests.plugin-validate.yml b/.github/workflows/tests.plugin-validate.yml index 2fc3add1459..f554f48b3da 100644 --- a/.github/workflows/tests.plugin-validate.yml +++ b/.github/workflows/tests.plugin-validate.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-validate on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-validate && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-validate && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-validate && npm run testci diff --git a/.github/workflows/tests.plugin-versionfree-svg.yml b/.github/workflows/tests.plugin-versionfree-svg.yml index 2fc3add1459..e25c0f6b388 100644 --- a/.github/workflows/tests.plugin-versionfree-svg.yml +++ b/.github/workflows/tests.plugin-versionfree-svg.yml @@ -1,4 +1,4 @@ -name: Unit tests - +name: Unit tests - Plugin-versionfree-svg on: push: @@ -31,10 +31,10 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/ && npm install @freesewing/models@2.19.5 @freesewing/pattern-info@2.19.5 mocha chai" + run: "cd packages/plugin-versionfree-svg && npm install mocha chai" env: CI: true - name: Build plugin - run: cd packages/ && npm run build + run: cd packages/plugin-versionfree-svg && npm run build - name: Run plugin unit tests - run: cd packages/ && npm run testci + run: cd packages/plugin-versionfree-svg && npm run testci diff --git a/config/templates/workflows/tests.plugin.yml b/config/templates/workflows/tests.plugin.yml index 7875b251468..fcc2d9591e1 100644 --- a/config/templates/workflows/tests.plugin.yml +++ b/config/templates/workflows/tests.plugin.yml @@ -33,7 +33,7 @@ jobs: env: CI: true - name: Install peer & test dependencies - run: "cd packages/{{ plugin }} && npm install {{{ peerdeps }}} @freesewing/models@{{{ version }}} @freesewing/pattern-info@{{{ version }}} mocha chai" + run: "cd packages/{{ plugin }} && npm install {{{ peerdeps }}} mocha chai" env: CI: true - name: Build plugin diff --git a/scripts/reconfigure.js b/scripts/reconfigure.js index 337fc93b958..9c404357839 100644 --- a/scripts/reconfigure.js +++ b/scripts/reconfigure.js @@ -459,7 +459,11 @@ function configurePkgUnitTests(type, pkg, config) { .map((dep) => dep + '@' + peerdeps[dep]) .join(' ') } - : { version } + : { + version, + plugin: pkg, + Plugin: capitalize(pkg), + } for (const file of ['shared.test.mjs']) { fs.writeFileSync(