Skip to content

Commit

Permalink
rename dir partial to partials (#1534)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip authored Feb 17, 2020
1 parent 56b485e commit b5f18ca
Show file tree
Hide file tree
Showing 37 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions packages/xarc-app-dev/config/webpack/util/generate-config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"use strict";

/* eslint-disable no-unused-expressions */

const xsh = require("xsh");
const partialConfigs = require("../partial");
const partialConfigs = require("../partials");
const WebpackConfigComposer = require("webpack-config-composer");
const optionalRequire = require("optional-require")(require);
const Path = require("path");
Expand Down Expand Up @@ -65,9 +67,10 @@ function initWebpackConfigComposer(options) {
if (!options.composer) {
const composer = (options.composer = new WebpackConfigComposer());

composer.addProfiles(options.profiles);
options.profiles && composer.addProfiles(options.profiles);
composer.addProfile("user", {});
composer.addPartials(partialConfigs.partials);
options.partials && composer.addPartials(options.partials);
}

return options;
Expand Down
2 changes: 1 addition & 1 deletion packages/xarc-app-dev/test/spec/extract.style.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require("chai").expect;
const archetype = require("@xarc/app/config/archetype");
const moduleName = "../../config/webpack/partial/extract-style";
const moduleName = "../../config/webpack/partials/extract-style";

describe("@xarc/app-dev extract-styles", function() {
this.timeout(10000);
Expand Down

0 comments on commit b5f18ca

Please sign in to comment.