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

Document options #584

Open
sindresorhus opened this issue Dec 21, 2013 · 1 comment
Open

Document options #584

sindresorhus opened this issue Dec 21, 2013 · 1 comment

Comments

@sindresorhus
Copy link

It should be easy to see what options are supported and what they do.

Currently you have to dig into the source to find them:

annotations: false,
arrayComprehension: false,
arrowFunctions: true,
asyncFunctions: false,
blockBinding: true,
classes: true,
commentCallback: false,
computedPropertyNames: true,
debug: false,
defaultParameters: true,
destructuring: true,
exponentiation: false,
forOf: true,
freeVariableChecker: false,
generatorComprehension: false,
generators: true,
memberVariables: false,
moduleName: false,
modules: 'register',
numericLiterals: true,
outputLanguage: 'es5',
propertyMethods: true,
propertyNameShorthand: true,
referrer: '',
require: false,
restParameters: true,
script: false,
sourceMaps: false,
spread: true,
symbols: false,
templateLiterals: true,
typeAssertionModule: null,
typeAssertions: false,
types: false,
unicodeEscapeSequences: true,
unicodeExpressions: true,
validate: false,

And the Node interface supports additional options like filename and modules.

@johnjbarton
Copy link
Contributor

https://github.com/google/traceur-compiler/wiki/Options-for-Compiling

The usage message needs to be updated in source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants