Skip to content

Commit

Permalink
Detect QUILL_VERSION for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Dec 7, 2023
1 parent 6c43460 commit 31ca8cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 60 deletions.
2 changes: 1 addition & 1 deletion packages/quill/src/core/quill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Quill {
};
static events = Emitter.events;
static sources = Emitter.sources;
static version = QUILL_VERSION;
static version = typeof QUILL_VERSION === 'undefined' ? 'dev' : QUILL_VERSION;

static imports: Record<string, unknown> = {
delta: Delta,
Expand Down
27 changes: 0 additions & 27 deletions packages/website/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,31 +116,4 @@ const config = {
],
};

// if (process.env.USE_LOCAL_FILE) {
// config.developMiddleware = (app) => {
// const httpProxy = require("http-proxy");
// const proxy = httpProxy.createProxyServer({});
//
// if (!process.env.npm_package_config_ports_webpack) {
// throw new Error(
// "config.ports.webpack should be provided when USE_LOCAL_FILE is enabled."
// );
// }
//
// app.use((req, res, next) => {
// if (/\/\d+\.\d+\.\d+/.test(req.url)) {
// const target = `http://localhost:${
// process.env.npm_package_config_ports_webpack
// }/${req.url.split("/").pop()}`;
// proxy.web(req, res, {
// ignorePath: true,
// target,
// });
// } else {
// next();
// }
// });
// };
// }

module.exports = config;
37 changes: 5 additions & 32 deletions packages/website/src/gatsby-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1401,17 +1401,13 @@ type Query_mdxArgs = {
type Query_siteArgs = {
buildTime: InputMaybe<DateQueryOperatorInput>;
children: InputMaybe<NodeFilterListInput>;
graphqlTypegen: InputMaybe<SiteGraphqlTypegenFilterInput>;
graphqlTypegen: InputMaybe<BooleanQueryOperatorInput>;
host: InputMaybe<StringQueryOperatorInput>;
id: InputMaybe<StringQueryOperatorInput>;
internal: InputMaybe<InternalFilterInput>;
jsxRuntime: InputMaybe<StringQueryOperatorInput>;
parent: InputMaybe<NodeFilterInput>;
pathPrefix: InputMaybe<StringQueryOperatorInput>;
polyfill: InputMaybe<BooleanQueryOperatorInput>;
port: InputMaybe<IntQueryOperatorInput>;
siteMetadata: InputMaybe<SiteSiteMetadataFilterInput>;
trailingSlash: InputMaybe<StringQueryOperatorInput>;
};


Expand Down Expand Up @@ -1473,17 +1469,13 @@ type Query_sitePluginArgs = {
type Site = Node & {
readonly buildTime: Maybe<Scalars['Date']>;
readonly children: ReadonlyArray<Node>;
readonly graphqlTypegen: Maybe<SiteGraphqlTypegen>;
readonly graphqlTypegen: Maybe<Scalars['Boolean']>;
readonly host: Maybe<Scalars['String']>;
readonly id: Scalars['ID'];
readonly internal: Internal;
readonly jsxRuntime: Maybe<Scalars['String']>;
readonly parent: Maybe<Node>;
readonly pathPrefix: Maybe<Scalars['String']>;
readonly polyfill: Maybe<Scalars['Boolean']>;
readonly port: Maybe<Scalars['Int']>;
readonly siteMetadata: Maybe<SiteSiteMetadata>;
readonly trailingSlash: Maybe<Scalars['String']>;
};


Expand Down Expand Up @@ -1794,8 +1786,7 @@ type SiteFieldsEnum =
| 'children.parent.internal.type'
| 'children.parent.parent.children'
| 'children.parent.parent.id'
| 'graphqlTypegen.generateOnBuild'
| 'graphqlTypegen.typesOutputPath'
| 'graphqlTypegen'
| 'host'
| 'id'
| 'internal.content'
Expand All @@ -1807,7 +1798,6 @@ type SiteFieldsEnum =
| 'internal.mediaType'
| 'internal.owner'
| 'internal.type'
| 'jsxRuntime'
| 'parent.children'
| 'parent.children.children'
| 'parent.children.children.children'
Expand Down Expand Up @@ -1849,8 +1839,6 @@ type SiteFieldsEnum =
| 'parent.parent.internal.type'
| 'parent.parent.parent.children'
| 'parent.parent.parent.id'
| 'pathPrefix'
| 'polyfill'
| 'port'
| 'siteMetadata.cdn'
| 'siteMetadata.description'
Expand All @@ -1861,23 +1849,18 @@ type SiteFieldsEnum =
| 'siteMetadata.shortTitle'
| 'siteMetadata.title'
| 'siteMetadata.url'
| 'siteMetadata.version'
| 'trailingSlash';
| 'siteMetadata.version';

type SiteFilterInput = {
readonly buildTime: InputMaybe<DateQueryOperatorInput>;
readonly children: InputMaybe<NodeFilterListInput>;
readonly graphqlTypegen: InputMaybe<SiteGraphqlTypegenFilterInput>;
readonly graphqlTypegen: InputMaybe<BooleanQueryOperatorInput>;
readonly host: InputMaybe<StringQueryOperatorInput>;
readonly id: InputMaybe<StringQueryOperatorInput>;
readonly internal: InputMaybe<InternalFilterInput>;
readonly jsxRuntime: InputMaybe<StringQueryOperatorInput>;
readonly parent: InputMaybe<NodeFilterInput>;
readonly pathPrefix: InputMaybe<StringQueryOperatorInput>;
readonly polyfill: InputMaybe<BooleanQueryOperatorInput>;
readonly port: InputMaybe<IntQueryOperatorInput>;
readonly siteMetadata: InputMaybe<SiteSiteMetadataFilterInput>;
readonly trailingSlash: InputMaybe<StringQueryOperatorInput>;
};

type SiteFunction = Node & {
Expand Down Expand Up @@ -2101,16 +2084,6 @@ type SiteFunctionSortInput = {
readonly order: InputMaybe<ReadonlyArray<InputMaybe<SortOrderEnum>>>;
};

type SiteGraphqlTypegen = {
readonly generateOnBuild: Maybe<Scalars['Boolean']>;
readonly typesOutputPath: Maybe<Scalars['String']>;
};

type SiteGraphqlTypegenFilterInput = {
readonly generateOnBuild: InputMaybe<BooleanQueryOperatorInput>;
readonly typesOutputPath: InputMaybe<StringQueryOperatorInput>;
};

type SiteGroupConnection = {
readonly distinct: ReadonlyArray<Scalars['String']>;
readonly edges: ReadonlyArray<SiteEdge>;
Expand Down

0 comments on commit 31ca8cd

Please sign in to comment.