Skip to content

Commit

Permalink
chore: added README and LICENSE files for packages
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed Apr 15, 2020
1 parent 1dc7f03 commit a14eab2
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 8 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Positive Technologies
Copyright (c) 2020 Positive Technologies

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 21 additions & 0 deletions packages/cdk/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Positive Technologies

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions packages/cdk/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Mosaic CDK
=======

The sources for this package are in the main [Mosaic](https://github.com/positive-js/mosaic) repo.

License: MIT
21 changes: 21 additions & 0 deletions packages/mosaic-moment-adapter/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Positive Technologies

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions packages/mosaic-moment-adapter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Mosaic Moment Adapter
=======

The sources for this package are in the main [Mosaic](https://github.com/positive-js/mosaic) repo.

License: MIT
21 changes: 21 additions & 0 deletions packages/mosaic/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Positive Technologies

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions packages/mosaic/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Mosaic
=======

The sources for this package are in the main [Mosaic](https://github.com/positive-js/mosaic) repo.

License: MIT
20 changes: 15 additions & 5 deletions scripts/deploy/publish-docs-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ import { Octokit } from '@octokit/rest';
import { execSync } from 'child_process';
import { join } from 'path';

// tslint:disable-next-line:blank-lines
import { GitClient } from '../../tools/release/git/git-client';

import IssuesListCommentsParams = Octokit.IssuesListCommentsParams;
import IssuesCreateCommentParams = Octokit.IssuesCreateCommentParams;


// tslint:disable-next-line:naming-convention
function getPrNumber(prNumber: string, circlePR: string): string {
Expand Down Expand Up @@ -54,7 +58,7 @@ async function postGithubComment() {

if (PR_NUMBER && owner === 'positive-js') {
const SHORT_SHA = process.env.SHORT_GIT_HASH;
const repo = process.env.CIRCLE_PROJECT_REPONAME;
const repo = process.env.CIRCLE_PROJECT_REPONAME as string;

console.log('Start to create a comment');
const auth = process.env.GITHUB_API_MOSAIC;
Expand All @@ -64,11 +68,14 @@ async function postGithubComment() {
auth
});

const comments: { data: any[] } = await githubApi.issues.listComments({
const issuesListCommentsParams: IssuesListCommentsParams = {
owner,
repo,
// @ts-ignore
issue_number: PR_NUMBER
});
};

const comments: { data: any[] } = await githubApi.issues.listComments(issuesListCommentsParams);

const ptBotComment = comments.data
.filter((comment) => comment.user.login === 'positivejs')
Expand All @@ -85,12 +92,15 @@ async function postGithubComment() {
});
} else {

await githubApi.issues.createComment({
const issuesCreateCommentParams: IssuesCreateCommentParams = {
owner,
repo,
// @ts-ignore
issue_number: PR_NUMBER,
body
});
};

await githubApi.issues.createComment(issuesCreateCommentParams);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions tools/release/publish-release.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable:no-console

import chalk from 'chalk';
import { execSync } from 'child_process';
import { execSync, ExecSyncOptions } from 'child_process';
import { readFileSync } from 'fs';
import { join } from 'path';

Expand Down Expand Up @@ -168,7 +168,7 @@ class PublishReleaseTask extends BaseReleaseTask {
/** Builds all release packages that should be published. */
private buildReleasePackages() {
const binDir = join(this.projectDir, 'node_modules/.bin');
const spawnOptions = {cwd: binDir, stdio: 'inherit'};
const spawnOptions: ExecSyncOptions = {cwd: binDir, stdio: 'inherit'};

execSync('rm -rf dist', spawnOptions);
execSync('yarn run build:cdk', spawnOptions);
Expand Down

0 comments on commit a14eab2

Please sign in to comment.