diff --git a/client/coral-framework/components/Slot.js b/client/coral-framework/components/Slot.js index 84125e03d..3d1d61328 100644 --- a/client/coral-framework/components/Slot.js +++ b/client/coral-framework/components/Slot.js @@ -1,9 +1,9 @@ -import React, { Component } from "react"; -import { getSlotElements } from "coral-framework/helpers/plugins"; +import React, {Component} from 'react'; +import {getSlotElements} from 'coral-framework/helpers/plugins'; class Slot extends Component { render() { - const { fill, ...rest } = this.props; + const {fill, ...rest} = this.props; return (
{getSlotElements(fill, rest)} diff --git a/client/coral-framework/loaders/plugins-loader.js b/client/coral-framework/loaders/plugins-loader.js index b3aa0b2b9..da304cf76 100644 --- a/client/coral-framework/loaders/plugins-loader.js +++ b/client/coral-framework/loaders/plugins-loader.js @@ -7,10 +7,10 @@ * module.exports = [{plugin: string, module: object}, ...] * */ -const { stripIndent } = require("common-tags"); +const {stripIndent} = require('common-tags'); function getPluginList(config) { - return config.client.map(x => typeof x === "string" ? x : Object.keys(x)[0]); + return config.client.map(x => typeof x === 'string' ? x : Object.keys(x)[0]); } module.exports = function(source) { @@ -18,15 +18,11 @@ module.exports = function(source) { const config = this.exec(source, this.resourcePath); const plugins = getPluginList(config); - plugins.map(plugin => { - list.push( - `{module: require('plugins/${plugin}/client/index.js'), plugin: '${plugin}'}` - ); - }); + plugins.map(plugin => `{module: require('plugins/${plugin}/client/index.js'), plugin: '${plugin}'}`); return stripIndent` module.exports = [ - ${plugins.join(",")} + ${plugins.join(',')} ]; `; }; diff --git a/package.json b/package.json index d11a8ecea..f4e2eb725 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "postinstall": "./bin/cli plugins reconcile --skip-remote", "start": "./bin/cli serve --jobs", "dev-start": "nodemon --config .nodemon.json --exec \"./bin/cli -c .env serve --jobs\"", - "build": "NODE_ENV=production webpack --progress -p --config webpack.config.js --bail", + "build": "NODE_ENV=production webpack -p --config webpack.config.js --bail", "build-watch": "NODE_ENV=development webpack --progress --config webpack.config.js --watch", "lint": "eslint bin/* .", "lint-fix": "eslint bin/* . --fix",