Skip to content

Commit

Permalink
Fix Angular StackBlitz demos (#1916)
Browse files Browse the repository at this point in the history
* fix(stackblitz/angular): requires newer versions in generated demo

* chore(deps): bump
  • Loading branch information
nstuyvesant authored Nov 21, 2024
1 parent fa5f072 commit 9f9a358
Show file tree
Hide file tree
Showing 9 changed files with 507 additions and 415 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
},
"packageManager": "[email protected]",
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@eslint/compat": "^1.2.3",
"@eslint/js": "^9.15.0",
"@playwright/test": "^1.48.2",
"@types/node": "^22.9.0",
"@playwright/test": "^1.49.0",
"@types/node": "^22.9.1",
"@vue/eslint-config-prettier": "^10.1.0",
"@vue/eslint-config-typescript": "^14.1.3",
"eslint": "^9.15.0",
Expand All @@ -37,16 +37,16 @@
"eslint-plugin-svelte": "^2.46.0",
"eslint-plugin-vue": "^9.31.0",
"globals": "^15.12.0",
"husky": "^9.1.6",
"husky": "^9.1.7",
"lerna": "^8.1.9",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"prettier-config-carbon": "^0.11.0",
"prettier-plugin-svelte": "^3.2.8",
"svelte": "^5.2.2",
"svelte": "^5.2.7",
"svelte-eslint-parser": "^0.43.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.14.0",
"typescript-eslint": "^8.15.0",
"vue-eslint-parser": "^9.4.3"
},
"release": {
Expand Down
8 changes: 4 additions & 4 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
"@angular/core": "^18.2.12",
"@angular/platform-browser": "^18.2.12",
"@angular/platform-browser-dynamic": "^18.2.12",
"@carbon/icons": "^11.52.0",
"@playwright/test": "^1.48.2",
"angular-eslint": "^18.4.0",
"@carbon/icons": "^11.53.0",
"@playwright/test": "^1.49.0",
"angular-eslint": "^18.4.1",
"concurrently": "^9.1.0",
"eslint": "^9.15.0",
"ng-packagr": "^18.2.1",
"prettier": "^3.3.3",
"typescript": "<5.6.0",
"typescript-eslint": "^8.14.0",
"typescript-eslint": "^8.15.0",
"zone.js": "~0.15.0"
},
"publishConfig": {
Expand Down
10 changes: 5 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,21 @@
"d3-cloud": "^1.2.7",
"d3-sankey": "^0.12.3",
"date-fns": "^4.1.0",
"dompurify": "^3.2.0",
"dompurify": "^3.2.1",
"html-to-image": "^1.11.11",
"lodash-es": "^4.17.21",
"topojson-client": "^3.1.0",
"tslib": "^2.8.1"
},
"devDependencies": {
"@carbon/layout": "^11.28.0",
"@carbon/styles": "^1.69.0",
"@carbon/styles": "^1.70.0",
"@carbon/themes": "^11.43.0",
"@playwright/test": "^1.48.2",
"@playwright/test": "^1.49.0",
"@rollup/plugin-replace": "^6.0.1",
"@types/dompurify": "^3.0.5",
"@types/dompurify": "^3.2.0",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.9.0",
"@types/node": "^22.9.1",
"concurrently": "^9.1.0",
"downlevel-dts": "^0.11.0",
"eslint": "^9.15.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"dependencies": {
"@carbon/charts": "workspace:*",
"@carbon/charts-react": "workspace:*",
"@carbon/icons-react": "^11.52.0",
"@carbon/react": "^1.70.0",
"@carbon/icons-react": "^11.53.0",
"@carbon/react": "^1.71.0",
"@stackblitz/sdk": "^1.11.0",
"fuse.js": "^7.0.0",
"highlight.js": "^11.10.0",
Expand Down
20 changes: 10 additions & 10 deletions packages/docs/src/lib/stackblitz/angular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ export function getAngularProject(
options: ChartOptions
): Project {
const dependencies: Record<string, string> = {
'@angular/common': '^18.0.0',
'@angular/compiler': '^18.0.0',
'@angular/core': '^18.0.0',
'@angular/platform-browser': '^18.0.0',
'@angular/common': '^18.1.0',
'@angular/compiler': '^18.1.0',
'@angular/core': '^18.1.0',
'@angular/platform-browser': '^18.1.0',
'@carbon/charts-angular': version.carbonCharts,
tslib: '^2.5.0',
'zone.js': '~0.14.0'
}

const devDependencies = {
'@angular-devkit/build-angular': '^18.0.0',
'@angular/cli': '^18.0.1',
'@angular/compiler-cli': '^18.0.0',
'@angular-devkit/build-angular': '^18.1.0',
'@angular/cli': '^18.1.0',
'@angular/compiler-cli': '^18.1.0',
'@types/d3': '^7.4.3',
'@types/d3-cloud': '^1.2.9',
'@types/d3-sankey': '^0.12.4',
'@types/topojson-client': '^3.1.0',
typescript: '~5.4.0'
typescript: '~5.5.0'
}

const indexHtml = `<html>
Expand All @@ -50,7 +50,6 @@ export function getAngularProject(

const mainTs = `import { Component } from '@angular/core'
import { bootstrapApplication } from '@angular/platform-browser'
import 'zone.js'
import { ChartsModule } from '@carbon/charts-angular'
import options from './options'
import data from './data'
Expand Down Expand Up @@ -103,6 +102,7 @@ bootstrapApplication(App)
"index": "src/index.html",
"browser": "src/main.ts",
"outputPath": "dist/demo",
"polyfills": ["zone.js"],
"scripts": [],
"styles": ["src/styles.css"],
"tsConfig": "tsconfig.app.json"
Expand Down Expand Up @@ -172,7 +172,7 @@ bootstrapApplication(App)
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "ES2015",
"target": "ES2022",
"module": "ES2022",
"useDefineForClassFields": false,
"lib": ["ES2022", "dom"]
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
},
"dependencies": {
"@carbon/charts": "workspace:*",
"@carbon/icons-react": "^11.52.0",
"@carbon/icons-react": "^11.53.0",
"@ibm/telemetry-js": "^1.8.0"
},
"peerDependencies": {
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
},
"devDependencies": {
"@playwright/test": "^1.48.2",
"@playwright/test": "^1.49.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react-swc": "^3.7.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
"@ibm/telemetry-js": "^1.8.0"
},
"devDependencies": {
"@playwright/test": "^1.48.2",
"@playwright/test": "^1.49.0",
"@sveltejs/adapter-static": "^3.0.6",
"@sveltejs/kit": "^2.8.1",
"@sveltejs/package": "^2.3.7",
"@sveltejs/vite-plugin-svelte": "^4.0.1",
"eslint": "^9.15.0",
"prettier": "^3.3.3",
"publint": "^0.2.12",
"svelte": "^5.2.2",
"svelte": "^5.2.7",
"svelte-check": "^4.0.9",
"tslib": "^2.8.1",
"typescript": "^5.6.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@ibm/telemetry-js": "^1.8.0"
},
"devDependencies": {
"@playwright/test": "^1.48.2",
"@playwright/test": "^1.49.0",
"@vitejs/plugin-vue": "^5.2.0",
"eslint": "^9.15.0",
"prettier": "^3.3.3",
Expand Down
Loading

0 comments on commit 9f9a358

Please sign in to comment.