-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from commercetools/create-search-template
Build application skeleton
- Loading branch information
Showing
25 changed files
with
29,797 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-incremental-updater: | ||
name: Build the application for incremental-updater | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: incremental-updater | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.x' | ||
- run: npm ci | ||
- run: npm run lint && npm run prettier | ||
|
||
build-full-ingestion: | ||
name: Build the application for full-ingestion | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: full-ingestion | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.x' | ||
- run: npm ci | ||
- run: npm run lint && npm run prettier |
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,36 @@ | ||
# Project | ||
.env | ||
|
||
# Dependency directories | ||
node_modules/ | ||
|
||
# Cache | ||
.dccache | ||
|
||
# Build | ||
dist | ||
dist-tarballs | ||
build | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
**/.DS_Store | ||
coverage/ | ||
|
||
incremental-updater/**/yarn.lock | ||
|
||
# Yarn | ||
.pnp.* | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
incremental-updater/starter-typescript/job/.env | ||
incremental-updater/starter-typescript/job/.env.* | ||
!incremental-updater/starter-typescript/job/.env.example |
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,19 @@ | ||
deployAs: | ||
- name: full-ingestion | ||
applicationType: service | ||
endpoint: / | ||
scripts: | ||
postDeploy: npm install | ||
configuration: | ||
securedConfiguration: | ||
- key: COMMERCETOOLS_STORE_ID | ||
description: Unique identifier of Commercetools Store | ||
- name: incremental-updater | ||
applicationType: event | ||
endpoint: / | ||
scripts: | ||
postDeploy: npm install | ||
configuration: | ||
securedConfiguration: | ||
- key: COMMERCETOOLS_STORE_ID | ||
description: Unique identifier of Commercetools Store |
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 @@ | ||
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,19 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['eslint:recommended'], | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
}, | ||
rules: { | ||
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }], | ||
'no-undef': 'error', | ||
'no-console': 'error', | ||
'no-const-assign': 'error', | ||
}, | ||
env: { | ||
es6: true, | ||
jest: true, | ||
node: true, //adds things like process to global | ||
}, | ||
}; |
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 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"singleQuote": true, | ||
"parser": "babel", | ||
"overrides": [ | ||
{ | ||
"files": "*.json", | ||
"options": { | ||
"parser": "json" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.