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 2c6dd96 commit b330bdc
Show file tree
Hide file tree
Showing 19 changed files with 39,737 additions and 5,175 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
52 changes: 25 additions & 27 deletions demo/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HTMLClip, loadPlugin } from "@kissmybutton/motorcortex";
import Player from "@kissmybutton/motorcortex-player";
import { HTMLClip, loadPlugin } from "@donkeyclip/motorcortex";
import Player from "@donkeyclip/motorcortex-player";
import presenter from "../dist/motorcortex-presenter.umd.js";

const Clip = loadPlugin(presenter);
Expand Down Expand Up @@ -36,17 +36,17 @@ const introClip = new Clip.Intro(
width: 1270,
height: 720,
clientLogo:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/img.svg",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/img.svg",
clientLogoWidth: 500,
compLogo:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/logo.png",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/logo.png",
compLogoWidth: 150,
title: "RMIS / University of Zurich",
date: "2019 - Today",
bgUrl:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/bg.jpg",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/bg.jpg",
overlayColor: overlay,
fontColor: "#fff",
fontColor: "#fff"
},
{
selector: ".container6"
Expand All @@ -58,10 +58,10 @@ const SlideOneSVG = new Clip.SlideOneSVG(
width: 1270,
height: 720,
clientLogo:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/img.svg",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/img.svg",
clientLogoWidth: 150,
compLogo:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/logo.png",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/logo.png",
title: "RMIS / University of Zurich",
textOne: "generic",
textTwo: "module-based",
Expand All @@ -72,7 +72,7 @@ const SlideOneSVG = new Clip.SlideOneSVG(
contentColor: "#c10000",
contentTitle: "Scope",
app:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/app.png"
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/app.png"
},
{
selector: ".container5"
Expand All @@ -84,10 +84,10 @@ const SlideTwoSVG = new Clip.SlideTwoSVG(
width: 1270,
height: 720,
clientLogo:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/img.svg",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/img.svg",
clientLogoWidth: 150,
compLogo:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/logo.png",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/logo.png",

title: "RMIS / University of Zurich",
textOne:
Expand All @@ -99,7 +99,7 @@ const SlideTwoSVG = new Clip.SlideTwoSVG(
contentTitle: "Scope",
fonSize: 40,
app:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/app.png"
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/app.png"
},
{
selector: ".container4"
Expand All @@ -111,10 +111,10 @@ const SlideThreeSVG = new Clip.SlideThreeSVG(
width: 1270,
height: 720,
clientLogo:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/img.svg",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/img.svg",
clientLogoWidth: 150,
compLogo:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/logo.png",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/logo.png",

title: "RMIS / University of Zurich",
textOne:
Expand All @@ -126,7 +126,7 @@ const SlideThreeSVG = new Clip.SlideThreeSVG(
contentTitle: "Scope",
fonSize: 40,
app:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/app.png"
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/app.png"
},
{
selector: ".container3"
Expand All @@ -138,17 +138,17 @@ const TechnologiesSVG = new Clip.TechnologiesSVG(
width: 1270,
height: 720,
clientLogo:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/img.svg",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/img.svg",
clientLogoWidth: 150,
compLogo:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/logo.png",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/logo.png",
title: "RMIS / University of Zurich",
logos: [
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/1.png",
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/2.png",
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/3.png",
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/4.png",
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/5.png"
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/1.png",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/2.png",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/3.png",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/4.png",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/5.png"
],
bgColor: "#000c8f",
overlayColor: overlay,
Expand All @@ -168,13 +168,13 @@ const HighlightsSVG = new Clip.HighlightsSVG(
width: 1270,
height: 720,
clientLogo:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/img.svg",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/img.svg",
clientLogoWidth: 150,
compLogo:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/logo.png",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/logo.png",
title: "RMIS / University of Zurich",
app:
"https://kissmybutton.github.io/motorcortex-presenter/demo/assets/appLong.png",
"https://donkeyclip.github.io/motorcortex-presenter/demo/assets/appLong.png",
bgColor: "#000c8f",
overlayColor: overlay,
fontColor: "#fff",
Expand All @@ -196,6 +196,4 @@ clip.addIncident(SlideThreeSVG, 15000);
clip.addIncident(TechnologiesSVG, 21000);
clip.addIncident(HighlightsSVG, 27000);



new Player({ clip });
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 b330bdc

Please sign in to comment.