8000 INIT · sidworks-dev/sw-db-sync@620e2fd · GitHub
[go: up one dir, main page]

Skip to content

Commit 620e2fd

Browse files
committed
INIT
0 parents  commit 620e2fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+5906
-0
lines changed

.gitignore

Lines changed: 271 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,271 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### JetBrains template
3+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
4+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
5+
6+
# User-specific stuff
7+
.idea/**/workspace.xml
8+
.idea/**/tasks.xml
9+
.idea/**/usage.statistics.xml
10+
.idea/**/dictionaries
11+
.idea/**/shelf
12+
.idea/*
13+
14+
# Generated files
15+
.idea/**/contentModel.xml
16+
17+
# Sensitive or high-churn files
18+
.idea/**/dataSources/
19+
.idea/**/dataSources.ids
20+
.idea/**/dataSources.local.xml
21+
.idea/**/sqlDataSources.xml
22+
.idea/**/dynamic.xml
23+
.idea/**/uiDesigner.xml
24+
.idea/**/dbnavigator.xml
25+
26+
# Gradle
27+
.idea/**/gradle.xml
28+
.idea/**/libraries
29+
30+
# Gradle and Maven with auto-import
31+
# When using Gradle or Maven with auto-import, you should exclude module files,
32+
# since they will be recreated, and may cause churn. Uncomment if using
33+
# auto-import.
34+
# .idea/artifacts
35+
# .idea/compiler.xml
36+
# .idea/jarRepositories.xml
37+
# .idea/modules.xml
38+
# .idea/*.iml
39+
# .idea/modules
40+
# *.iml
41+
# *.ipr
42+
43+
# CMake
44+
cmake-build-*/
45+
46+
# Mongo Explorer plugin
47+
.idea/**/mongoSettings.xml
48+
49+
# File-based project format
50+
*.iws
51+
52+
# IntelliJ
53+
out/
54+
55+
# mpeltonen/sbt-idea plugin
56+
.idea_modules/
57+
58+
# JIRA plugin
59+
atlassian-ide-plugin.xml
60+
61+
# Cursive Clojure plugin
62+
.idea/replstate.xml
63+
64+
# Crashlytics plugin (for Android Studio and IntelliJ)
65+
com_crashlytics_export_strings.xml
66+
crashlytics.properties
67+
crashlytics-build.properties
68+
fabric.properties
69+
70+
# Editor-based Rest Client
71+
.idea/httpRequests
72+
73+
# Android studio 3.1+ serialized cache file
74+
.idea/caches/build_file_checksums.ser
75+
76+
### Vim template
77+
# Swap
78+
[._]*.s[a-v][a-z]
79+
!*.svg # comment out if you don't need vector files
80+
[._]*.sw[a-p]
81+
[._]s[a-rt-v][a-z]
82+
[._]ss[a-gi-z]
83+
[._]sw[a-p]
84+
85+
# Session
86+
Session.vim
87+
Sessionx.vim
88+
89+
# Temporary
90+
.netrwhist
91+
*~
92+
# Auto-generated tag files
93+
tags
94+
# Persistent undo
95+
[._]*.un~
96+
97+
### macOS template
98+
# General
99+
.DS_Store
100+
.AppleDouble
101+
.LSOverride
102+
103+
# Icon must end with two \r
104+
Icon
105+
106+
# Thumbnails
107+
._*
108+
109+
# Files that might appear in the root of a volume
110+
.DocumentRevisions-V100
111+
.fseventsd
112+
.Spotlight-V100
113+
.TemporaryItems
114+
.Trashes
115+
.VolumeIcon.icns
116+
.com.apple.timemachine.donotpresent
117+
118+
# Directories potentially created on remote AFP share
119+
.AppleDB
120+
.AppleDesktop
121+
Network Trash Folder
122+
Temporary Items
123+
.apdisk
124+
125+
### Windows template
126+
# Windows thumbnail cache files
127+
Thumbs.db
128+
Thumbs.db:encryptable
129+
ehthumbs.db
130+
ehthumbs_vista.db
131+
132+
# Dump file
133+
*.stackdump
134+
135+
# Folder config file
136+
[Dd]esktop.ini
137+
138+
# Recycle Bin used on file shares
139+
$RECYCLE.BIN/
140+
141+
# Windows Installer files
142+
*.cab
143+
*.msi
144+
*.msix
145+
*.msm
146+
*.msp
147+
148+
# Windows shortcuts
149+
*.lnk
150+
151+
### Node template
152+
# Logs
153+
logs
154+
*.log
155+
npm-debug.log*
156+
yarn-debug.log*
157+
yarn-error.log*
158+
lerna-debug.log*
159+
160+
# Diagnostic reports (https://nodejs.org/api/report.html)
161+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
162+
163+
# Runtime data
164+
pids
165+
*.pid
166+
*.seed
167+
*.pid.lock
168+
169+
# Directory for instrumented libs generated by jscoverage/JSCover
170+
lib-cov
171+
172+
# Coverage directory used by tools like istanbul
173+
coverage
174+
*.lcov
175+
176+
# nyc test coverage
177+
.nyc_output
178+
179+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
180+
.grunt
181+
182+
# Bower dependency directory (https://bower.io/)
183+
bower_components
184+
185+
# node-waf configuration
186+
.lock-wscript
187+
188+
# Compiled binary addons (https://nodejs.org/api/addons.html)
189+
build/Release
190+
191+
# Dependency directories
192+
node_modules/
193+
jspm_packages/
194+
195+
# Snowpack dependency directory (https://snowpack.dev/)
196+
web_modules/
197+
198+
# TypeScript cache
199+
*.tsbuildinfo
200+
201+
# Optional npm cache directory
202+
.npm
203+
204+
# Optional eslint cache
205+
.eslintcache
206+
207+
# Microbundle cache
208+
.rpt2_cache/
209+
.rts2_cache_cjs/
210+
.rts2_cache_es/
211+
.rts2_cache_umd/
212+
213+
# Optional REPL history
214+
.node_repl_history
215+
216+
# Output of 'npm pack'
217+
*.tgz
218+
219+
# Yarn Integrity file
220+
.yarn-integrity
221+
222+
# dotenv environment variables file
223+
.env
224+
.env.test
225+
226+
# parcel-bundler cache (https://parceljs.org/)
227+
.cache
228+
.parcel-cache
229+
230+
# Next.js build output
231+
.next
232+
out
233+
234+
# Nuxt.js build / generate output
235+
.nuxt
236+
237+
# Gatsby files
238+
.cache/
239+
# Comment in the public line in if your project uses Gatsby and not Next.js
240+
# https://nextjs.org/blog/next-9-1#public-directory-support
241+
# public
242+
243+
# vuepress build output
244+
.vuepress/dist
245+
246+
# Serverless directories
247+
.serverless/
248+
249+
# FuseBox cache
250+
.fusebox/
251+
252+
# DynamoDB Local files
253+
.dynamodb/
254+
255+
# TernJS port file
256+
.tern-port
257+
258+
# Stores VSCode versions used for testing VSCode extensions
259+
.vscode-test
260+
261+
# yarn v2
262+
.yarn/cache
263+
.yarn/unplugged
264+
.yarn/build-state.yml
265+
.yarn/install-state.gz
266+
.pnp.*
267+
268+
# sample files
269+
config/databases/production.json
270+
config/databases/staging.json
271+
config/settings.json

