From 3d85e76f811b49a43e1c0f4a6d4dc40c9e2bd4ad Mon Sep 17 00:00:00 2001 From: feerglas Date: Sun, 5 Apr 2020 10:39:54 +0200 Subject: [PATCH] fix: remove build folder, build in dist folder --- .gitignore | 2 +- .releaserc | 4 +--- .travis.yml | 2 +- config.json | 10 +++++----- package.json | 1 + 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 43c09279..810cd7b1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -build/ +dist/ *~ *.sw[mnpcod] diff --git a/.releaserc b/.releaserc index fbcc2387..d22e5561 100644 --- a/.releaserc +++ b/.releaserc @@ -6,9 +6,7 @@ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", "@semantic-release/changelog", - ["@semantic-release/npm", { - "pkgRoot": "build" - }], + "@semantic-release/npm", ["@semantic-release/git", { "assets": [ "package.json", diff --git a/.travis.yml b/.travis.yml index 0e7ab91d..1e6269b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ jobs: script: # build style dictionaries - - ./node_modules/style-dictionary/bin/style-dictionary build + - npm run build after_success: # run semantic release diff --git a/config.json b/config.json index 7376e16e..47a7a593 100644 --- a/config.json +++ b/config.json @@ -3,7 +3,7 @@ "platforms": { "scss": { "transformGroup": "scss", - "buildPath": "build/scss/", + "buildPath": "dist/scss/", "files": [{ "destination": "_variables.scss", "format": "scss/variables" @@ -11,7 +11,7 @@ }, "android": { "transformGroup": "android", - "buildPath": "build/android/", + "buildPath": "dist/android/", "files": [{ "destination": "font_dimens.xml", "format": "android/fontDimens" @@ -22,7 +22,7 @@ }, "ios": { "transformGroup": "ios", - "buildPath": "build/ios/", + "buildPath": "dist/ios/", "files": [{ "destination": "StyleDictionaryColor.h", "format": "ios/colors.h", @@ -67,7 +67,7 @@ }, "ios-swift": { "transformGroup": "ios-swift", - "buildPath": "build/ios-swift/", + "buildPath": "dist/ios-swift/", "files": [{ "destination": "StyleDictionary.swift", "format": "ios-swift/class.swift", @@ -77,7 +77,7 @@ }, "ios-swift-separate-enums": { "transformGroup": "ios-swift-separate", - "buildPath": "build/ios-swift/", + "buildPath": "dist/ios-swift/", "files": [{ "destination": "StyleDictionaryColor.swift", "format": "ios-swift/enum.swift", diff --git a/package.json b/package.json index 8007991f..8349c5ec 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "build/" ], "scripts": { + "build": "./node_modules/style-dictionary/bin/style-dictionary build", "semantic-release": "semantic-release" }, "repository": {