Releases: single-spa/create-single-spa
webpack-config-single-spa-react-ts@4.0.3
Patch Changes
Updated dependencies []:
webpack-config-single-spa-react@4.0.3
webpack-config-single-spa-ts@4.1.2
ts-config-single-spa@3.0.0
Major Changes
-
#316
6ca8cbc
Thanks @joeldenning! - For typescript projects, automatically emit types duringbuild
.Migrating
The create-single-spa api for generating new typescript projects did not change. However, to upgrade existing projects, do the following:
- Update your package.json. Make sure to replace
<%= packageManager %>
with eithernpm
,yarn
, orpnpm
{ "scripts": { - "build": "webpack --mode=production", + "build": "concurrently <%= packageManager %>:build:*", + "build:webpack": "webpack --mode=production", + "build:types": "tsc" } }
- Update your tsconfig.json. Make sure to replace
<%= mainFile %>
with the proper value. This is in the formatorg-project.ts
. React projects should have the.tsx
file extension
{ "compilerOptions": { + "declarationDir": "dist" }, + "files": ["src/<%= mainFile %>"] - "include": ["src/**/*", "node_modules/@types"], + "include": ["src/**/*"] }
- Add the
"types"
property to your package.json:
{ + "types": "dist/<%= mainFile %>.d.ts" }
- Upgrade
ts-config-single-spa
to the latest 3.x release, which has new configuration for emitting types.
npm install --save-dev ts-config-single-spa@^3.0.0 pnpm install --save-dev ts-config-single-spa@^3.0.0 yarn add --dev ts-config-single-spa@^3.0.0
- Now run
npm run build
ornpm run build:types
and verify that a typescript declaration file is outputted to yourdist
directory. Verify that the output file name is the same as the"types"
property in your package.json.
- Update your package.json. Make sure to replace
single-spa-welcome@2.3.0
Minor Changes
#327 5c31d36 Thanks @joeldenning! - Update all dependencies
single-spa-web-server-utils@2.2.0
Minor Changes
#327 5c31d36 Thanks @joeldenning! - Update all dependencies
generator-single-spa@4.1.2
Patch Changes
#336 fb19896 Thanks @joeldenning! - Use single-spa-layout@1 until single-spa@6 is ready
create-single-spa@4.1.2
What's Changed
- Support for CSS modules by @joeldenning in #338
Full Changelog: https://github.com/single-spa/create-single-spa/compare/v4.1.1...create-single-spa@4.1.2
See CHANGELOG.md
From now on, release notes will only be contained in CHANGELOG.md files within each project. For example, https://github.com/single-spa/create-single-spa/blob/main/packages/create-single-spa/CHANGELOG.md and https://github.com/single-spa/create-single-spa/blob/main/packages/webpack-config-single-spa/CHANGELOG.md
v2.3.0
generator-single-spa
2.3.0
Minor Changes
- #280
2e79c7f
Thanks @joeldenning! - Use single-spa-layout by default in root configs
Patch Changes
- #279
2793ffd
Thanks @joeldenning! - Fix issue with typescript declarations for file loading
- #276
337d8dd
Thanks @PieterBoeren! - Added support for images in the webpack config
create-single-spa
2.2.1
Patch Changes
v2.2.0
create-single-spa
2.2.0
Minor Changes
- 905c0cc: - The create-single-spa project now uses pnpm workspaces and changesets instead of lerna.
- Remove deprecated babel-eslint package in favor of new @babel/eslint-parser package.
- Fix typescript problems in pnpm packages.
- Add support for creation of pnpm packages. Resolves #211.
- Add name field for utility packages.
- No longer depend on beta versions of create-single-spa packages
- Rename template package.jsons to avoid detection by monorepo tooling
- Fix usage of @testing-library/jest-dom in yarn pnp and pnpm
- Switch to Github actions instead of Travis - travis stopped reporting test results
- prettierignore pnpm-lock.yaml files
- Improve support for format and check-format commands on Windows
Patch Changes
- Updated dependencies [905c0cc]
- Updated dependencies [6f2c13c]
- Updated dependencies [bf039d0]
- generator-single-spa@2.2.0
single-spa-welcome
2.2.0
Minor Changes
- 905c0cc: - The create-single-spa project now uses pnpm workspaces and changesets instead of lerna.
- Remove deprecated babel-eslint package in favor of new @babel/eslint-parser package.
- Fix typescript problems in pnpm packages.
- Add support for creation of pnpm packages. Resolves #211.
- Add name field for utility packages.
- No longer depend on beta versions of create-single-spa packages
- Rename template package.jsons to avoid detection by monorepo tooling
- Fix usage of @testing-library/jest-dom in yarn pnp and pnpm
- Switch to Github actions instead of Travis - travis stopped reporting test results
- prettierignore pnpm-lock.yaml files
- Improve support for format and check-format commands on Windows
- 6f2c13c: Move layout definition to microfrontends-layout.html file.
generator-single-spa
2.2.0
Minor Changes
- 905c0cc: - The create-single-spa project now uses pnpm workspaces and changesets instead of lerna.
- Remove deprecated babel-eslint package in favor of new @babel/eslint-parser package.
- Fix typescript problems in pnpm packages.
- Add support for creation of pnpm packages. Resolves #211.
- Add name field for utility packages.
- No longer depend on beta versions of create-single-spa packages
- Rename template package.jsons to avoid detection by monorepo tooling
- Fix usage of @testing-library/jest-dom in yarn pnp and pnpm
- Switch to Github actions instead of Travis - travis stopped reporting test results
- prettierignore pnpm-lock.yaml files
- Improve support for format and check-format commands on Windows
- 6f2c13c: Move layout definition to microfrontends-layout.html file.
Patch Changes
- bf039d0: Use ts-important-stuff in eslintrc for typescript root-configs
webpack-config-single-spa
2.2.0
Minor Changes
- 905c0cc: - The create-single-spa project now uses pnpm workspaces and changesets instead of lerna.
- Remove deprecated babel-eslint package in favor of new @babel/eslint-parser package.
- Fix typescript problems in pnpm packages.
- Add support for creation of pnpm packages. Resolves #211.
- Add name field for utility packages.
- No longer depend on beta versions of create-single-spa packages
- Rename template package.jsons to avoid detection by monorepo tooling
- Fix usage of @testing-library/jest-dom in yarn pnp and pnpm
- Switch to Github actions instead of Travis - travis stopped reporting test results
- prettierignore pnpm-lock.yaml files
- Improve support for format and check-format commands on Windows
- 6f2c13c: Move layout definition to microfrontends-layout.html file.
single-spa-web-server-utils
2.1.0
Minor Changes
- 905c0cc: - The create-single-spa project now uses pnpm workspaces and changesets instead of lerna.
- Remove deprecated babel-eslint package in favor of new @babel/eslint-parser package.
- Fix typescript problems in pnpm packages.
- Add support for creation of pnpm packages. Resolves #211.
- Add name field for utility packages.
- No longer depend on beta versions of create-single-spa packages
- Rename template package.jsons to avoid detection by monorepo tooling
- Fix usage of @testing-library/jest-dom in yarn pnp and pnpm
- Switch to Github actions instead of Travis - travis stopped reporting test results
- prettierignore pnpm-lock.yaml files
- Improve support for format and check-format commands on Windows
webpack-config-single-spa-ts
2.2.0
Minor Changes
- 905c0cc: - The create-single-spa project now uses pnpm workspaces and changesets instead of lerna.
- Remove deprecated babel-eslint package in favor of new @babel/eslint-parser package.
- Fix typescript problems in pnpm packages.
- Add support for creation of pnpm packages. Resolves #211.
- Add name field for utility packages.
- No longer depend on beta versions of create-single-spa packages
- Rename template package.jsons to avoid detection by monorepo tooling
- Fix usage of @testing-library/jest-dom in yarn pnp and pnpm
- Switch to Github actions instead of Travis - travis stopped reporting test results
- prettierignore pnpm-lock.yaml files
- Improve support for format and check-format commands on Windows
Patch Changes
webpack-config-single-spa-ts
2.2.0
Minor Changes
- 905c0cc: - The create-single-spa project now uses pnpm workspaces and changesets instead of lerna.
- Remove deprecated babel-eslint package in favor of new @babel/eslint-parser package.
- Fix typescript problems in pnpm packages.
- Add support for creation of pnpm packages. Resolves #211.
- Add name field for utility packages.
- No longer depend on beta versions of create-single-spa packages
- Rename template package.jsons to avoid detection by monorepo tooling
- Fix usage of @testing-library/jest-dom in yarn pnp and pnpm
- Switch to Github actions instead of Travis - travis stopped reporting test results
- prettierignore pnpm-lock.yaml files
- Improve support for format and check-format commands on Windows
Patch Changes
webpack-config-single-spa-react-ts
2.2.0
Minor Changes
- 905c0cc: - The create-single-spa project now uses pnpm workspaces and changesets instead of lerna.
- Remove deprecated babel-eslint package in favor of new @babel/eslint-parser package.
- Fix typescript problems in pnpm packages.
- Add support for creation of pnpm packages. Resolves #211.
- Add name field for utility packages.
- No longer depend on beta versions of create-single-spa packages
- Rename template package.jsons to avoid detection by monorepo tooling
- Fix usage of @testing-library/jest-dom in yarn pnp and pnpm
- Switch to Github actions instead of Travis - travis stopped reporting test results
- prettierignore pnpm-lock.yaml files
- Improve support for format and check-format commands on Windows
Patch Changes
- Updated dependencies [905c0cc]
- webpack-config-single-spa-react@2.2.0
- webpack-config-single-spa-ts@2.2.0