From cf30b839e0305251efe595cc4c776b3e4ddc9d42 Mon Sep 17 00:00:00 2001 From: Jenna Badanowski <29607818+jbadan@users.noreply.github.com> Date: Fri, 22 Mar 2019 03:49:30 -0700 Subject: [PATCH] fix: move postinstall script (#1343) --- netlify.toml | 4 ++-- package.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/netlify.toml b/netlify.toml index 71494232c..721c486f8 100644 --- a/netlify.toml +++ b/netlify.toml @@ -7,9 +7,9 @@ [build] publish = "docs/_site" - command = "npm run postinstall && npm run build-doc" + command = "npm run build-doc" # Production context: All deploys to the main # repository branch will inherit these settings. [context.production] - command = "npm run postinstall && npm run build-doc" + command = "npm run build-doc" diff --git a/package.json b/package.json index a26b7edce..4448f40e0 100644 --- a/package.json +++ b/package.json @@ -4,16 +4,16 @@ "description": "Fiori Fundamentals is a Design System and HTML/CSS Component Library used to build modern Product User Experiences with the SAP look and feel. Learn more about this project at - http://sap.github.io/fundamental/", "main": "index.js", "scripts": { - "build-doc": "npm run postinstall && gulp docs-site && cd docs && bundle install && bundle exec jekyll build --config _config.yml,_config-library.yml && cd ..", + "build-doc": "npm run build:config && gulp docs-site && cd docs && bundle install && bundle exec jekyll build --config _config.yml,_config-library.yml && cd ..", "build": "npx gulp build:dist", + "build:config": "./scripts/create-library-config.js", "deploy": "gh-pages -d docs", "lint:fix": "stylelint './scss/**/*.scss' --fix", "lint:pre-commit": "printf \"running pre-commit lint...\" && npm run lint && printf \"done!\n\"", "lint": "stylelint './scss/**/*.scss'", - "postinstall": "./scripts/create-library-config.js", "release:create": "create-release", "release": "./scripts/publish-release.sh", - "start": "npx gulp default", + "start": "npm run build:config && npx gulp default", "std-version": "standard-version -m \"chore(release): version %s build ${TRAVIS_BUILD_NUMBER} [ci skip]\"", "test": "node test/app.js" },