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 ff63c47 commit 1685d57
Show file tree
Hide file tree
Showing 17 changed files with 40,306 additions and 12,345 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
28 changes: 14 additions & 14 deletions demo/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import MotorCortex from "@kissmybutton/motorcortex";
import Player from "@kissmybutton/motorcortex-player";
const PromoPlugin = require("../src/");
const Clip = MotorCortex.loadPlugin(PromoPlugin);
import MotorCortex from "@donkeyclip/motorcortex";
import Player from "@donkeyclip/motorcortex-player";
import SlideDefinition from "../dist/motorcortex-slides.umd";
const Clip = MotorCortex.loadPlugin(SlideDefinition);

const css = `
body {
Expand Down Expand Up @@ -70,7 +70,7 @@ const introClip = new Clip.Intro(
deserunt laboriosam, perspiciatis consequatur nostrum.`,
month: "December",
bgUrl:
"https://kissmybutton.github.io/motorcortex-slides/demo/assets/kissmybutonbg.jpg",
"https://donkeyclip.github.io/motorcortex-slides/demo/assets/kissmybutonbg.jpg",
overlayColor: overlay,
mainColor: main,
speed: 2
Expand All @@ -87,11 +87,11 @@ const dayOne = new Clip.SlideDateOneVid(
eveniet eosdsdawdw numquam facilis libero iure natus, voluptatibus
deserunt laboriosam, perspiciatis consequatur nostrum.`,
bgUrl:
"https://kissmybutton.github.io/motorcortex-slides/demo/assets/kissmybutonbg.jpg",
"https://donkeyclip.github.io/motorcortex-slides/demo/assets/kissmybutonbg.jpg",
overlayColor: overlay,
mainColor: main,
bgUrl2:
"https://kissmybutton.github.io/motorcortex-slides/demo/assets/bg2.jpg",
"https://donkeyclip.github.io/motorcortex-slides/demo/assets/bg2.jpg",
month: "December",
day: `monday`,
dayNumber: 20,
Expand All @@ -113,7 +113,7 @@ const scrolPresenter = new Clip.Scrolslide(
name: "name surname",
position: "Web developer at kissmybuton",
bgUrl:
"https://kissmybutton.github.io/motorcortex-slides/demo/assets/bg3.jpg",
"https://donkeyclip.github.io/motorcortex-slides/demo/assets/bg3.jpg",
overlayColor: overlay,
mainColor: main,
speed: 2
Expand All @@ -129,7 +129,7 @@ const ltrPresenter = new Clip.LtRslide(
name: "name surname",
position: "Web developer at kissmybuton",
bgUrl:
"https://kissmybutton.github.io/motorcortex-slides/demo/assets/bg4.jpg",
"https://donkeyclip.github.io/motorcortex-slides/demo/assets/bg4.jpg",
overlayColor: overlay,
mainColor: main,
speed: 2
Expand All @@ -146,12 +146,12 @@ const dayTwo = new Clip.SlideDateTwo(
position: "Web developer at kissmybuton",
bigTitle: "Event",
bgUrl:
"https://kissmybutton.github.io/motorcortex-slides/demo/assets/bg5.jpg",
"https://donkeyclip.github.io/motorcortex-slides/demo/assets/bg5.jpg",
overlayColor: overlay,
dateOverlay: "#ff00b3",
mainColor: "#00ff40",
bgUrl2:
"https://kissmybutton.github.io/motorcortex-slides/demo/assets/bg2.jpg",
"https://donkeyclip.github.io/motorcortex-slides/demo/assets/bg2.jpg",
month: "December",
day: `monday`,
dayNumber: 22,
Expand All @@ -169,7 +169,7 @@ const bttPresenter = new Clip.BtTslide(
name: "name surname",
position: "Web developer at kissmybuton",
bgUrl:
"https://kissmybutton.github.io/motorcortex-slides/demo/assets/bg4.jpg",
"https://donkeyclip.github.io/motorcortex-slides/demo/assets/bg4.jpg",
overlayColor: overlay,
mainColor: main,
speed: 2
Expand All @@ -185,12 +185,12 @@ const bttDay = new Clip.BtTslideDate(
name: "name surname",
position: "Web developer at kissmybuton",
bgUrl:
"https://kissmybutton.github.io/motorcortex-slides/demo/assets/bg3.jpg",
"https://donkeyclip.github.io/motorcortex-slides/demo/assets/bg3.jpg",
overlayColor: overlay,
dateOverlay: "#ff00b3",
mainColor: "#00ff40",
bgUrl2:
"https://kissmybutton.github.io/motorcortex-slides/demo/assets/bg2.jpg",
"https://donkeyclip.github.io/motorcortex-slides/demo/assets/bg2.jpg",
month: "December",
day: `monday`,
dayNumber: 21,
Expand Down
64 changes: 17 additions & 47 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"]
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,49 +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,
contentBase: "./demo",
open: true
},
node: {
fs: "empty",
hot: false,
contentBase: "./demo"
}
};

0 comments on commit 1685d57

Please sign in to comment.