Skip to content

Commit

Permalink
feat(stencil): update Stencil to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikPieper committed Oct 31, 2023
1 parent 84193c0 commit 997db2a
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 44 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@phenomnomnominal/tsquery": "~5.0.1",
"@preact/preset-vite": "^2.5.0",
"@schematics/angular": "16.0.0",
"@stencil/core": "3.4.0",
"@stencil/core": "4.7.0",
"@swc-node/register": "1.6.8",
"@swc/cli": "0.1.62",
"@swc/core": "1.3.91",
Expand Down
14 changes: 7 additions & 7 deletions packages/stencil/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
"@nxext/common": "*"
},
"peerDependencies": {
"@nxext/svelte": "^16.7.0",
"@stencil/core": "^3.4.0",
"@nx/cypress": "17.0.1",
"@nx/storybook": "17.0.1",
"@nx/jest": "17.0.1",
"@nx/react": "17.0.1",
"@nx/eslint": "17.0.1"
"@nxext/svelte": "^17.0.0",
"@stencil/core": "^4.7.0",
"@nx/cypress": "^17.0.1",
"@nx/storybook": "^17.0.1",
"@nx/jest": "^17.0.1",
"@nx/react": "^17.0.1",
"@nx/eslint": "^17.0.1"
},
"peerDependenciesMeta": {
"@nxext/svelte": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const readNxVersionModule = require('../../utils/utillities');

describe('schematic:application', () => {
jest.spyOn(devkit, 'ensurePackage').mockReturnValue(Promise.resolve());
jest.spyOn(readNxVersionModule, 'readNxVersion').mockReturnValue('15.7.0');
jest.spyOn(readNxVersionModule, 'readNxVersion').mockReturnValue('17.0.0');

let host: Tree;
const options: RawApplicationSchema = { name: 'test', linter: Linter.None };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const readNxVersionModule = require('../../utils/utillities');

describe('storybook-configuration generator', () => {
jest.spyOn(devkit, 'ensurePackage').mockReturnValue(Promise.resolve());
jest.spyOn(readNxVersionModule, 'readNxVersion').mockReturnValue('15.7.0');
jest.spyOn(readNxVersionModule, 'readNxVersion').mockReturnValue('17.0.0');

const options: StorybookConfigureSchema = {
name: 'test',
Expand Down
8 changes: 4 additions & 4 deletions packages/stencil/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export const stencilVersion = '^3.4.0';
export const stencilVersion = '^4.7.0';
export const stencilRouterVersion = '^1.0.1';
export const ionicVersion = '^6.4.1';

export const autoprefixerVersion = '^9.7.6';
export const autoprefixerTypesVersion = '^9.7.2';

export const puppeteer = '^15.5.0';
export const puppeteer = '^21.4.1';

export const eslintPluginImportVersion = '2.22.1';
export const eslintPluginStencilVersion = '0.3.1';
Expand All @@ -14,7 +14,7 @@ export const STENCIL_OUTPUTTARGET_VERSION: {
[style: string]: string;
} = {
react: '^0.5.3',
angular: '^0.7.1',
angular: '^0.8.3',
vue: '^0.8.6',
svelte: '^0.0.3',
};
Expand All @@ -23,7 +23,7 @@ export const STENCIL_STYLE_PLUGIN_VERSION: {
[style: string]: string;
} = {
less: '1.0.0',
scss: '3.0.4',
scss: '3.0.7',
pcss: '2.1.0',
styl: '1.0.1',
};
Expand Down
24 changes: 12 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions tools/scripts/fetch-latest-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {
testingLibraryPreactVersion,
vitePluginPreactVersion,
} from '../../packages/preact/src/generators/utils/versions';
import { capacitorVersion } from '../../packages/capacitor/src/utils/versions';
import {
vueRouterVersion,
vueTestUtilsVersion,
Expand Down Expand Up @@ -131,21 +130,6 @@ solidPkgs.forEach(({ pkg, version }) => {
checkVersion(pkg, version);
});

console.log('======================================');
console.log('Capacitor:');
console.log('======================================');

const capacitorPkgs = [
{ pkg: '@capacitor/core', version: capacitorVersion },
{ pkg: '@capacitor/android', version: capacitorVersion },
{ pkg: '@capacitor/ios', version: capacitorVersion },
{ pkg: '@capacitor/cli', version: capacitorVersion },
];

capacitorPkgs.forEach(({ pkg, version }) => {
checkVersion(pkg, version);
});

console.log('======================================');
console.log('Vue:');
console.log('======================================');
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@nxext/angular-swc": ["packages/angular/swc/src/index.ts"],
"@nxext/angular-vite": ["packages/angular/vite/src/index.ts"],
"@nxext/capacitor": ["packages/capacitor/src/index.ts"],
"@nxext/common": ["packages/common/src/index.ts"],
"@nxext/e2e-utils": ["e2e/utils/index.ts"],
"@nxext/ionic-angular": ["packages/ionic-angular/src/index.ts"],
"@nxext/ionic-react": ["packages/ionic-react/src/index.ts"],
Expand All @@ -29,8 +30,7 @@
"@nxext/svelte": ["packages/svelte/src/index.ts"],
"@nxext/vite": ["packages/vite/src/index.ts"],
"@nxext/vitest": ["packages/vitest/src/index.ts"],
"@nxext/vue": ["packages/vue/src/index.ts"],
"@nxext/common": ["packages/common/src/index.ts"]
"@nxext/vue": ["packages/vue/src/index.ts"]
}
},
"exclude": ["node_modules", "tmp"]
Expand Down

0 comments on commit 997db2a

Please sign in to comment.