Skip to content

Commit

Permalink
Merge pull request #1 from commercetools/create-search-template
Browse files Browse the repository at this point in the history
Build application skeleton
  • Loading branch information
leungkinghin-ct authored Aug 4, 2023
2 parents 3ca7e9f + 6e3a1d7 commit e091875
Show file tree
Hide file tree
Showing 25 changed files with 29,797 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
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
36 changes: 36 additions & 0 deletions .gitignore
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
19 changes: 19 additions & 0 deletions connect.yaml
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
1 change: 1 addition & 0 deletions full-ingestion/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
19 changes: 19 additions & 0 deletions full-ingestion/.eslintrc.cjs
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
},
};
13 changes: 13 additions & 0 deletions full-ingestion/.prettierrc
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"
}
}
]
}
Loading

0 comments on commit e091875

Please sign in to comment.