Skip to content

Commit 853f632

Browse files
Merge pull request #60 from mollie/feature/MOL-436/PICT-250
MOL-436/MOL-441: init custom application
2 parents 8bae8ac + a33a0e0 commit 853f632

Some content is hidden

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

72 files changed

+139331
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## v2.0.0-alpha
8+
9+
Added
10+
11+
- Mollie custom application initialization
12+
713
## v1.0.2
814

915
Fixes

application/.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ENABLE_NEW_JSX_TRANSFORM="true"
2+
FAST_REFRESH="true"

application/.env.dev

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ENABLE_NEW_JSX_TRANSFORM="true"
2+
FAST_REFRESH="true"
3+
4+
ENTRY_POINT_URI_PATH="mollie"
5+
PROJECT_KEY="shopm-adv-dev"
6+
CLOUD_IDENTIFIER="gcp-eu"
7+
CUSTOM_APPLICATION_ID="app-id"
8+
APPLICATION_URL="http://localhost:3001"

application/.eslintrc.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
process.env.ENABLE_NEW_JSX_TRANSFORM = 'true';
2+
3+
/**
4+
* @type {import("eslint").Linter.Config}
5+
*/
6+
module.exports = {
7+
extends: ['@commercetools-frontend/eslint-config-mc-app'],
8+
plugins: ['graphql'],
9+
overrides: [
10+
{
11+
files: ['**/*.ctp.graphql'],
12+
rules: {
13+
'graphql/template-strings': [
14+
'error',
15+
{
16+
env: 'literal',
17+
schemaJson: require('./schemas/ctp.json'),
18+
},
19+
],
20+
},
21+
},
22+
],
23+
};

application/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
public
3+
dist
4+
!.env
5+
6+
# Cypress
7+
cypress/.env
8+
cypress/screenshots/**
9+
cypress/videos/**

application/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

application/.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
i18n/data/*.json
2+
public
3+
.cache
4+
.yarn

application/.prettierrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"trailingComma": "es5",
3+
"singleQuote": true,
4+
"parser": "typescript",
5+
"overrides": [
6+
{
7+
"files": "*.json",
8+
"options": {
9+
"parser": "json"
10+
}
11+
},
12+
{
13+
"files": "*.graphql",
14+
"options": {
15+
"parser": "graphql"
16+
}
17+
}
18+
]
19+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* THIS IS A GENERATED FILE */
2+
/* eslint-disable import/no-duplicates */
3+
4+
declare module '*/fetch-channel-details.ctp.graphql' {
5+
import { DocumentNode } from 'graphql';
6+
const defaultDocument: DocumentNode;
7+
export const FetchChannelDetails: DocumentNode;
8+
9+
export default defaultDocument;
10+
}
11+
12+
declare module '*/fetch-channels.ctp.graphql' {
13+
import { DocumentNode } from 'graphql';
14+
const defaultDocument: DocumentNode;
15+
export const FetchChannels: DocumentNode;
16+
17+
export default defaultDocument;
18+
}
19+
20+
declare module '*/update-channel-details.ctp.graphql' {
21+
import { DocumentNode } from 'graphql';
22+
const defaultDocument: DocumentNode;
23+
export const UpdateChannelDetails: DocumentNode;
24+
25+
export default defaultDocument;
26+
}
27+
28+
declare module '*/fetch-custom-objects.ctp.graphql' {
29+
import { DocumentNode } from 'graphql';
30+
const defaultDocument: DocumentNode;
31+
export const FetchCustomObjects: DocumentNode;
32+
33+
export default defaultDocument;
34+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
declare module '@commercetools/sync-actions' {
2+
export type SyncAction = { action: string; [x: string]: unknown };
3+
function buildActions<NextDraft, OriginalDraft>(
4+
nextDraft: NextDraft,
5+
originalDraft: OriginalDraft
6+
): SyncAction[];
7+
export type Syncer = {
8+
buildActions: typeof buildActions;
9+
};
10+
export function createSyncChannels(): Syncer;
11+
export function createSyncCustomObjects(): Syncer;
12+
}

0 commit comments

Comments
 (0)