Skip to content

Commit

Permalink
chore: upgrade dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Akira Uehara committed Aug 25, 2023
1 parent efa7341 commit 9c38a13
Show file tree
Hide file tree
Showing 27 changed files with 7,434 additions and 7,964 deletions.
3,800 changes: 0 additions & 3,800 deletions .pnpm-debug.log

This file was deleted.

19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "root",
"devDependencies": {
"@changesets/changelog-github": "^0.4.0",
"@changesets/cli": "^2.18.0",
"@types/jest": "^27.0.1",
"husky": "^7.0.2",
"jest": "^27.0.6",
"jest-cli": "^27.0.6",
"jest-util": "^27.0.6",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@types/jest": "^29.5.4",
"husky": "^8.0.3",
"jest": "^29.6.4",
"jest-cli": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"jest-util": "^29.6.3",
"mkdirp": "^1.0.4",
"nixt": "^0.5.1",
"prettier": "^2.3.2",
"pretty-quick": "^3.1.1",
"prettier": "^3.0.2",
"pretty-quick": "^3.1.3",
"rimraf": "^3.0.2"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-single-spa/bin/create-single-spa.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function checkNodeVersion() {
minVersion +
", but you are using NodeJS " +
process.versions.node +
"."
".",
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = class SingleSpaAngularGenerator extends Generator {
this.options.projectName, // name of the new workspace and initial project
// "--routing", false, TODO: Figure out how to interop with single-spa-angular's routing option so that we don't ask the user twice with opposite defaults
]),
{ stdio: "inherit", cwd }
{ stdio: "inherit", cwd },
);

if (signal) {
Expand All @@ -71,7 +71,7 @@ module.exports = class SingleSpaAngularGenerator extends Generator {
});

console.log(
"For further routing setup, see https://single-spa.js.org/docs/ecosystem-angular#configure-routes"
"For further routing setup, see https://single-spa.js.org/docs/ecosystem-angular#configure-routes",
);
}
}
Expand All @@ -82,8 +82,8 @@ module.exports = class SingleSpaAngularGenerator extends Generator {
`Project setup complete!
Steps to test your Angular single-spa application:
1. Run 'npm run serve:single-spa:${this.options.projectName}'
2. Go to http://single-spa-playground.org/playground/instant-test?name=${this.options.projectName}&url=%2F%2Flocalhost%3A4200%2Fmain.js&framework=angular to see it working!`
)
2. Go to http://single-spa-playground.org/playground/instant-test?name=${this.options.projectName}&url=%2F%2Flocalhost%3A4200%2Fmain.js&framework=angular to see it working!`,
),
);
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"ts-config-single-spa": "^3.0.0"
},
"dependencies": {
"@types/jest": "^27.0.1",
"@types/jest": "^29.5.4",
"@types/systemjs": "^6.1.1",
"@types/webpack-env": "^1.16.2",
"single-spa": "^5.9.3"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
rootDir: "src",
testEnvironment: "jsdom",
testEnvironment: "jest-environment-jsdom",
transform: {
"^.+\\.(j|t)sx?$": "babel-jest",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,34 @@
"coverage": "cross-env BABEL_ENV=test jest --coverage"
},
"devDependencies": {
"@babel/core": "^7.15.0",
"@babel/eslint-parser": "^7.15.0",
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.5",
"@babel/runtime": "^7.15.3",
"@babel/core": "^7.22.11",
"@babel/eslint-parser": "^7.22.11",
"@babel/plugin-transform-runtime": "^7.22.10",
"@babel/preset-env": "^7.22.10",
"@babel/preset-react": "^7.22.5",
"@babel/runtime": "^7.22.11",
"@testing-library/jest-dom": "^6.1.2",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"babel-jest": "^27.0.6",
"concurrently": "^6.2.1",
"babel-jest": "^29.6.4",
"concurrently": "^8.2.1",
"cross-env": "^7.0.3",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-react-important-stuff": "^3.0.0",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^8.0.3",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.0.6",
"jest-cli": "^27.0.6",
"jest": "^29.6.4",
"jest-cli": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"prettier": "^3.0.2",
"pretty-quick": "^3.1.3",
"webpack": "^5.75.0",
"webpack-cli": "^4.10.0",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4",
"webpack-config-single-spa-react": "^4.0.0",
"webpack-dev-server": "^4.0.0",
"webpack-merge": "^5.8.0"
"webpack-dev-server": "^4.15.1",
"webpack-merge": "^5.9.0"
},
"dependencies": {
"react": "^18.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = class SingleSpaRootConfigGenerator extends PnpmGenerator {
async copyFiles() {
const packageJsonTemplate = await fs.readFile(
this.templatePath("root-config.package.json"),
{ encoding: "utf-8" }
{ encoding: "utf-8" },
);

const srcFileExtension = this.options.typescript ? "ts" : "js";
Expand Down Expand Up @@ -94,46 +94,46 @@ module.exports = class SingleSpaRootConfigGenerator extends PnpmGenerator {
this.destinationPath("package.json"),
this.fs.readJSON(
this.templatePath(
"../../common-templates/typescript/typescript.package.json"
)
)
"../../common-templates/typescript/typescript.package.json",
),
),
);
}

this.fs.copyTpl(
this.templatePath("../../common-templates/babel.config.json.ejs"),
this.destinationPath("babel.config.json"),
this.options
this.options,
);

this.fs.copyTpl(
this.templatePath("../../common-templates/gitignore"), // this is relative to /templates
this.destinationPath(".gitignore"),
this.options
this.options,
);

