Skip to content

Commit

Permalink
Release 3.0.1 (#30)
Browse files Browse the repository at this point in the history
* prepare next dev version

* Make most visyn entry settings optional

* Pin @swc/core to 1.3.37 to avoid entered unreachable code: auto_accessor pass should remove this

* Disable cypress/unsafe-to-chain-command rule

* prepare release 3.0.1

---------

Co-authored-by: Michael Puehringer <[email protected]>
  • Loading branch information
dvvanessastoiber and puehringer authored Apr 3, 2023
1 parent 43d8dee commit 6b436cd
Show file tree
Hide file tree
Showing 6 changed files with 368 additions and 338 deletions.
3 changes: 3 additions & 0 deletions config/eslintrc.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ module.exports = ({ tsconfigRootDir }) => ({
{
files: ['cypress/**/*'],
extends: ['plugin:cypress/recommended', 'plugin:chai-friendly/recommended'],
rules: {
'cypress/unsafe-to-chain-command': 'warn',
},
plugins: ['cypress', 'chai-friendly'],
},
{
Expand Down
10 changes: 5 additions & 5 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ module.exports = (webpackEnv, argv) => {
* entries: {
* [chunkName: string]: {
* js: string;
* html: string;
* template: string;
* excludeChunks: string[];
* html?: string;
* template?: string;
* excludeChunks?: string[];
* scss?: string;
* };
* };
Expand Down Expand Up @@ -634,8 +634,8 @@ module.exports = (webpackEnv, argv) => {
...Object.entries(entries).map(
([chunkName, entry]) => new HtmlWebpackPlugin({
inject: true,
template: path.join(defaultAppPath, entry.template),
filename: entry.html,
template: entry.template ? path.join(defaultAppPath, entry.template) : 'auto',
filename: entry.html || `${chunkName}.html`,
title: libName,
// By default, exclude all other chunks
excludeChunks: entry.excludeChunks || Object.keys(entries).filter((entryKey) => entryKey !== chunkName),
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "visyn_scripts",
"description": "",
"version": "3.0.0",
"version": "3.0.1",
"author": {
"name": "datavisyn GmbH",
"email": "[email protected]",
Expand Down Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
"@svgr/webpack": "^5.5.0",
"@swc/core": "~1.3.35",
"@swc/core": "1.3.37",
"@swc/jest": "~0.2.24",
"@types/jest": "~27.4.1",
"@types/node": "^17.0.24",
Expand Down
2 changes: 2 additions & 0 deletions tests/standalone.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ describe('standalone', () => {
// Install dependencies
if (!fs.existsSync(resolve(templateDir, 'node_modules'))) {
console.log('Installing local dependencies in the template folder');
// Clear the yarn.lock to ensure it is found as module, but completely reinstalls.
fs.writeFileSync(resolve(templateDir, 'yarn.lock'), '');
execSync('yarn install --no-immutable --inline-builds', {
cwd: templateDir,
stdio: 'inherit',
Expand Down
Loading

0 comments on commit 6b436cd

Please sign in to comment.