Commit 8def60dd authored by André Anjos's avatar André Anjos

[conda] Fixes script and js location

parent cbe64e53
Pipeline #27448 canceled with stages
in 18 minutes and 14 seconds
......@@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"start": "cross-env NODE_ENV=debug webpack-dev-server --hot",
"prebuild": "rimraf ../editor/js",
"prebuild": "rimraf ../editor",
"build": "cross-env NODE_ENV=production webpack",
"test-start": "cross-env BABEL_ENV=test NODE_ENV=test karma start --no-single-run",
"test": "cross-env BABEL_ENV=test NODE_ENV=test karma start",
......
......@@ -5,7 +5,7 @@ const VisualizerPlugin = require('webpack-visualizer-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin')
const dist = resolve(__dirname, '../editor/js');
const dist = resolve(__dirname, '../editor');
const isExternal = (module) => module.context && module.context.indexOf('node_modules') === -1;
......
......@@ -4,14 +4,14 @@
'''Ensures the editor JS code is available during tests'''
import os
import sys
import pkg_resources
import beat.editor
# destination "linked" directory
dest = os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), 'editor')
if os.path.exists(dest):
os.unlink(dest)
import pkg_resources
import beat.editor
src = pkg_resources.resource_filename(beat.editor.__name__, '')
src = pkg_resources.resource_filename(beat.editor.__name__, 'js')
os.symlink(src, dest)
print('%s -> %s' % (src, dest))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment