Skip to content

Commit

Permalink
Merge pull request #9 from jvmn/feature/2.1.0-rc
Browse files Browse the repository at this point in the history
Feature/2.1.0 rc
  • Loading branch information
xeyefex authored Jan 18, 2021
2 parents 32b6a42 + 297739b commit a3ab3c0
Show file tree
Hide file tree
Showing 6 changed files with 462 additions and 293 deletions.
8 changes: 4 additions & 4 deletions lib/fractal-export.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ try {
if (item.hasTag('module')) {
const type = 'modules'
modules.push('1')
mkdirp(`${fractal.get('project.release')}/render/${type}/`, function () {
mkdirp(`${fractal.get('project.release')}/render/${type}/`).then(() => {
for (let variant of item.variants()) {
modulesVars.push('1')
let filename = variant.handle.replace(/--default$/, '')
Expand All @@ -39,7 +39,7 @@ try {
} else if (item.hasTag('object')) {
const type = 'objects'
objects.push('1')
mkdirp(`${fractal.get('project.release')}/render/${type}/`, function () {
mkdirp(`${fractal.get('project.release')}/render/${type}/`).then(() => {
for (let variant of item.variants()) {
objectsVars.push('1')
let filename = variant.handle.replace(/--default$/, '')
Expand All @@ -56,7 +56,7 @@ try {
} else if (item.hasTag('component')) {
const type = 'components'
components.push('1')
mkdirp(`${fractal.get('project.release')}/render/${type}/`, function () {
mkdirp(`${fractal.get('project.release')}/render/${type}/`).then(() => {
for (let variant of item.variants()) {
componentsVars.push('1')
let filename = variant.handle.replace(/--default$/, '')
Expand All @@ -73,7 +73,7 @@ try {
} else if (item.hasTag('page')) {
const type = 'pages'
pages.push('1')
mkdirp(`${fractal.get('project.release')}/render/${type}/`, function () {
mkdirp(`${fractal.get('project.release')}/render/${type}/`).then(() => {
for (let variant of item.variants()) {
let filename = variant.handle.replace(/--default$/, '')
variant.render(item.config.context).then(function (html) {
Expand Down
Loading

0 comments on commit a3ab3c0

Please sign in to comment.