Skip to content

Commit

Permalink
feat: move to NordicSemiconductor organization
Browse files Browse the repository at this point in the history
BREAKING CHANGE: this renames the package

See bifravst/bifravst#56
  • Loading branch information
coderbyheart committed Jan 29, 2021
1 parent 12e805a commit d4f0e28
Show file tree
Hide file tree
Showing 10 changed files with 311 additions and 316 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@bifravst/eslint-config-typescript"
"extends": "./node_modules/@nordicsemiconductor/asset-tracker-cloud-eslint-config-typescript/index.js"
}
8 changes: 4 additions & 4 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ pull_request_rules:
- name: Automatic merge security PRs when all status checks pass
conditions:
- author~=^(snyk-bot|dependabot\[bot\])$
- status-success=security/snyk (Bifravst)
- status-success=security/snyk (Asset Tracker Cloud)
- status-success=tests
actions:
merge:
method: rebase
rebase_fallback: squash
bot_account: bifravst-ci
bot_account: asset-tracker-cloud-ci
label:
add:
- mergify
- mergify
rebase:
bot_account: bifravst-ci
bot_account: asset-tracker-cloud-ci
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
...require('@bifravst/code-style/.prettierrc'),
...require('@nordicsemiconductor/asset-tracker-cloud-code-style/.prettierrc'),
}
3 changes: 2 additions & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
See https://github.com/bifravst/bifravst/blob/saga/CODE_OF_CONDUCT.md
See
https://github.com/NordicSemiconductor/asset-tracker-cloud-docs/blob/saga/CODE_OF_CONDUCT.md
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# CloudFormation Helpers [![npm version](https://img.shields.io/npm/v/@bifravst/cloudformation-helpers.svg)](https://www.npmjs.com/package/@bifravst/cloudformation-helpers)
# CloudFormation Helpers [![npm version](https://img.shields.io/npm/v/@nordicsemiconductor/cloudformation-helpers.svg)](https://www.npmjs.com/package/@nordicsemiconductor/cloudformation-helpers)

