Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.. #2121

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open

.. #2121

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
16fb15c
Create automatic_deployment_production.yml
rnxrenuxs Aug 23, 2021
434b07a
Add files via upload
rnxrenuxs Aug 23, 2021
ffbc04d
Update details.html
rnxrenuxs Aug 23, 2021
f31dde1
Update details.html
rnxrenuxs Aug 23, 2021
a2b8c44
Update optimized-checkout.scss
rnxrenuxs Aug 23, 2021
12ac345
Merge branch 'bigcommerce:master' into main
rnxrenuxs Sep 4, 2021
c478c84
Update create-account.html
rnxrenuxs Sep 4, 2021
f010906
Update account.js
rnxrenuxs Sep 4, 2021
1c34c37
Update create-account.html
rnxrenuxs Sep 4, 2021
3be6680
Update create-account.html
rnxrenuxs Sep 4, 2021
06af43a
Update create-account.html
rnxrenuxs Sep 4, 2021
120e521
Update account.js
rnxrenuxs Sep 5, 2021
b482705
Update account.js
rnxrenuxs Sep 5, 2021
adf68bc
Update auth.js
rnxrenuxs Sep 5, 2021
544e683
Update create-account.html
rnxrenuxs Sep 10, 2021
388e1b8
Update create-account.html
rnxrenuxs Sep 10, 2021
a44d6f2
Update config.json
rnxrenuxs Sep 10, 2021
27d765a
Update create-account.html
rnxrenuxs Sep 10, 2021
6ef8db8
Update create-account.html
rnxrenuxs Sep 10, 2021
c75ffd7
Update navigation.html
rnxrenuxs Sep 10, 2021
c531e4b
Update polyfills.js
rnxrenuxs Sep 10, 2021
820b6de
Update create-account.html
rnxrenuxs Sep 10, 2021
0128627
Update account.js
rnxrenuxs Sep 10, 2021
e75df27
Update auth.js
rnxrenuxs Sep 10, 2021
5754358
.
rnxrenuxs Sep 19, 2021
91057a3
.
rnxrenuxs Sep 19, 2021
0db9612
.
rnxrenuxs Sep 19, 2021
1dca327
Delete tasks.json
rnxrenuxs Sep 19, 2021
3371452
Merge branch 'main' of https://github.com/rnxrenuxs/cornerstone
rnxrenuxs Sep 21, 2021
618d414
.
rnxrenuxs Sep 25, 2021
99b62dc
.
rnxrenuxs Sep 25, 2021
449e4d8
.
rnxrenuxs Sep 25, 2021
ac4804a
.
rnxrenuxs Sep 25, 2021
413522f
Delete launch.json
rnxrenuxs Sep 27, 2021
6c58b81
Delete settings.json
rnxrenuxs Sep 27, 2021
55fd0e9
Delete tasks.json
rnxrenuxs Sep 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/assets/js/bundle.js
/assets/dist
stencil.conf.js
webpack.conf.js
/assets/js/bundle.js
/assets/dist
stencil.conf.js
webpack.conf.js
76 changes: 38 additions & 38 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"parser": "babel-eslint",
"rules": {
"indent": [
2,
4
],
"no-alert": 0,
"consistent-return": 0,
"max-len": 0,
"import/first": 0,
"no-mixed-operators": 0,
"class-methods-use-this": 0,
"no-template-curly-in-string": 0,
"no-underscore-dangle": 0,
"prefer-spread": 0,
"no-plusplus": 0,
"no-restricted-syntax": 0,
"no-prototype-builtins": 0,
"no-useless-escape": 0,
"global-require": 0,
"newline-per-chained-call": 0,
"arrow-parens": 0,
"prefer-destructuring": 0,
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0,
"import/prefer-default-export": "off"
},
"globals": {
"$": true,
"jQuery": true
},
"env": {
"es6": true,
"browser": true
},
"extends": "airbnb/base"
}
{
"parser": "babel-eslint",
"rules": {
"indent": [
2,
4
],
"no-alert": 0,
"consistent-return": 0,
"max-len": 0,
"import/first": 0,
"no-mixed-operators": 0,
"class-methods-use-this": 0,
"no-template-curly-in-string": 0,
"no-underscore-dangle": 0,
"prefer-spread": 0,
"no-plusplus": 0,
"no-restricted-syntax": 0,
"no-prototype-builtins": 0,
"no-useless-escape": 0,
"global-require": 0,
"newline-per-chained-call": 0,
"arrow-parens": 0,
"prefer-destructuring": 0,
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0,
"import/prefer-default-export": "off"
},
"globals": {
"$": true,
"jQuery": true
},
"env": {
"es6": true,
"browser": true
},
"extends": "airbnb/base"
}
16 changes: 8 additions & 8 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### Expected behavior


### Actual behavior


### Steps to reproduce behavior

### Expected behavior
### Actual behavior
### Steps to reproduce behavior
40 changes: 20 additions & 20 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#### What?

A description about what this pull request implements and its purpose. Try to be detailed and describe any technical details to simplify the job of the reviewer and the individual on production support.

#### Requirements

- [ ] CHANGELOG.md entry added (required for code changes only)

#### Tickets / Documentation

Add links to any relevant tickets and documentation.

