-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
can't build cocoascript in js file #106
Comments
yes, cocoascript is a mistake and should have never been allowed. It breaks all the JS tooling. Use the JS syntax instead: var writeTextToFile = function(text, filePath) {
var t = NSString.stringWithFormat("%@", text)
f = NSString.stringWithFormat("%@", filePath);
return t.writeToFile_atomically_encoding_error(f, true, NSUTF8StringEncoding, null)
}
export default function(context) {
} |
ok thx. where can I find the JS syntax? When I got a cocoascript. |
the example i wrote doesn't work? More generally, there are only 2 "rules":
|
gotcha! thank you so much |
Thx, @mathieudutour. The code you wrote is correct :) except for one comma between variable declarations. I added it.
|
src/my-command.js
I can't build this file in 'npm run start'
The text was updated successfully, but these errors were encountered: