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 28, 2021
1 parent 3edd42f commit 363451b
Show file tree
Hide file tree
Showing 10 changed files with 37,132 additions and 2,390 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 { loadPlugin, HTMLClip } from "@kissmybutton/motorcortex";
import Player from "@kissmybutton/motorcortex-player";
import { loadPlugin, HTMLClip } from "@donkeyclip/motorcortex";
import Player from "@donkeyclip/motorcortex-player";
import textfxs from "../src/index";

const Clip = loadPlugin(textfxs);
Expand Down
63 changes: 14 additions & 49 deletions demo/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +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"]
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, "./")
},

devtool: "cheap-module-eval-source-map",
mode: "development",

module: {
rules: [
{
Expand All @@ -32,51 +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.NamedModulesPlugin(),
// prints more readable module names in the browser console on HMR updates

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: false,
contentBase: "./demo"
},
node: {
fs: "empty"
}
};
Loading

0 comments on commit 363451b

Please sign in to comment.