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'
});
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' },
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;
buildExtension({
name: 'jupyterlab_json',
entry: './lib/plugin.js',
outputDir: '../jupyterlab_json/static'
});