forked from jupyterlab/jupyterlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish packaging updates wip refactor packaging, core, and dev modes wip packaging updates reorg wip packaging setup wip packaging cleanup Move mock packages out of jupyterlab dir Always use yarn for developers wip update dev and core mode clean up commands and extension cleanup update docs Update .yarnrc update ci scripts Update ensure repo fix integrity check Update gitignore Switch back to jlpm wip Update scripts cleanup cleanup cleanup cleanup no need for egg-info hack anymore clean up handling of mock packages update selenium check Refactor travis Cleanup reorder matrix Fix handling of link and unlinking extensions Fix handling of postcss Cache the miniconda dir fix travis yml syntax fix travis yml syntax Update group names fix miniconda handling Update docs Fix handling of miniconda path reorder path tweak karma settings cleanup Remove manifest in favor of package_data fix path addition more setup cleanup Add staging data to package data Make sure our data_files work add comment use glob2 to get proper files defer using glob2 cleanup Inline handling of ** globs Add a node_modules blocker use fresh environments on every build fix removal of conda envs use env create for requirements file ensure selenium is installed Fix jupyterlab#3231 front load the longer job Fix jupyterlab#3227 Uniform handling of error messages for extension commands Let process errors propagate Fix #jupyterlab#3264 Fix validation and add tests Fix property name fix handling of app_dir Remove pdb from py.test so builds don't time out Use npm to run scripts in the re-usable build utils Clean up build:update Fix glob handling Use declarative specs for data files and package files Add detection of extension module shadowing Fix package_data_spec Add workaround for git clean behavior on windows remove debug statement Clean up setupbase Address comments Remove outdated file check glob handling cleanup Incorporate jupyter-packaging #20 clean up setup.py Make sure build:src works Reinstate build:src Fix spelling wip add test manager fix pip install . Clean up selenium check implementation and temp usage Invert requirements clean up handling of launcher versions in script fix version spec
- Loading branch information
Showing
48 changed files
with
1,397 additions
and
758 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
yarn-path "./jupyterlab/yarn.js" | ||
yarn-path "./jupyterlab/staging/yarn.js" | ||
workspaces-experimental true | ||
registry "https://registry.npmjs.org" |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/*----------------------------------------------------------------------------- | ||
| Copyright (c) Jupyter Development Team. | ||
| Distributed under the terms of the Modified BSD License. | ||
|----------------------------------------------------------------------------*/ | ||
|
||
import * as fs from 'fs-extra'; | ||
import * as path from 'path'; | ||
import * as utils from './utils'; | ||
|
||
// Get the dev mode package.json file. | ||
let data = utils.readJSONFile('./dev_mode/package.json'); | ||
|
||
// Update the values that need to change and write to staging. | ||
data['scripts']['build'] = 'webpack'; | ||
data['scripts']['watch'] = 'webpack --watch'; | ||
data['scripts']['build:prod'] = "webpack --define process.env.NODE_ENV=\"'production'\""; | ||
data['jupyterlab']['outputDir'] = '..'; | ||
data['jupyterlab']['staticDir'] = '../static'; | ||
data['jupyterlab']['linkedPackages'] = {}; | ||
|
||
let staging = './jupyterlab/staging'; | ||
utils.writePackageData(path.join(staging, 'package.json'), data); | ||
|
||
// Update our index file and webpack file. | ||
fs.copySync('./dev_mode/index.js', './jupyterlab/staging/index.js'); | ||
fs.copySync('./dev_mode/webpack.config.js', | ||
'./jupyterlab/staging/webpack.config.js'); | ||
|
||
|
||
// Update the jlpm.lock file. | ||
utils.run('jlpm', { cwd: staging }); | ||
|
||
|
||
// Build the core assets. | ||
utils.run('jlpm run build:prod', { cwd: staging }); |
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,16 @@ | ||
import os | ||
import subprocess | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
|
||
# Workaround for https://github.com/git-for-windows/git/issues/607 | ||
if os.name == 'nt': | ||
for (root, dnames, files) in os.walk(here): | ||
if 'node_modules' in dnames: | ||
subprocess.check_call(['rmdir', '/s', '/q', 'node_modules'], | ||
cwd=root, shell=True) | ||
dnames.remove('node_modules') | ||
|
||
|
||
subprocess.check_call(['git', 'clean', '-dfx'], cwd=here) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.