Skip to content

Commit

Permalink
feat: add helper util package for overrides (aws-amplify#7726)
Browse files Browse the repository at this point in the history
* feat: add helper util package for overrides

* fix: remove lib files

* fix: add overrides helper lib to gitignore

* fix: namespace overrides package

* fix: fix eslint errors in lib/ files

Co-authored-by: Ghosh <[email protected]>
  • Loading branch information
2 people authored and akshbhu committed Aug 18, 2021
1 parent 194b0af commit 92376d9
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ module.exports = {
'/packages/amplify-graphql-*transformer*/lib',
'/packages/amplify-provider-awscloudformation/lib',
'/packages/amplify-console-integration-tests/lib',
'/packages/amplify-cli-overrides-helper/lib',

// Ignore CHANGELOG.md files
'/packages/*/CHANGELOG.md',
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ packages/**/reports/junit/*
test.out.log
*.tsbuildinfo
packages/amplify-graphiql-explorer/.eslintcache
packages/amplify-cli-overrides-helper/lib
5 changes: 5 additions & 0 deletions packages/amplify-cli-overrides-helper/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/__mocks__/**
**/__tests__/**
src
tsconfig.json
tsconfig.tsbuildinfo
1 change: 1 addition & 0 deletions packages/amplify-cli-overrides-helper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
EMPTY SKELETON FOR NOW.
47 changes: 47 additions & 0 deletions packages/amplify-cli-overrides-helper/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "@aws-amplify/cli-overrides-helper",
"version": "1.0.0",
"description": "Amplify CLI Overrides Helper utility package",
"repository": {
"type": "git",
"url": "https://github.com/aws-amplify/amplify-cli.git",
"directory": "packages/amplify-cli-overrides-helper"
},
"author": "Amazon Web Services",
"license": "Apache-2.0",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"keywords": [
"graphql",
"cli",
"cloudformation",
"aws",
"amplify"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsc",
"watch": "tsc -w",
"clean": "rimraf ./lib"
},
"dependencies": {},
"devDependencies": {},
"jest": {
"transform": {
"^.+\\.(ts|tsx)?$": "ts-jest"
},
"testRegex": "(src/__tests__/.*.test.ts)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"collectCoverage": true
}
}

11 changes: 11 additions & 0 deletions packages/amplify-cli-overrides-helper/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function getProjectInfo(): void {
console.log('Hello from the skeleton of get project info');
return;
}

function addDependency(): void {
console.log('Hello from the skeleton of add dependency');
return;
}

export { getProjectInfo, addDependency };
8 changes: 8 additions & 0 deletions packages/amplify-cli-overrides-helper/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./lib",
"rootDir": "./src",
}
}

0 comments on commit 92376d9

Please sign in to comment.