Skip to content

Commit

Permalink
fix:update npm name
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvl01 committed Sep 27, 2021
1 parent c783b6a commit 3fac404
Show file tree
Hide file tree
Showing 10 changed files with 5,551 additions and 3,909 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
4 changes: 2 additions & 2 deletions demo/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Player from "@kissmybutton/motorcortex-player";
import { HTMLClip, loadPlugin } from "@kissmybutton/motorcortex/";
import Player from "@donkeyclip/motorcortex-player";
import { HTMLClip, loadPlugin } from "@donkeyclip/motorcortex/";
import TVPluginDef from "../dist/motorcortex-tv.umd";
const TVPlugin = loadPlugin(TVPluginDef);

Expand Down
63 changes: 15 additions & 48 deletions demo/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
const path = require("path");
const webpack = require("webpack");

module.exports = {
context: path.resolve(__dirname),

entry: "./index.js",

entry: "./demo/index.js",
resolve: {
extensions: [".js"],
modules: [path.resolve("./"), "node_modules"],
fallback: {
fs: false,
path: require.resolve("path-browserify"),
},
},
output: {
filename: "bundle.js",
// the output bundle

path: path.resolve(__dirname, "./" /*"./dist"*/),
path: path.resolve(__dirname, "./"),
},

mode: "development",
module: {
rules: [
{
Expand All @@ -29,52 +27,21 @@ module.exports = {
use: ["style-loader", "css-loader"],
},
{
test: /\.scss$/,
use: [
{
loader: "style-loader",
options: { sourceMap: true }, // creates style nodes from JS strings
},
{
loader: "css-loader",
options: { sourceMap: true }, // translates CSS into CommonJS
},
{
loader: "sass-loader",
options: { sourceMap: true }, // compiles Sass to CSS
},
],
test: /\.svg$/,
loader: "svg-inline-loader",
},
{
test: /\.html$/i,
loader: "html-loader",
},
],
},

plugins: [
new webpack.ProvidePlugin({
Promise: "es6-promise",
fetch:
"imports-loader?this=>global!exports-loader?global.fetch!whatwg-fetch",
}),

new webpack.HotModuleReplacementPlugin(),
// enable HMR globally

new webpack.NoEmitOnErrorsPlugin(),
// do not emit compiled assets that include errors
],

devServer: {
// watchContentBase: true, // initiate a page refresh if static content changes
watchContentBase: true,
host: "0.0.0.0",
port: 8080,
historyApiFallback: false,
hot: true,
hot: false,
contentBase: "./demo",
},
node: {
fs: "empty",
},

optimization: {
minimize: false,
},
};

0 comments on commit 3fac404

Please sign in to comment.