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 d8f74ce commit 113dc45
Show file tree
Hide file tree
Showing 9 changed files with 32,564 additions and 2,632 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
env:
HUSKY_SKIP_HOOKS: 1
HUSKY: 0
timeout-minutes: 30
strategy:
matrix:
node: [12, 14]
Expand Down
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
6 changes: 3 additions & 3 deletions demo/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { loadPlugin, HTMLClip, AudioPlayback } from "@kissmybutton/motorcortex";
import Player from "@kissmybutton/motorcortex-player";
import { loadPlugin, HTMLClip, AudioPlayback } from "@donkeyclip/motorcortex";
import Player from "@donkeyclip/motorcortex-player";
import LeonPlugin from "../dist/motorcortex-leonsans.umd";

const LeonSans = loadPlugin(LeonPlugin);
Expand Down Expand Up @@ -43,7 +43,7 @@ const clip = new HTMLClip({
containerParams,
audioSources: [
{
src: "https://kissmybutton.github.io/motorcortex-leonsans/demo/d2.mp3",
src: "https://donkeyclip.github.io/motorcortex-leonsans/demo/d2.mp3",
id: "my-wav",
base64: false
}
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",
}
};

0 comments on commit 113dc45

Please sign in to comment.