Skip to content

Commit

Permalink
fix: remove build folder, build in dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
feerglas committed Apr 5, 2020
1 parent a70c433 commit 3d85e76
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build/
dist/

*~
*.sw[mnpcod]
Expand Down
4 changes: 1 addition & 3 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"platforms": {
"scss": {
"transformGroup": "scss",
"buildPath": "build/scss/",
"buildPath": "dist/scss/",
"files": [{
"destination": "_variables.scss",
"format": "scss/variables"
}]
},
"android": {
"transformGroup": "android",
"buildPath": "build/android/",
"buildPath": "dist/android/",
"files": [{
"destination": "font_dimens.xml",
"format": "android/fontDimens"
Expand All @@ -22,7 +22,7 @@
},
"ios": {
"transformGroup": "ios",
"buildPath": "build/ios/",
"buildPath": "dist/ios/",
"files": [{
"destination": "StyleDictionaryColor.h",
"format": "ios/colors.h",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"build/"
],
"scripts": {
"build": "./node_modules/style-dictionary/bin/style-dictionary build",
"semantic-release": "semantic-release"
},
"repository": {
Expand Down

0 comments on commit 3d85e76

Please sign in to comment.