Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
var path = require('path');
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;
buildExtension({
name: 'jupyterlab_widgets',
entry: './lib/plugin',
outputDir : './jupyterlab_widgets/static'
});
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;
buildExtension({
name: 'jupyterlab_geojson',
entry: './lib/plugin.js',
outputDir: './jupyterlab_geojson/static'
});
// Copyright (c) Han Lee.
// Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
var version = require('./package.json').version;
var loaders = [
{ test: /\.css$/, loader: "style-loader!css-loader" },
{ test: /\.json$/, loader: 'json-loader' },
{ test: /\.js$/, loader: 'babel-loader?presets[]=es2015' }
];
var buildExtension = require('@jupyterlab/extension-builder/lib/builder').buildExtension;
buildExtension({
name: 'ipytracer',
entry: './src/labplugin',
outputDir: '../ipytracer/staticlab',
useDefaultLoaders: false,
extractCSS: false,
config: {
module: {
loaders: loaders
}
}
});
module.exports = [
{// Notebook extension
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
var ModuleLoader = require('@jupyterlab/extension-builder/lib/loader').ModuleLoader;
var loader = new ModuleLoader();
module.exports = {
define: loader.define.bind(loader),
require: loader.require.bind(loader),
requireBundle: loader.ensureBundle.bind(loader)
}
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;
var path = require('path');
buildExtension({
name: 'jupyterlab_json',
entry: path.join(__dirname, 'src', 'plugin.js'),
outputDir: path.join(
__dirname,
'..',
'jupyterlab_json',
'static'
),
useDefaultLoaders: false,
config: {
module: {
loaders: [
{ test: /\.html$/, loader: 'file-loader' },
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;
var path = require('path');
buildExtension({
name: 'jupyterlab_vega',
entry: path.join(__dirname, 'src', 'plugin.js'),
outputDir: path.join(
__dirname,
'..',
'jupyterlab_vega',
'static'
),
useDefaultLoaders: false,
config: {
module: {
loaders: [
{ test: /\.html$/, loader: 'file-loader' },
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;
var path = require('path');
buildExtension({
name: 'jupyterlab_plotly',
entry: path.join(__dirname, 'src', 'plugin.js'),
outputDir: path.join(__dirname, '..', 'jupyterlab_plotly', 'static'),
useDefaultLoaders: false,
config: {
module: {
loaders: [
{ test: /\.html$/, loader: 'file-loader' },
{ test: /\.(jpg|png|gif)$/, loader: 'file-loader' },
{
test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/,
loader: 'url-loader?limit=10000&mimetype=application/font-woff'
},
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;
var path = require('path');
buildExtension({
name: 'jupyterlab_geojson',
entry: path.join(__dirname, 'src', 'plugin.js'),
outputDir: path.join(
__dirname,
'..',
'jupyterlab_geojson',
'static'
),
useDefaultLoaders: false,
config: {
module: {
loaders: [
{ test: /\.html$/, loader: 'file-loader' },
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;
buildExtension({
name: '{{ cookiecutter.extension_name }}',
entry: './lib/plugin.js',
outputDir: './{{ cookiecutter.extension_name }}/static'
});
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;
var path = require('path');
buildExtension({
name: 'jupyterlab_table',
entry: path.join(__dirname, 'src', 'plugin.js'),
outputDir: path.join(
__dirname,
'..',
'jupyterlab_table',
'static'
),
useDefaultLoaders: false,
config: {
module: {
loaders: [
{ test: /\.html$/, loader: 'file-loader' },