Skip to content

Commit

Permalink
Merge pull request #2 from zMotivat0r/fix/monorepo-files
Browse files Browse the repository at this point in the history
Fix/monorepo files
  • Loading branch information
michaelyali authored Apr 3, 2021
2 parents dc32c82 + 358d238 commit f534d2b
Show file tree
Hide file tree
Showing 33 changed files with 195 additions and 61 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install
- name: Set npm token
uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: https://registry.npmjs.org
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm install

- name: Install
run: npm install

- name: Build
run: npm run build
Expand Down
Empty file modified lib/bin/mrepo.js
100644 → 100755
Empty file.
16 changes: 16 additions & 0 deletions lib/constants.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
export declare const CMD = "mrepo";
export declare const CONFIG_FILE_NAME: string;
export declare const PACKAGE_GENERATOR_PASSED_OPTIONS_ENV_VAR = "PACKAGE_GENERATOR_PASSED_OPTIONS";
export declare enum LERNA_PACKAGES_VERSIONING {
independent = "independent",
common = "common"
}
export declare enum PACKAGE_REGISTRY {
github = "github",
npm = "npm"
}
export declare enum PACKAGE_REGISTRY_URL {
github = "npm.pkg.github.com",
npm = "registry.npmjs.org"
}
export declare enum GITHUB_NODE_AUTH_TOKEN_NAME {
github = "GITHUB_TOKEN",
npm = "NPM_TOKEN"
}
22 changes: 21 additions & 1 deletion lib/constants.js

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

2 changes: 1 addition & 1 deletion lib/constants.js.map

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

1 change: 1 addition & 0 deletions lib/interfaces/mrepo-config-file.interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export interface IMrepoConfigFile {
workspace: {
name: string;
scope: string;
registry: string;
packages: Array<{
name: string;
}>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ export interface IMonorepoGeneratorAnswers {
packageRegistry: string;
shouldGeneratePackage: boolean;
firstPackageName: string;
registryUrl: string;
githubNodeAuthTokenName: string;
}
41 changes: 20 additions & 21 deletions lib/monorepo-generator/saofile.js

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

2 changes: 1 addition & 1 deletion lib/monorepo-generator/saofile.js.map

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

Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
export interface IPackageGeneratorAnswers {
packageName?: string;
packageScope?: string;
scope?: string;
access?: string;
license?: string;
authorName?: string;
authorEmail?: string;
dependencies?: string[];
dependents?: string[];
registryUrl: string;
}
Loading

0 comments on commit f534d2b

Please sign in to comment.