this.fs.copyTpl(
this.templatePath(`../../common-templates/.husky/pre-commit`),
this.destinationPath(`.husky/pre-commit`),
this.options
this.options,
);

this.fs.copyTpl(
this.templatePath(".eslintrc.ejs"),
this.destinationPath(".eslintrc"),
this.options
this.options,
);

this.fs.copyTpl(
this.templatePath(".prettierignore"),
this.destinationPath(".prettierignore"),
this.options
this.options,
);

this.fs.copyTpl(
this.templatePath("webpack.config.js"),
this.destinationPath("webpack.config.js"),
this.options
this.options,
);

if (this.options.typescript) {
Expand All @@ -143,54 +143,54 @@ module.exports = class SingleSpaRootConfigGenerator extends PnpmGenerator {
{
...this.options,
mainFile,
}
},
);
}

const parentPath = `src${this.options.layout ? "/layout" : ""}`;
this.fs.copyTpl(
this.templatePath(`${parentPath}/root-config.ejs`),
this.destinationPath(mainFile),
this.options
this.options,
);

this.fs.copyTpl(
this.templatePath(`${parentPath}/index.ejs`),
this.destinationPath(`src/index.ejs`),
this.options,
{ delimiter: "?" }
{ delimiter: "?" },
);

if (this.options.layout) {
this.fs.copyTpl(
this.templatePath(`${parentPath}/microfrontend-layout.html`),
this.destinationPath(`src/microfrontend-layout.html`),
this.options
this.options,
);
}

if (this.options.typescript) {
this.fs.copyTpl(
this.templatePath(
`../../common-templates/typescript/declarations.d.ts`
`../../common-templates/typescript/declarations.d.ts`,
),
this.destinationPath(`src/declarations.d.ts`),
this.options
this.options,
);
}

if (this.options.layout) {
const layoutTemplate = await fs.readFile(
this.templatePath("root-config-layout.package.json"),
{ encoding: "utf-8" }
{ encoding: "utf-8" },
);
const layoutJson = JSON.parse(
ejs.render(layoutTemplate, {
name: `@${this.options.orgName}/root-config`,
packageManager: this.options.packageManager,
typescript: this.options.typescript,
mainFile,
})
}),
);
this.fs.extendJSON(this.destinationPath("package.json"), layoutJson);
}
Expand Down Expand Up @@ -218,12 +218,12 @@ module.exports = class SingleSpaRootConfigGenerator extends PnpmGenerator {
this.on(`${this.options.packageManager}Install:end`, () => {
console.log(
chalk.bgWhite.black(`Project setup complete!
Run '${this.options.packageManager} start' to boot up your single-spa root config`)
Run '${this.options.packageManager} start' to boot up your single-spa root config`),
);

if (this.options.layout) {
console.log(
`\nPlease report single-spa-layout issues and bugs on GitHub https://github.com/single-spa/single-spa-layout/issues/new`
`\nPlease report single-spa-layout issues and bugs on GitHub https://github.com/single-spa/single-spa-layout/issues/new`,
);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,33 @@
"build:webpack": "webpack --mode=production"
},
"devDependencies": {
"@babel/core": "^7.15.0",
"@babel/eslint-parser": "^7.15.0",
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@babel/runtime": "^7.15.3",
"concurrently": "^6.2.1",
"@babel/core": "^7.22.11",
"@babel/eslint-parser": "^7.22.11",
"@babel/plugin-transform-runtime": "^7.22.10",
"@babel/preset-env": "^7.22.10",
"@babel/runtime": "^7.22.11",
"concurrently": "^8.2.1",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"eslint": "^8.47.0",
"eslint-config-important-stuff": "^1.1.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.1",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"html-webpack-plugin": "^5.3.2",
"husky": "^7.0.2",
"jest": "^27.0.6",
"jest-cli": "^27.0.6",
"prettier": "^2.3.2",
"pretty-quick": "^3.1.1",
"husky": "^8.0.3",
"jest": "^29.6.4",
"jest-cli": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"prettier": "^3.0.2",
"pretty-quick": "^3.1.3",
"serve": "^12.0.0",
"webpack": "^5.75.0",
"webpack-cli": "^4.10.0",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4",
"webpack-config-single-spa": "^5.0.0",
"webpack-dev-server": "^4.0.0",
"webpack-merge": "^5.8.0"
"webpack-dev-server": "^4.15.1",
"webpack-merge": "^5.9.0"
},
"dependencies": {
"@types/jest": "^27.0.1",
"@types/jest": "^29.5.4",
"@types/systemjs": "^6.1.1",
"single-spa": "^5.9.3"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ registerApplication({
name: "@single-spa/welcome",
app: () =>
System.import<% if (typescript) {%><LifeCycles><% } %>(
"https://unpkg.com/single-spa-welcome/dist/single-spa-welcome.js"
"https://unpkg.com/single-spa-welcome/dist/single-spa-welcome.js",
),
activeWhen: ["/"],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"babel-jest": "^27.0.6",
"concurrently": "^6.2.1",
"jest": "^27.0.6",
"jest-environment-jsdom": "~27.0.6",
"prettier": "^2.3.2",
"prettier-plugin-svelte": "^2.3.1",
"rollup": "^2.56.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = class ReactUtilModuleGenerator extends PnpmGenerator {
{
...this.options,
skipMainFile: true,
}
},
);
}
async modifyMainFile() {
Expand All @@ -77,7 +77,7 @@ module.exports = class ReactUtilModuleGenerator extends PnpmGenerator {
{
...this.options,
mainFile,
}
},
);
}
};
Loading

0 comments on commit 9c38a13

Please sign in to comment.