Skip to content

chore(gene): update package to be tree-shakeable #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 24 additions & 93 deletions docs/docs-site/styles/generated.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
*,
::before,
::after {
*, ::before, ::after {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
Expand Down Expand Up @@ -154,11 +152,9 @@ html,
-moz-tab-size: 4;
/* 3 */
-o-tab-size: 4;
tab-size: 4;
tab-size: 4;
/* 3 */
font-family:
var(--font-sans), ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
/* 4 */
font-feature-settings: normal;
/* 5 */
Expand Down Expand Up @@ -201,7 +197,7 @@ Add the correct text decoration in Chrome, Edge, and Safari.

abbr:where([title]) {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
text-decoration: underline dotted;
}

/*
Expand Down Expand Up @@ -247,9 +243,7 @@ code,
kbd,
samp,
pre {
font-family:
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
'Courier New', monospace;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
/* 1 */
font-feature-settings: normal;
/* 2 */
Expand Down Expand Up @@ -492,8 +486,7 @@ textarea {
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder,
textarea::-moz-placeholder {
input::-moz-placeholder, textarea::-moz-placeholder {
opacity: 1;
/* 1 */
color: #9ca3af;
Expand All @@ -513,7 +506,7 @@ Set the default cursor for buttons.
*/

button,
[role='button'] {
[role="button"] {
cursor: pointer;
}

Expand Down Expand Up @@ -557,7 +550,7 @@ video {

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden='until-found'])) {
[hidden]:where(:not([hidden="until-found"])) {
display: none;
}

Expand Down Expand Up @@ -681,9 +674,7 @@ video {
}

.transform {
transform: translate(var(--tw-translate-x), var(--tw-translate-y))
rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.flex-col {
Expand Down Expand Up @@ -827,9 +818,7 @@ video {
}

.font-barlow {
font-family:
'Barlow Semi Condensed', ui-sans-serif, system-ui, sans-serif,
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
font-family: "Barlow Semi Condensed", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.text-2xl {
Expand Down Expand Up @@ -923,71 +912,37 @@ video {
.shadow-sm {
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
box-shadow:
var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
var(--tw-shadow);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.outline {
outline-style: solid;
}

.ring {
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0
var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0
calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow:
var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
var(--tw-shadow, 0 0 #0000);
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-offset-white {
--tw-ring-offset-color: #fff;
}

.filter {
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast)
var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate)
var(--tw-sepia) var(--tw-drop-shadow);
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition {
transition-property:
color,
background-color,
border-color,
text-decoration-color,
fill,
stroke,
opacity,
box-shadow,
transform,
filter,
-webkit-backdrop-filter;
transition-property:
color, background-color, border-color, text-decoration-color, fill, stroke,
opacity, box-shadow, transform, filter, backdrop-filter;
transition-property:
color,
background-color,
border-color,
text-decoration-color,
fill,
stroke,
opacity,
box-shadow,
transform,
filter,
backdrop-filter,
-webkit-backdrop-filter;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
}

.transition-colors {
transition-property:
color, background-color, border-color, text-decoration-color, fill, stroke;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
}
Expand All @@ -999,34 +954,14 @@ video {
@keyframes enter {
from {
opacity: var(--tw-enter-opacity, 1);
transform: translate3d(
var(--tw-enter-translate-x, 0),
var(--tw-enter-translate-y, 0),
0
)
scale3d(
var(--tw-enter-scale, 1),
var(--tw-enter-scale, 1),
var(--tw-enter-scale, 1)
)
rotate(var(--tw-enter-rotate, 0));
transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));
}
}

@keyframes exit {
to {
opacity: var(--tw-exit-opacity, 1);
transform: translate3d(
var(--tw-exit-translate-x, 0),
var(--tw-exit-translate-y, 0),
0
)
scale3d(
var(--tw-exit-scale, 1),
var(--tw-exit-scale, 1),
var(--tw-exit-scale, 1)
)
rotate(var(--tw-exit-rotate, 0));
transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
}
}

Expand Down Expand Up @@ -1087,13 +1022,9 @@ h6 {
}

.focus-visible\:ring-2:focus-visible {
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0
var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0
calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow:
var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
var(--tw-shadow, 0 0 #0000);
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus-visible\:ring-neutral-950:focus-visible {
Expand Down
1 change: 1 addition & 0 deletions packages/create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"create-gene-workspace": "./bin/create-gene-workspace.js"
},
"license": "Apache-2.0",
"sideEffects": false,
"dependencies": {
"create-nx-workspace": "17.3.0"
}
Expand Down
4 changes: 3 additions & 1 deletion packages/create/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"strictNullChecks": true,
"noUncheckedIndexedAccess": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"target": "ESNext",
"module": "ESNext"
},
"include": ["src/**/*.ts"],
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
Expand Down
6 changes: 5 additions & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@
"license": "Apache-2.0",
"main": "src/index.js",
"generators": "./generators.json",
"executors": "./executors.json"
"executors": "./executors.json",
"peerDependencies": {
"@typescript-eslint/utils": ">=6.21.0",
"tslib": ">=2.3.0"
}
}
10 changes: 9 additions & 1 deletion packages/gene-apollo/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"name": "@brainly-gene/apollo",
"version": "0.2.0-alpha.8",
"license": "Apache-2.0"
"license": "Apache-2.0",
"sideEffects": false,
"peerDependencies": {
"@brainly-gene/core": "*",
"deepmerge": ">=4.2.2",
"react": ">=18.3.1",
"tslib": ">=2.3.0",
"zen-observable": ">=0.8.15"
}
}
2 changes: 1 addition & 1 deletion packages/gene-apollo/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './apollo';
export * from './apollo/index';
4 changes: 3 additions & 1 deletion packages/gene-apollo/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"strictNullChecks": true,
"noUncheckedIndexedAccess": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"target": "ESNext",
"module": "ESNext"
},
"files": [
"../../node_modules/@nx/react/typings/cssmodule.d.ts",
Expand Down
17 changes: 16 additions & 1 deletion packages/gene-next/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
{
"name": "@brainly-gene/next",
"version": "0.2.0-alpha.8",
"license": "Apache-2.0"
"license": "Apache-2.0",
"sideEffects": false,
"peerDependencies": {
"@brainly-gene/core": "*",
"i18next": ">=21.6.5",
"i18next-browser-languagedetector": ">=6.1.2",
"i18next-http-backend": ">=1.3.1",
"inversify": ">=5.1.1",
"next": ">=14.2.21",
"next-connect": ">=0.12.1",
"path-to-regexp": ">=6.3.0",
"react": ">=18.3.1",
"react-i18next": ">=11.16.1",
"tslib": ">=2.3.0",
"zen-observable-ts": ">=1.1.0"
}
}
8 changes: 4 additions & 4 deletions packages/gene-next/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './api-routes';
export * from './routing';
export * from './translations';
export * from './image-assets';
export * from './api-routes/index';
export * from './routing/index';
export * from './translations/index';
export * from './image-assets/index';
4 changes: 3 additions & 1 deletion packages/gene-next/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"strictNullChecks": true,
"noUncheckedIndexedAccess": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"target": "ESNext",
"module": "ESNext"
},
"files": [
"../../node_modules/@nx/react/typings/cssmodule.d.ts",
Expand Down
6 changes: 5 additions & 1 deletion packages/gene-sentry/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"name": "@brainly-gene/sentry",
"version": "0.2.0-alpha.8",
"license": "Apache-2.0"
"license": "Apache-2.0",
"sideEffects": false,
"peerDependencies": {
"tslib": ">=2.3.0"
}
}
2 changes: 1 addition & 1 deletion packages/gene-sentry/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './sentry';
export * from './sentry/index';
4 changes: 3 additions & 1 deletion packages/gene-sentry/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"strictNullChecks": true,
"noUncheckedIndexedAccess": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"target": "ESNext",
"module": "ESNext"
},
"files": [
"../../node_modules/@nx/react/typings/cssmodule.d.ts",
Expand Down
22 changes: 22 additions & 0 deletions packages/gene-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,27 @@
"./generators.json": "./generators.json",
".": "./src/index.js",
"./storybook-utils": "./storybook-utils/index.js"
},
"dependencies": {
"@cucumber/gherkin": ">=27.0.0",
"@cucumber/messages": ">=19.1.4",
"@nx/devkit": ">=17.3.2",
"@nx/linter": ">=17.3.2",
"@nx/next": ">=17.3.2",
"@nx/react": ">=17.3.2",
"@nx/storybook": ">=16.10.0",
"@nx/workspace": ">=17.3.2",
"ejs": ">=3.1.10",
"glob": ">=7.1.6",
"inquirer": ">=7.3.3",
"inquirer-search-checkbox": ">=1.0.0",
"inquirer-search-list": ">=1.2.6",
"jscodeshift": ">=0.11.0",
"lodash": ">=4.17.21",
"openai": ">=3.3.0",
"ramda": ">=0.27.1",
"remark": ">=9.0.0",
"unist-util-visit": ">=2.0.3",
"yaml": ">=1.10.0"
}
}
8 changes: 4 additions & 4 deletions packages/gene-tools/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './generators';
export * from './scripts';
export * from './checkers/component-report';
export * from './checkers/module-report';
export * from './generators/index';
export * from './scripts/index';
export * from './checkers/component-report/index';
export * from './checkers/module-report/index';
Loading
Loading