Skip to content

Commit 592e869

Browse files
authored
Merge pull request #4 from GetAutomaApp/2-add-dotfiles
ISSUE-2 - Add dotfiles
2 parents db63b07 + c35d60c commit 592e869

File tree

7 files changed

+33
-29
lines changed

7 files changed

+33
-29
lines changed

.dotfiles

Submodule .dotfiles added at 9793426

.github/workflows/lint-codebase.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
pull_request:
55
paths:
66
- '**.swift'
7-
push:
8-
paths:
9-
- '**.swift'
107

118
jobs:
129
swiftlint:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/*.xcodeproj
55
xcuserdata/
66
.vscode/
7+
.swiftlint.yml

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule ".dotfiles"]
2+
path = .dotfiles
3+
url = https://github.com/GetAutomaApp/dotfiles

.swiftlint.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.swiftlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./.dotfiles/.swiftlint.yml

Package.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ let package = Package(
1313
],
1414
dependencies: [],
1515
targets: [
16-
.target(
17-
name: "SimpleToast",
18-
dependencies: []),
16+
.target(name: "SimpleToast",dependencies: []),
1917
.testTarget(
2018
name: "SimpleToastTests",
2119
dependencies: ["SimpleToast"]),

package.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "simpletoast",
3+
"version": "1.0.0",
4+
"description": "SimpleToast is a simple, lightweight, flexible and easy to use library to show toasts / popup notifications inside iOS or MacOS applications in SwiftUI. Because of the flexibility to show any content it is also possible to use the library for showing simple modals.",
5+
"main": "index.js",
6+
"scripts": {
7+
"config": "./.dotfiles/config.sh",
8+
"install:swiftlint": "brew install swiftlint",
9+
"install:swiftformat": "brew install swiftformat",
10+
"install:all": "npx npm-run-all --sequential install:swiftlint install:swiftformat config",
11+
"format": "swiftformat .",
12+
"lint": "swiftlint --config=.swiftlint.yml .",
13+
"update:submmdules": "git submodule foreach --recursive 'branch=$(git remote show origin | awk \"/HEAD branch/ {print \\$NF}\"); git checkout $branch && git pull origin $branch' && CHANGED=$(git status --porcelain | grep '^ M \\.dotfiles' || true) && if [ -n \"$CHANGED\" ]; then npm run config; fi && git add -A && git commit -m \"chore: update submodules\" || echo 'No changes to commit'"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "git+https://github.com/GetAutomaApp/SimpleToast.git"
18+
},
19+
"keywords": [],
20+
"author": "",
21+
"license": "ISC",
22+
"bugs": {
23+
"url": "https://github.com/GetAutomaApp/SimpleToast/issues"
24+
},
25+
"homepage": "https://github.com/GetAutomaApp/SimpleToast#readme"
26+
}

0 commit comments

Comments
 (0)