[![GitHub Actions](https://github.com/bifravst/cloudformation-helpers/workflows/Test%20and%20Release/badge.svg)](https://github.com/bifravst/cloudformation-helpers/actions)
[![Known Vulnerabilities](https://snyk.io/test/github/bifravst/cloudformation-helpers/badge.svg)](https://snyk.io/test/github/bifravst/cloudformation-helpers)
[![GitHub Actions](https://github.com/NordicSemiconductor/cloud-aws-cloudformation-helpers-js/workflows/Test%20and%20Release/badge.svg)](https://github.com/NordicSemiconductor/cloud-aws-cloudformation-helpers-js/actions)
[![Known Vulnerabilities](https://snyk.io/test/NordicSemiconductor/cloud-aws-cloudformation-helpers-js/badge.svg)](https://snyk.io/test/NordicSemiconductor/cloud-aws-cloudformation-helpers-js)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)
[![Mergify Status](https://img.shields.io/endpoint.svg?url=https://dashboard.mergify.io/badges/bifravst/cloudformation-helpers&style=flat)](https://mergify.io)
[![Mergify Status](https://img.shields.io/endpoint.svg?url=https://gh.mergify.io/badges/nordicsemiconductor/cloudformation-helpers)](https://mergify.io)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier/)
[![ESLint: TypeScript](https://img.shields.io/badge/ESLint-TypeScript-blue.svg)](https://github.com/typescript-eslint/typescript-eslint)
Expand All @@ -13,7 +13,7 @@ Helper functions which simplify working with AWS CloudFormation stacks.

## Installation

npm i --save-dev @bifravst/cloudformation-helpers
npm i --save-dev @nordicsemiconductor/cloudformation-helpers

## Usage

Expand All @@ -22,7 +22,10 @@ Helper functions which simplify working with AWS CloudFormation stacks.
`cfnResponse` implements sending custom resource responses.

```typescript
import { cfnResponse, ResponseStatus } from "@bifravst/cloudformation-helpers";
import {
cfnResponse,
ResponseStatus,
} from "@nordicsemiconductor/cloudformation-helpers";
import { CloudFormationCustomResourceEvent } from "aws-lambda";

/**
Expand Down
548 changes: 271 additions & 277 deletions package-lock.json

Large diffs are not rendered by default.

23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@bifravst/cloudformation-helpers",
"name": "@nordicsemiconductor/cloudformation-helpers",
"version": "0.0.0-development",
"description": "Helper functions which simplify working with AWS CloudFormation stacks",
"main": "dist/index.js",
Expand All @@ -9,30 +9,29 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/bifravst/cloudformation-helpers.git"
"url": "git+https://github.com/NordicSemiconductor/cloud-aws-cloudformation-helpers-js.git"
},
"bugs": {
"url": "https://github.com/bifravst/cloudformation-helpers/issues"
"url": "https://github.com/NordicSemiconductor/cloud-aws-cloudformation-helpers-js/issues"
},
"homepage": "https://github.com/bifravst/cloudformation-helpers",
"homepage": "https://github.com/NordicSemiconductor/cloud-aws-cloudformation-helpers-js",
"keywords": [
"Cloud",
"IoT",
"Bifravst",
"Asset Tracker",
"NordicSemiconductor"
"Asset Tracker Cloud Example",
"Nordic Semiconductor"
],
"author": "Nordic Semiconductor ASA | nordicsemi.no",
"license": "BSD-3-Clause",
"dependencies": {
"@aws-sdk/client-cloudformation": "3.3.0",
"@aws-sdk/client-cloudformation": "3.4.0",
"@types/aws-lambda": "8.10.71"
},
"devDependencies": {
"@bifravst/code-style": "8.0.134",
"@bifravst/eslint-config-typescript": "5.0.90",
"@commitlint/cli": "11.0.0",
"@commitlint/config-angular": "11.0.0",
"@nordicsemiconductor/asset-tracker-cloud-code-style": "9.0.0",
"@nordicsemiconductor/asset-tracker-cloud-eslint-config-typescript": "6.0.0",
"@types/jest": "26.0.20",
"@types/node": "14.14.22",
"eslint": "7.18.0",
Expand All @@ -41,7 +40,7 @@
"lint-staged": "10.5.3",
"nock": "13.0.6",
"prettier": "2.2.1",
"ts-jest": "26.4.4",
"ts-jest": "26.5.0",
"typescript": "4.1.3"
},
"husky": {
Expand Down Expand Up @@ -87,7 +86,7 @@
"json"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
".+\\.tsx?$": "ts-jest"
},
"testRegex": ".+\\.spec\\.ts$",
"globals": {
Expand Down
4 changes: 1 addition & 3 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"extends": [
"github>bifravst/code-style"
]
"extends": ["github>nordicsemiconductor/asset-tracker-cloud-code-style-js"]
}
20 changes: 10 additions & 10 deletions src/toObject.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,44 @@ describe('toObject()', () => {
toObject([
{
OutputKey: 'websiteBucketName',
OutputValue: 'bifravst-websitbucketc74c6fbf-e126q3sws4eq',
ExportName: 'bifravst:websiteBucketName',
OutputValue: 'asset-tracker-websitbucketc74c6fbf-e126q3sws4eq',
ExportName: 'asset-tracker:websiteBucketName',
},
{
OutputKey: 'userPoolClientId',
OutputValue: '7mfbudbt5eq56kgo2244sa9kc8',
ExportName: 'bifravst:userPoolClientId',
ExportName: 'asset-tracker:userPoolClientId',
},
{
OutputKey: 'mqttEndpoint',
OutputValue: 'a34x44yyrk96tg-ats.iot.eu-central-1.amazonaws.com',
ExportName: 'bifravst:mqttEndpoint',
ExportName: 'asset-tracker:mqttEndpoint',
},
{
OutputKey: 'userPoolId',
OutputValue: 'eu-central-1_KBMdKxWIt',
ExportName: 'bifravst:userPoolId',
ExportName: 'asset-tracker:userPoolId',
},
{
OutputKey: 'identityPoolId',
OutputValue: 'eu-central-1:5b979419-01d8-498a-a024-c344ac2a3301',
ExportName: 'bifravst:identityPoolId',
ExportName: 'asset-tracker:identityPoolId',
},
{
OutputKey: 'websiteDomainName',
OutputValue:
'bifravst-websitbucketc74c6fbf-e126q3sws4eq.s3.eu-central-1.amazonaws.com',
ExportName: 'bifravst:websiteDomainName',
'asset-tracker-websitbucketc74c6fbf-e126q3sws4eq.s3.eu-central-1.amazonaws.com',
ExportName: 'asset-tracker:websiteDomainName',
},
]),
).toEqual({
websiteBucketName: 'bifravst-websitbucketc74c6fbf-e126q3sws4eq',
websiteBucketName: 'asset-tracker-websitbucketc74c6fbf-e126q3sws4eq',
userPoolClientId: '7mfbudbt5eq56kgo2244sa9kc8',
mqttEndpoint: 'a34x44yyrk96tg-ats.iot.eu-central-1.amazonaws.com',
userPoolId: 'eu-central-1_KBMdKxWIt',
identityPoolId: 'eu-central-1:5b979419-01d8-498a-a024-c344ac2a3301',
websiteDomainName:
'bifravst-websitbucketc74c6fbf-e126q3sws4eq.s3.eu-central-1.amazonaws.com',
'asset-tracker-websitbucketc74c6fbf-e126q3sws4eq.s3.eu-central-1.amazonaws.com',
})
})
})
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@bifravst/code-style/tsconfig.json",
"extends": "@nordicsemiconductor/asset-tracker-cloud-code-style/tsconfig.json",
"include": ["**/*.ts"],
"compilerOptions": {
"outDir": "dist/"
Expand Down

0 comments on commit d4f0e28

Please sign in to comment.