generator-bitloops 0.3.14 → 0.3.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-bitloops",
3
- "version": "0.3.14",
3
+ "version": "0.3.16",
4
4
  "description": "Next.js with TypeScript, Tailwind, Storybook and Cypress generator by Bitloops",
5
5
  "license": "MIT",
6
6
  "author": "Bitloops S.A.",
package/setup/index.js CHANGED
@@ -119,7 +119,7 @@ export default class extends Generator {
119
119
 
120
120
  this.log('Installing Next.js...');
121
121
  const patchPackages = ''; //'next@14 react@18 react-dom@18';
122
- const additionalPackages = `react-tooltip ${patchPackages}`;
122
+ const additionalPackages = `react-tooltip ${patchPackages} class-variance-authority tailwind-merge`;
123
123
  await new Promise((resolve, error) => {
124
124
  exec(
125
125
  `npx ${createNextAppCommand.join(' ')} && cd ${toKebabCase(
@@ -62,3 +62,7 @@ export const areVerticalRightAligned = (rects: DOMRect[]): boolean => {
62
62
  }
63
63
  return true;
64
64
  };
65
+
66
+ export const roundToNearestHalf = (num: number): number => {
67
+ return Math.round(num * 2) / 2;
68
+ };