-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ship *.js and *.d.ts together under build/js/lib * Add missing 'override' modifier * Normalize tsconfig.json in tests * Allow to rewrite imports in import("...") * Use `skipLibCheck: true` consistently for now * Run `npm pack` as part of bokehjs build * Fix implementation of latex_label test * Respect lib dir if typescript is in devDependencies * Redesign MANIFEST.in * Make all core/kinds imports relative * Use locally packaged bokehjs * Use locally installed typescript in gears * Run advanced/extensions/gears (no_js) * Eliminate the need for using bokeh.json * Fail examples' tests if extensions fail to build * Upload npm package artifact in bokehjs-ci * Minor refactoring of compiler's code * Make bokehjs package available in test jobs in CI * Use the same layout for bokehjs' package artifact
- Loading branch information
Showing
35 changed files
with
210 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import {task} from "../task" | ||
|
||
task("build", ["scripts:build", "compiler:build", "examples:build"]) | ||
task("build", ["scripts:build", "compiler:build", "examples:build", "pack"]) | ||
task("build:all", ["build", "test:build"]) | ||
|
||
task("dev", ["lib:build"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import cp from "child_process" | ||
import fs from "fs" | ||
import path from "path" | ||
import {task, BuildError} from "../task" | ||
|
||
function npm_pack() { | ||
const dist = "build/dist" | ||
if (!fs.existsSync(dist)) { | ||
fs.mkdirSync(dist, {recursive: true}) | ||
} | ||
|
||
const npm = process.platform != "win32" ? "npm" : "npm.cmd" | ||
const {status, stdout, stderr} = cp.spawnSync(npm, ["pack", `--pack-destination=${dist}`], {stdio: "pipe", encoding: "utf-8"}) | ||
if (status !== 0) { | ||
console.error(stdout) | ||
console.error(stderr) | ||
throw new BuildError("pack", `failed to run '${npm} pack'`) | ||
} | ||
|
||
const tgz = stdout.trim() | ||
if (!tgz.endsWith(".tgz")) { | ||
throw new BuildError("pack", "can't find tgz archive name in the output") | ||
} | ||
|
||
const tgz_latest = path.join(dist, "bokeh-bokehjs.tgz") | ||
if (fs.existsSync(tgz_latest)) { | ||
fs.unlinkSync(tgz_latest) | ||
} | ||
|
||
fs.symlinkSync(tgz, tgz_latest) | ||
} | ||
|
||
task("pack", async () => { | ||
npm_pack() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.