- [Link 1](http://example.com)
- ...

#### Screenshots (if appropriate)

Attach images or add image links here.

![Example Image](http://placehold.it/300x200)
#### What?
A description about what this pull request implements and its purpose. Try to be detailed and describe any technical details to simplify the job of the reviewer and the individual on production support.
#### Requirements
- [ ] CHANGELOG.md entry added (required for code changes only)
#### Tickets / Documentation
Add links to any relevant tickets and documentation.
- [Link 1](http://example.com)
- ...
#### Screenshots (if appropriate)
Attach images or add image links here.
![Example Image](http://placehold.it/300x200)
106 changes: 53 additions & 53 deletions .github/workflow-examples/automatic_deployment_production.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
# Deploy Theme to Store when new changes are pushed to master branch
name: Deploy Theme to Store

on:
workflow_dispatch:
push:
branches: [ master, main ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node: [12.x]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node }}

- name: npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install Stencil CLI Dependency
run: npm install -g @bigcommerce/stencil-cli

- name: Install Dependencies
run: npm ci

#
# You must configure store credentials as secrets on your GitHub repo for automatic deployment via GitHub Actions
# This defaults to pushing the theme to channel ID 1, which is the default storefront. If you wish to push to an
# Alternate storefront, use a different channel ID
#

- name: Connect to store
env:
URL: ${{ secrets.STENCIL_STORE_URL_PRODUCTION }}
TOKEN: ${{ secrets.STENCIL_ACCESS_TOKEN_PRODUCTION }}
run: stencil init -u $URL -t $TOKEN -p 3000

- name: Push theme live, automatically deleting oldest theme if necessary
run: stencil push -a -d -c 1
# Deploy Theme to Store when new changes are pushed to master branch
name: Deploy Theme to Store
on:
workflow_dispatch:
push:
branches: [ master, main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [12.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node }}
- name: npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Stencil CLI Dependency
run: npm install -g @bigcommerce/stencil-cli
- name: Install Dependencies
run: npm ci
#
# You must configure store credentials as secrets on your GitHub repo for automatic deployment via GitHub Actions
# This defaults to pushing the theme to channel ID 1, which is the default storefront. If you wish to push to an
# Alternate storefront, use a different channel ID
#
- name: Connect to store
env:
URL: ${{ secrets.STENCIL_STORE_URL_PRODUCTION }}
TOKEN: ${{ secrets.STENCIL_ACCESS_TOKEN_PRODUCTION }}
run: stencil init -u $URL -t $TOKEN -p 3000
- name: Push theme live, automatically deleting oldest theme if necessary
run: stencil push -a -d -c 1
144 changes: 72 additions & 72 deletions .github/workflow-examples/poll_for_changed_configuration.yml
Original file line number Diff line number Diff line change
@@ -1,72 +1,72 @@
# Create PRs for updated configurations caused by changes in Page Builder as a scheduled job.

name: Check for updated configuration on production store

on:
workflow_dispatch:
schedule:
# Runs every 3 hours
# * is a special character in YAML so you have to quote this string
- cron: '0 */3 * * *'
push:
branches: [ master, main ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node: [12.x]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node }}

- name: npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install Stencil CLI Dependency
run: npm install -g @bigcommerce/stencil-cli

#
# You must configure store credentials as secrets on your GitHub repo for this job to work
#

- name: Connect to store
env:
URL: ${{ secrets.STENCIL_STORE_URL_PRODUCTION }}
TOKEN: ${{ secrets.STENCIL_ACCESS_TOKEN_PRODUCTION }}
run: stencil init -u $URL -t $TOKEN -p 3000

- name: Check for an updated configuration on the live default storefront (channel ID 1)
run: stencil pull -c 1

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
delete-branch: true
commit-message: Update config.json to match production store
branch: configuration-sync
title: 'Update config.json based on changes in Page Builder'
body: |
Changes were detected between your live store's Theme Configuration and config.json.

These may have been due to changes made in Page Builder, or because a theme was uploaded to your store out of sync with your source control.

By merging this PR, you can bring your local config.json in sync with the live store, and prevent issues where deploying your theme would overwrite recent changes.

Note that this is checked every few hours, so it's possible changes made very recently are not accounted for. You may re-run this action again manually to make sure everything is up to date.
labels: |
automated pr
# Create PRs for updated configurations caused by changes in Page Builder as a scheduled job.
name: Check for updated configuration on production store
on:
workflow_dispatch:
schedule:
# Runs every 3 hours
# * is a special character in YAML so you have to quote this string
- cron: '0 */3 * * *'
push:
branches: [ master, main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [12.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node }}
- name: npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Stencil CLI Dependency
run: npm install -g @bigcommerce/stencil-cli
#
# You must configure store credentials as secrets on your GitHub repo for this job to work
#
- name: Connect to store
env:
URL: ${{ secrets.STENCIL_STORE_URL_PRODUCTION }}
TOKEN: ${{ secrets.STENCIL_ACCESS_TOKEN_PRODUCTION }}
run: stencil init -u $URL -t $TOKEN -p 3000
- name: Check for an updated configuration on the live default storefront (channel ID 1)
run: stencil pull -c 1
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
delete-branch: true
commit-message: Update config.json to match production store
branch: configuration-sync
title: 'Update config.json based on changes in Page Builder'
body: |
Changes were detected between your live store's Theme Configuration and config.json.
These may have been due to changes made in Page Builder, or because a theme was uploaded to your store out of sync with your source control.
By merging this PR, you can bring your local config.json in sync with the live store, and prevent issues where deploying your theme would overwrite recent changes.
Note that this is checked every few hours, so it's possible changes made very recently are not accounted for. You may re-run this action again manually to make sure everything is up to date.
labels: |
automated pr
Loading