LICENSE.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
Open Software License ("OSL") v. 3.0
2+
3+
This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
4+
5+
Licensed under the Open Software License version 3.0
6+
7+
1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
8+
9+
1.1. to reproduce the Original Work in copies, either alone or as part of a collective work;
10+
11+
1.2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
12+
13+
1.3. to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Open Software License;
14+
15+
1.4. to perform the Original Work publicly; and
16+
17+
1.5. to display the Original Work publicly.
18+
19+
2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
20+
21+
3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
22+
23+
4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
24+
25+
5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
26+
27+
6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
28+
29+
7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
30+
31+
8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
32+
33+
9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including 'fair use' or 'fair dealing'). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
34+
35+
10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
36+
37+
11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
38+
39+
12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
40+
41+
13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
42+
43+
14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
44+
45+
15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
46+
47+
16. Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Database synchronization tool for Shopware 6

bin/sw-db-sync.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
require('../dist/sw-db-sync.js')

config/databases/production.json.sample

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"databases": {
3+
"username-1-placeholder": {
4+
"username": "example1",
5+
"password": "",
6+
"server": "example1.io",
7+
"domainFolder": "example1.io",
8+
"port": "2222",
9+
"localProjectFolder": "",
10+
"externalProjectFolder": "",
11+
"externalPhpPath": "",
12+
"localProjectUrl": "example1.development",
13+
"wordpress": false
14+
},
15+
"username-2-placeholder": {
16+
"username": "example2",
17+
"password": "",
18+
"server": "example2.io",
19+
"domainFolder": "example2.io",
20+
"port": "2222",
21+
"localProjectFolder": "",
22+
"externalProjectFolder": "",
23+
"externalPhpPath": "",
24+
"localProjectUrl": "example2.development",
25+
"wordpress": false
26+
}
27+
}
28+
}

config/databases/staging.json.sample

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"databases": {
3+
"username-1-placeholder": {
4+
"username": "example1",
5+
"password": "",
6+
"server": "example1.io",
7+
"domainFolder": "example1.io",
8+
"port": "2222",
9+
"localProjectFolder": "",
10+
"externalProjectFolder": "",
11+
"externalPhpPath": "",
12+
"localProjectUrl": "example1.development",
13+
"wordpress": false
14+
},
15+
"username-2-placeholder": {
16+
"username": "example2",
17+
"password": "",
18+
"server": "example2.io",
19+
"domainFolder": "example2.io",
20+
"port": "2222",
21+
"localProjectFolder": "",
22+
"externalProjectFolder": "",
23+
"externalPhpPath": "",
24+
"localProjectUrl": "example2.development",
25+
"wordpress": false
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)
0