Skip to content

Commit

Permalink
chore: qwik 0.0.42 (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley authored Aug 10, 2022
1 parent 23b6a0d commit 6838b7f
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "qwik-monorepo",
"version": "0.0.41",
"version": "0.0.42",
"scripts": {
"build": "tsm scripts/index.ts --tsc --build --qwikcity --api --platform-binding-wasm-copy",
"build.full": "tsm scripts/index.ts --tsc --build --api --eslint --qwikcity --qwikreact --platform-binding --wasm",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-qwik/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-qwik",
"version": "0.0.41",
"version": "0.0.42",
"description": "Interactive CLI and API for generating Qwik projects.",
"bin": "create-qwik",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-qwik/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-qwik",
"version": "0.0.41",
"version": "0.0.42",
"description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",
"main": "index.js",
"author": "Builder Team",
Expand Down
2 changes: 1 addition & 1 deletion packages/qwik/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik",
"version": "0.0.41",
"version": "0.0.42",
"description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",
"main": "./dist/core.cjs",
"types": "./dist/core.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions scripts/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function bundleCli(config: BuildConfig, srcCliDir: string, distCliDir: str
minify: !config.dev,
plugins: [importPath(/api$/, './index.js')],
banner: {
js: `${getBanner(PACKAGE)}`,
js: `${getBanner(PACKAGE, config.distVersion)}`,
},
watch: watcher(config),
});
Expand All @@ -47,7 +47,7 @@ async function bundleCli(config: BuildConfig, srcCliDir: string, distCliDir: str
platform: 'node',
minify: !config.dev,
banner: {
js: getBanner(PACKAGE),
js: getBanner(PACKAGE, config.distVersion),
},
watch: watcher(config),
});
Expand Down
6 changes: 3 additions & 3 deletions scripts/submodule-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function submoduleCoreProd(config: BuildConfig) {
format: 'es',
entryFileNames: 'core.mjs',
sourcemap: true,
banner: getBanner('@builder.io/qwik'),
banner: getBanner('@builder.io/qwik', config.distVersion),
};

const cjsIntro = [
Expand All @@ -64,7 +64,7 @@ async function submoduleCoreProd(config: BuildConfig) {
name: 'qwikCore',
entryFileNames: 'core.cjs',
sourcemap: true,
banner: getBanner('@builder.io/qwik'),
banner: getBanner('@builder.io/qwik', config.distVersion),
intro: cjsIntro,
};

Expand Down Expand Up @@ -98,7 +98,7 @@ async function submoduleCoreProd(config: BuildConfig) {
format: {
comments: /__PURE__/,
preserve_annotations: true,
preamble: getBanner('@builder.io/qwik'),
preamble: getBanner('@builder.io/qwik', config.distVersion),
ecma: 2020,
},
});
Expand Down
4 changes: 2 additions & 2 deletions scripts/submodule-optimizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function submoduleOptimizer(config: BuildConfig) {
const esmBuild = build({
...opts,
format: 'esm',
banner: { js: getBanner('@builder.io/qwik/optimizer') },
banner: { js: getBanner('@builder.io/qwik/optimizer', config.distVersion) },
outExtension: { '.js': '.mjs' },
define: {
'globalThis.IS_CJS': 'false',
Expand Down Expand Up @@ -112,7 +112,7 @@ export async function submoduleOptimizer(config: BuildConfig) {
braces: true,
beautify: true,
indent_level: 2,
preamble: getBanner('@builder.io/qwik/optimizer'),
preamble: getBanner('@builder.io/qwik/optimizer', config.distVersion),
},
mangle: false,
});
Expand Down
4 changes: 2 additions & 2 deletions scripts/submodule-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function submoduleServer(config: BuildConfig) {
const esm = build({
...opts,
format: 'esm',
banner: { js: getBanner('@builder.io/qwik/server') + injectGlobalPoly() },
banner: { js: getBanner('@builder.io/qwik/server', config.distVersion) + injectGlobalPoly() },
outExtension: { '.js': '.mjs' },
plugins: [importPath(/^@builder\.io\/qwik$/, '@builder.io/qwik'), qwikDomPlugin],
watch: watcher(config, submodule),
Expand All @@ -52,7 +52,7 @@ export async function submoduleServer(config: BuildConfig) {
});

const cjsBanner = [
getBanner('@builder.io/qwik/server'),
getBanner('@builder.io/qwik/server', config.distVersion),
injectGlobalThisPoly(),
injectGlobalPoly(),
`globalThis.qwikServer = (function (module) {`,
Expand Down
6 changes: 4 additions & 2 deletions scripts/submodule-testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function submoduleTesting(config: BuildConfig) {
const esm = build({
...opts,
format: 'esm',
banner: { js: getBanner('@builder.io/qwik/testing') },
banner: { js: getBanner('@builder.io/qwik/testing', config.distVersion) },
outExtension: { '.js': '.mjs' },
plugins: [
importPath(/^@builder\.io\/qwik$/, '../core.mjs'),
Expand All @@ -40,7 +40,9 @@ export async function submoduleTesting(config: BuildConfig) {
...opts,
format: 'cjs',
outExtension: { '.js': '.cjs' },
banner: { js: getBanner('@builder.io/qwik/testing') + injectGlobalThisPoly() },
banner: {
js: getBanner('@builder.io/qwik/testing', config.distVersion) + injectGlobalThisPoly(),
},
plugins: [
importPath(/^@builder\.io\/qwik$/, '../core.cjs'),
importPath(/^@builder\.io\/qwik\/optimizer$/, '../optimizer.cjs'),
Expand Down
4 changes: 2 additions & 2 deletions scripts/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ export function watcher(config: BuildConfig, filename?: string): WatchMode | boo
/**
* Standard license banner to place at the top of the generated files.
*/
export const getBanner = (moduleName: string) => {
export const getBanner = (moduleName: string, version: string) => {
return `
/**
* @license
* ${moduleName}
* ${moduleName} ${version}
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,14 @@ __metadata:
languageName: unknown
linkType: soft

"@builder.io/[email protected], @builder.io/qwik@workspace:*, @builder.io/qwik@workspace:packages/qwik":
"@builder.io/qwik@npm:0.0.41":
version: 0.0.41
resolution: "@builder.io/qwik@npm:0.0.41"
checksum: bc587947ea7470e5ad89420bb2f889defa6c2d1e540f1b60a19cc2be695edde2d64140921ea924ed14dcbc1f87bae36db1523256bd1a36a347dbe6c78ddc0ae3
languageName: node
linkType: hard

"@builder.io/qwik@workspace:*, @builder.io/qwik@workspace:packages/qwik":
version: 0.0.0-use.local
resolution: "@builder.io/qwik@workspace:packages/qwik"
languageName: unknown
Expand Down

0 comments on commit 6838b7f

Please sign in to comment.