Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
chore: Fixes GH-pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianKienle committed Apr 26, 2019
1 parent 567a0a9 commit 58ece88
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ const targetsNetlify = process.argv[4] === "--NETLIFY";
const mode =
nodeEnv !== "production" ? "dev" : targetsNetlify ? "netlify" : "prod";
const appPresets = ["@vue/app"];
const prodPresets = [

if(process.env.VUE_CLI_BUILD_TARGET === "app") {
return {
presets: ["@vue/app"]
}
};

const uiPresets = [
[
"@babel/env",
{
Expand All @@ -13,7 +20,7 @@ const prodPresets = [
}
]
];
const presets = mode === "prod" ? prodPresets : appPresets;
const presets = mode === "prod" ? uiPresets : appPresets;
module.exports = {
presets
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build:ui": "vue-cli-service build --target lib --report --name FundamentalVue src/index.js",
"build:ui:dev": "vue-cli-service build --target lib --report --name FundamentalVue src/index.js --mode development",
"build:docs": "NODE_ENV=production; vue-cli-service build src/docs/index.js",
"build:docs:netlify": "yarn bootstrap && yarn build:docs --NETLIFY",
"build:docs:netlify": "yarn build:docs --NETLIFY",
"build": "yarn build:ui",
"lint": "vue-cli-service lint --no-fix --max-warnings 0 --max-errors 0 src",
"lint:dev": "vue-cli-service lint",
Expand All @@ -23,7 +23,7 @@
"std-version": "standard-version -m \"chore(release): version %s build ${TRAVIS_BUILD_NUMBER} [ci skip]\"",
"test": "vue-cli-service test:unit",
"test:watch": "vue-cli-service test:unit --watch",
"deploy:docs": "yarn build:docs && gh-pages -d dist"
"deploy:docs": "yarn build:docs && gh-pages -d dist"
},
"description": "SAP Fiori Fundamentals, implemented in Vue.js",
"keywords": [
Expand Down

0 comments on commit 58ece88

Please sign in to comment.