Skip to content

Commit

Permalink
chore: test githook
Browse files Browse the repository at this point in the history
  • Loading branch information
gyalai-aws committed Apr 8, 2024
1 parent 4787669 commit 60fd339
Show file tree
Hide file tree
Showing 13 changed files with 1,212 additions and 20,145 deletions.
9 changes: 9 additions & 0 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ cli.addPackageIgnore('*.ts');

const cliExec = cli.addTask('cli-exec');
cliExec.spawn(cli.tasks.tryFind('compile')!);
cliExec.exec('./packages/cli/bin/ci-cd-boot-cli', { receiveArgs: true, cwd: '../..' });
cliExec.exec('./packages/@cdklabs/cdk-cicd-wrapper-cli/bin/ci-cd-boot-cli', { receiveArgs: true, cwd: '../../..' });

//============================================
//
Expand Down Expand Up @@ -228,4 +228,7 @@ commitlint.exec('commitlint --edit', { receiveArgs: true });
// husky
root.package.addDevDeps('husky');

const prepare = root.addTask('husky');
prepare.exec('husky', { condition: '[ ! -n "$CI" ]' });

root.synth();
2 changes: 1 addition & 1 deletion .verdaccio/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uplinks:
maxage: 60m

packages:
'**':
'@*/*':
# give all users (including non-authenticated users) full access
# because it is a local registry
access: $anonymous
Expand Down
6,441 changes: 1,148 additions & 5,293 deletions NOTICE

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions OSS_License_Summary.csv
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"(MIT OR CC0-1.0)","5"
"(MIT OR GPL-3.0-or-later)","1"
"0BSD","2"
"Apache-2.0","153"
"BSD-2-Clause","17"
"BSD-3-Clause","28"
"Apache-2.0","133"
"BSD-2-Clause","15"
"BSD-3-Clause","25"
"CC-BY-3.0","1"
"CC-BY-4.0","1"
"CC0-1.0","2"
"CC0-1.0","1"
"ISC","62"
"MIT","724"
"MIT","709"
"Python-2.0","1"
"UNLICENSED","1"
"Unlicense","1"
37 changes: 33 additions & 4 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ env:

tasks:

init:
desc: Initialize local dev-environment
cmds:
- task: refresh
- task: init:githook

init:githook:
desc: Initialize git hook
cmds:
- npm run husky

clean:
desc: Clean the project
summary: Removes all the generated folders and returns the project to a clean state.
Expand Down Expand Up @@ -52,16 +63,34 @@ tasks:
deps:
- verdaccio:install
cmds:
- yarn add -W shx
- npm config -L project set @cdklabs:registry=http://localhost:4873
- npm run release
# - yarn add -W shx
- npm config -L project set @cdklabs:registry=http://127.0.0.1:4873
- npm config -L project set //127.0.0.1:4873/:_authToken="\"fake\""
- task: clean
- task: build
- task: test-release:pipeline
- task: test-release:cli

test-release:pipeline:
desc: Publish the pipeline package locally
dir: packages/@cdklabs/cdk-cicd-wrapper/dist/js/
internal: true
cmds:
- npm publish --registry http://127.0.0.1:4873

test-release:cli:
desc: Publish the cli package locally
dir: packages/@cdklabs/cdk-cicd-wrapper-cli/dist/js/
internal: true
cmds:
- npm publish --registry http://127.0.0.1:4873

verdaccio:start:
desc: Start verdaccio
summary: Start verdaccio. This task only starts the server.
run: once
cmds:
- npx verdaccio@latest -c ./verdaccio/config.yml --listen 0.0.0.0:4873
- npx verdaccio@latest -c ./.verdaccio/config.yml --listen 0.0.0.0:4873

verdaccio:install:
desc: Install verdaccio
Expand Down
3 changes: 2 additions & 1 deletion devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"echo 'Welcome to CDKLabs CDK CI/CD Wrapper'",
"echo 'You can run the following commands:'",
"task -l",
"echo 'For more information, see Readme.md'"
"echo 'For more information, see Readme.md'",
"task init"
],
"scripts": {
"test": [
Expand Down
2 changes: 1 addition & 1 deletion docs/content/developer_guides/private_npm_registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ registry=https://private-registry.example.com
In case you want to use the registry only for [scoped dependencies](https://docs.npmjs.com/about-scopes), add the scope definition before the registry.

```
@harvesting-vp:registry=https://private-registry.example.com
@cdklabs:registry=https://private-registry.example.com
```

4. Add Authentication Credentials:
Expand Down
Loading

0 comments on commit 60fd339

Please sign in to comment.