Skip to content

Commit 988e320

Browse files
adadoucheAbdelhalim Dadouche
andauthored
Major update to 0.2.0 (#76)
* adding new folders to exclude * updating the architecture diagrams * adding / moving helper scripts * moving the base image assests to source-repo * adjusting buildspec file with new nfs mount location & adding debug logs * refactoring poky/poky-ami project & esling formatting * eslint & jest config refactoring / updates * library version updates & scripts commands ajdustments * github workflow adjustment to conform with new script location * deprecating existing/former cdk libraries and test * updating package-lock.json * adding new refactored version of the CDK construct with less dependecies between each other: - improve the overall deployment time - reduce the number of EFS instance requried (1 from 3 per pipeline) - provide reuable resourcess across pipelines (s3 buckets, kms keys, ecr reigistry, etc) - remove oprhan code * updated readme * updated tests snapshot * eslint reformatting * forcing dependency to prevent iam role issue on first run of pipeline * managin eof / eol with lf only (as I'm working o windows and this can cause issues if env is not configured properly) * updated test due to dependency change * moving build assets script out to avoid deployment in dist * updating reference to build assets script * adding execute permission * package.json: - updated dependencies/devDependencies/peerDependencies - added license attribute - switching to yarn README.md: - doc adjustement due toyarn switch - confirmed steps for linking Yarn switch for the following reasons: - provides better linking / dependencies management - faster than npm (somehow) - enable easier linking when developping * downsizing codebuild ComputeType to save on cost and because resources are not fully used * Normalize all the line endings * forcing lf endings * adding docker image file to allow uplaod & zip of source repo via cdk assets * variable renaming to improve readability * differentiating ProjectKind from deprecated API * - code refactoring to remove local archive creation (using assets and bucket deployement instead - variable renaming to improve readability * minor comment changes * moving the vmimport bucket class to the deprecated folder * adjusting the vmimport bucket class import * removing references to VMImportBucket * simplifying the build asset script * excluding the test folder from the dist/build output * adding excluded folder fom build and eslint * cleanup and relocation of scripts and assets * variable renaming to improve readability * - variable renaming to improve readability - removed use of custom S3 Bucket object for VM Import (enabled by design if needed) - updating nag snapshots * updating script path * varible renaming to improve readability * switching to S3 poll trigger * code cleanup * adjusting the readme with additional details * function refactoring * improving the doc / readme * minor change in navigation * adding the ability to use a custom local source path be used to create a pipeline * switching to codepipeline_actions.S3Trigger.EVENTS, * - switching to codepipeline_actions.S3Trigger.EVENTS, - adding a custom project type where you can provide the location of your buildspec * variable renaming * - extending create ami script with additional parameters - adding tags and name to the created ami * test updates * removing node 18/20 support * removing deprecated code * switching to yarn * switching to yarn * fixing shell check * fixing shell check warnings * adjusting shell check script path * pre-commit failures fixes * pre-commit failures fixes * adding a post install script to force dist folder generation on install * reveerting change * adjusting lifecycle scripts * updating to Yarn 2 (v4.6.0) * updating to Yarn 2 (v4.6.0) * adding package-lock for npm compatibility * fixing renesas script * Update doc.yml update to support yarn * fixing formatting --------- Co-authored-by: Abdelhalim Dadouche <[email protected]>
1 parent 0e8e4cd commit 988e320

File tree

70 files changed

+12196
-13609
lines changed

Some content is hidden

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

70 files changed

+12196
-13609
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/doc.yml

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,42 @@
11
name: Typedoc build and deploy doc to GH pages
22
on:
3-
push:
4-
branches: ["main"]
3+
push:
4+
branches: ["main"]
55

6-
workflow_dispatch:
6+
workflow_dispatch:
77

88
permissions:
9-
contents: write
9+
contents: write
1010
jobs:
11-
build-and-deploy:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v3
11+
build-and-deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Get yarn cache directory path
15+
id: yarn-cache-dir-path
16+
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
17+
- uses: actions/cache@v4
18+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
19+
with:
20+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
21+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22+
restore-keys: |
23+
${{ runner.os }}-yarn-
1624
17-
- name: Install and Build
18-
run: |
19-
npm ci
20-
npm run doc
25+
- uses: actions/checkout@v4
26+
- name: Enable Corepack
27+
run: corepack enable
28+
- name: Use Node.js ${{ matrix.node-version }}
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
cache: "yarn"
2133

22-
- name: Deploy
23-
uses: JamesIves/github-pages-deploy-action@v4
24-
with:
25-
folder: dist/docs
34+
- name: Install and Build
35+
run: |
36+
yarn install --immutable
37+
yarn run doc
38+
39+
- name: Deploy
40+
uses: JamesIves/github-pages-deploy-action@v4
41+
with:
42+
folder: dist/docs

.github/workflows/shellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
- name: Install shellcheck
1414
run: sudo apt-get install shellcheck
1515
- name: Run shellcheck
16-
run: shellcheck assets/*.sh
16+
run: for file in $(find ./source-repo -type f -iname "*.sh"); do shellcheck $file; done;

.github/workflows/test-cdk.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,26 @@ jobs:
1313
node-version: [22.x]
1414

1515
steps:
16-
- name: Check out repository code
17-
uses: actions/checkout@v3
16+
- name: Get yarn cache directory path
17+
id: yarn-cache-dir-path
18+
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
19+
- uses: actions/cache@v4
20+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
21+
with:
22+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
23+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
24+
restore-keys: |
25+
${{ runner.os }}-yarn-
26+
27+
- uses: actions/checkout@v4
28+
- name: Enable Corepack
29+
run: corepack enable
1830
- name: Use Node.js ${{ matrix.node-version }}
19-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
2032
with:
2133
node-version: ${{ matrix.node-version }}
22-
- run: npm ci
23-
- run: npm run check
24-
- run: npm run build --if-present
25-
- run: npm test
34+
cache: "yarn"
35+
- run: yarn install --immutable
36+
- run: yarn run check
37+
- run: yarn run build
38+
- run: yarn test

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
node_modules
77
dist
88

9+
# yarn asset
10+
yarn-install.log
11+
.yarn/*
12+
!.yarn/releases/
13+
!.yarn/plugins/
14+
!.yarn/versions/
15+
!.yarn/sdks/
16+
.pnp.*
17+
918
# CDK asset staging directory
1019
.cdk.staging
1120
cdk.out
@@ -16,3 +25,6 @@ cdk.context.json
1625

1726
# Ignore Mac DS_Store files
1827
**/.DS_Store
28+
29+
assets
30+
source-zip

.yarn/sdks/eslint/package.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "eslint",
3+
"version": "9.20.1-sdk",
4+
"main": "./lib/api.js",
5+
"type": "commonjs",
6+
"bin": {
7+
"eslint": "./bin/eslint.js"
8+
},
9+
"exports": {
10+
".": {
11+
"types": "./lib/types/index.d.ts",
12+
"default": "./lib/api.js"
13+
},
14+
"./package.json": "./package.json",
15+
"./use-at-your-own-risk": {
16+
"types": "./lib/types/use-at-your-own-risk.d.ts",
17+
"default": "./lib/unsupported-api.js"
18+
},
19+
"./rules": {
20+
"types": "./lib/types/rules/index.d.ts"
21+
},
22+
"./universal": {
23+
"types": "./lib/types/universal.d.ts",
24+
"default": "./lib/universal.js"
25+
}
26+
}
27+
}

.yarnrc.yml

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

0 commit comments

Comments
 (0)