-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
245 changed files
with
758 additions
and
19,767 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es6", | ||
"strict": false, | ||
"allowJs": true, | ||
"importHelpers": true, | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true, | ||
"esModuleInterop": true, | ||
"resolveJsonModule": false, | ||
"outDir": "dist", | ||
"sourceMap": true, | ||
"baseUrl": ".", | ||
"lib": ["es7", "dom"] | ||
}, | ||
"include": [ | ||
"src/**/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,18 @@ | ||
{ | ||
"server": { | ||
"dynamicConfigReload": true, | ||
"dynamicConfigContinueOnError": true | ||
"api": { | ||
"url": "http://demo.vuestorefront.io" | ||
}, | ||
"elasticsearch": { | ||
"httpAuth": "", | ||
"host": "storefront-api:8080/api/catalog", | ||
"index": "vue_storefront_catalog" | ||
"graphql":{ | ||
"host": "storefront-api", | ||
"port": 8080 | ||
}, | ||
"theme": "@vue-storefront/theme-default", | ||
"storyblok": { | ||
"endpoint": "http://storefront-api:8080/api/ext/vsf-storyblok-extension", | ||
"settings": { | ||
"addRoutes": true | ||
} | ||
}, | ||
"cart": { | ||
"synchronize": true, | ||
"create_endpoint": "http://storefront-api:8080/api/cart/create?token={{token}}", | ||
"updateitem_endpoint": "http://storefront-api:8080/api/cart/update?token={{token}}&cartId={{cartId}}", | ||
"deleteitem_endpoint": "http://storefront-api:8080/api/cart/delete?token={{token}}&cartId={{cartId}}", | ||
"pull_endpoint": "http://storefront-api:8080/api/cart/pull?token={{token}}&cartId={{cartId}}" | ||
}, | ||
"orders": { | ||
"endpoint": "http://storefront-api:8080/api/order" | ||
}, | ||
"users": { | ||
"endpoint": "http://storefront-api:8080/api/user" | ||
}, | ||
"stock": { | ||
"endpoint": "http://storefront-api:8080/api/stock" | ||
}, | ||
"images": { | ||
"baseUrl": "https://demo.vuestorefront.io/img/" | ||
}, | ||
"install": { | ||
"is_local_backend": false, | ||
"backend_dir": "../vue-storefront-api" | ||
}, | ||
"demomode": false, | ||
"tax": { | ||
"defaultCountry": "PL", | ||
"defaultRegion": "", | ||
"calculateServerSide": false | ||
}, | ||
"i18n": { | ||
"defaultCountry": "US", | ||
"defaultLanguage": "EN" | ||
"is_local_backend": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "esnext", | ||
"strict": false, | ||
"allowJs": true, | ||
"importHelpers": true, | ||
"moduleResolution": "node", | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true, | ||
"esModuleInterop": true, | ||
"resolveJsonModule": false, | ||
"sourceMap": true, | ||
"baseUrl": ".", | ||
"types": [ | ||
"reflect-metadata", | ||
"node", | ||
"jest" | ||
], | ||
"paths": { | ||
"core/*": ["core/*"], | ||
"theme/*": ["src/themes/default/*"], //needs testing with non-default theme! | ||
"core/modules/*": ["./core/modules/*"], | ||
"@vue-storefront/*": ["./"] | ||
}, | ||
"lib": ["es2017", "dom", "es2018.promise"] | ||
}, | ||
"files": ["shims.d.ts"], | ||
"include": [ | ||
"src/**/*.ts", | ||
"src/**/*.vue", | ||
"core/**/*.ts", | ||
"core/**/*.vue", | ||
"test/**/*.ts", | ||
"module/**/*.ts", | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"**/*.spec.ts" | ||
] | ||
} |
Submodule vsf-mapping-fallback
added at
6418c4
Submodule vue-storefront
updated
from 606c6e to 1fd1cf
Submodule vue-storefront-api
updated
from 60a83b to d7b6fe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
# Matches multiple files with brace expansion notation | ||
# Set default charset | ||
[*.{js,ts,json,vue,yml}] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
vue-storefront | ||
vue-storefront-api | ||
.docker/vue-storefront | ||
.docker/vue-storefront-api | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Tests | ||
on: [push] | ||
jobs: | ||
tests: | ||
name: 'Main' | ||
runs-on: ubuntu-16.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10 | ||
- run: yarn install | ||
- name: Run linters | ||
uses: samuelmeuli/lint-action@v1 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
# Enable linters | ||
eslint: true | ||
eslint_extensions: js,vue,ts | ||
- uses: zhulik/[email protected] | ||
- uses: nyaruka/elasticsearch-action@v1 | ||
with: | ||
elastic version: '5.6.11' | ||
- name: Start server | ||
run: make submodules bundle start | ||
- name: Run e2e tests | ||
uses: cypress-io/github-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
vue-storefront | ||
vue-storefront-api |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
submodules: | ||
git submodule update --init | ||
|
||
bundle: | ||
mkdir -p .docker/vue-storefront/var | ||
yarn docker-compose-bundler | ||
sed -i.bak 's/storefront-api/localhost/' .output/vue-storefront/config/local.json | ||
|
||
build-api: | ||
cd .output/vue-storefront-api && yarn && yarn build | ||
|
||
start-api: | ||
cd .output/vue-storefront-api && yarn start | ||
|
||
build-ui: | ||
cd .output/vue-storefront && yarn && yarn build | ||
|
||
start-ui: | ||
cd .output/vue-storefront && yarn start | ||
|
||
start: build-api start-api build-ui start-ui | ||
|
||
submodules: | ||
git submodule update --init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
version: '2.4' | ||
services: | ||
|
||
services: | ||
storefront-api: | ||
depends_on: | ||
elasticsearch: | ||
condition: service_healthy | ||
redis: | ||
condition: service_healthy | ||
depends_on: | ||
- elasticsearch | ||
- redis | ||
labels: | ||
bundle: "vue-storefront-api" | ||
storefront-ui: | ||
depends_on: | ||
storefront-api: | ||
condition: service_healthy | ||
labels: | ||
bundle: "vue-storefront" | ||
|
||
volumes: | ||
esdat1: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.