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

[WIP ] Allow parsing JS config file #22

Open
wants to merge 1 commit into
base: master
from

Conversation

@sharmilajesupaul
Copy link
Collaborator

commented Aug 9, 2019

Still testing this.

@sharmilajesupaul sharmilajesupaul requested a review from lencioni Aug 9, 2019

if (errors.length > 0) {
throw new SyntaxError(`invalid project config:\n - ${errors.join('\n - ')}`);
}
// const { errors } = validate(projectConfig, projectSchema) || [];

This comment has been minimized.

Copy link
@sharmilajesupaul

sharmilajesupaul Aug 9, 2019

Author Collaborator

will reinstate this once the config options are fixed

.help()
.config('config', (configPath) => {
if(existsSync(configPath)) {
const config = require(configPath);

This comment has been minimized.

Copy link
@ljharb

ljharb Aug 9, 2019

Collaborator

i want config to be static, not JS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.