Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(aio): add i18n boilerplate type #20004

Closed
wants to merge 1 commit into from

Conversation

Foxandxss
Copy link
Member

This is an upgrade to aio boilerplate mechanism. For #19975 @ocombe needs a custom package.json for his guide. Instead of replicating the entire CLI boilerplate to just override one file, it is better to "inherit" from the CLI one and override the needed file. That way we don't have to update the boilerplate twice.

This needs to be reviewed and merged ASAP to release the docs early this week.

@@ -10,7 +10,7 @@ const BOILERPLATE_BASE_PATH = path.resolve(SHARED_PATH, 'boilerplate');
const BOILERPLATE_COMMON_BASE_PATH = path.resolve(BOILERPLATE_BASE_PATH, 'common');
const EXAMPLES_BASE_PATH = path.resolve(__dirname, '../../content/examples');

const BOILERPLATE_PATHS = {
let BOILERPLATE_PATHS = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need to make this let as you don't replace the actual object; you just modify a property of it.

@@ -45,6 +45,13 @@ const BOILERPLATE_PATHS = {
]
};

const cliRelativePath = BOILERPLATE_PATHS.cli.map(file => `../cli/${file}`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment here explaining what this is doing will be helpful in the future.

Copy link
Member

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of things to tweak but LGTM

@Foxandxss
Copy link
Member Author

Thanks for the review. I addessed the comments. But if you prefer a different comment, let me know, I struggled a bit :P

@Foxandxss
Copy link
Member Author

Also removed the changes to the i18n example-config, that wasn't supposed to be there, yet.

@mary-poppins
Copy link

You can preview a20ecb5 at https://pr20004-a20ecb5.ngbuilds.io/.

@petebacondarwin petebacondarwin added action: merge The PR is ready for merge by the caretaker comp: aio target: patch This PR is targeted for the next patch release labels Oct 29, 2017
"tslint": "~5.3.2",
"typescript": "~2.4.2"
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it documented somewhere which files need to be update when we want to update dependencies?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if it is updated. We could do that in a separate pr

@petebacondarwin petebacondarwin added target: major This PR is targeted for the next major release and removed target: patch This PR is targeted for the next patch release labels Oct 29, 2017
@matsko matsko modified the milestone: v5.0.0 Oct 30, 2017
@petebacondarwin petebacondarwin added this to MERGE in docs-infra Oct 30, 2017
matsko pushed a commit that referenced this pull request Oct 31, 2017
@matsko matsko closed this in 3a86654 Oct 31, 2017
@petebacondarwin petebacondarwin removed this from MERGE in docs-infra Oct 31, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants