Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 15 23:44
    ikeh commented #661
  • May 15 23:44

    dependabot[bot] on npm_and_yarn

    (compare)

  • May 15 23:44

    dependabot[bot] on npm_and_yarn

    (compare)

  • May 15 23:44

    dependabot[bot] on npm_and_yarn

    (compare)

  • May 15 23:44

    dependabot[bot] on npm_and_yarn

    (compare)

  • May 15 23:44

    dependabot[bot] on npm_and_yarn

    (compare)

  • May 15 23:44

    dependabot[bot] on npm_and_yarn

    (compare)

  • May 15 23:44
    dependabot[bot] commented #665
  • May 15 23:44
    dependabot[bot] commented #664
  • May 15 23:44
    dependabot[bot] commented #663
  • May 15 23:44
    basarat closed #665
  • May 15 23:44
    dependabot[bot] commented #661
  • May 15 23:44
    basarat closed #664
  • May 15 23:44
    dependabot[bot] commented #658
  • May 15 23:44
    dependabot[bot] commented #656
  • May 15 23:44
    basarat closed #663
  • May 15 23:44
    basarat closed #661
  • May 15 23:44
    basarat closed #658
  • May 15 23:44
    basarat closed #656
  • Apr 08 22:52
    ikeh commented #665
Marinho Brandão
@marinho
Looks good @basarat I ll take a look
martov1
@martov1
Hi buddy, just wanted to let you know that I added ALM to the typescript IDEs list on the IONIC 2 documentation
https://github.com/driftyco/ionic-site/pull/780#event-796252124
cheers, i love your project.
Basarat Ali Syed
@basarat
Thanks! 🌹❤️
Richard Fuhr
@rdfuhr
This is a very basic question, since I have just started using alm, but I see no obvious way to save a file using alm. In my first experiment, it either saved the file automatically or by doing command-s when in Chrome.
Richard Fuhr
@rdfuhr
Got my answer, it is indeed command + s on the Mac.
Basarat Ali Syed
@basarat
🌹 you can also use the Omni command search to get the keyboard shortcuts (or even run the command without the shortcut ) ❤️
mortan
@mortan
can I run my script directly in ALM and see the console output?
Burt Harris
@BurtHarris
Hello. I'm just trying out alm-tools, and share questions like @mortan's.
Is there a way I can make alm -o . run Chrome rather then Edge on Windows 10.? I'd rather not change my default browser, but Chrome seems to run alm better in the zoomed-in mode I need to read comfortably.
Basarat Ali Syed
@basarat

can I run my script directly in ALM and see the console output?

Not quite. You can however run a ts->js conversion and see the output in the dev tools console. with Ctrl|⌘ + M. Covered here : https://basarat.gitbooks.io/alm/content/features/build.html :rose:

Is there a way I can make alm -o . run Chrome rather then Edge on Windows 10.? I'd rather not change my default browser,

Sadly you have to. open chrome url didn't work reliably on all OSSes and would crash silently if user didn't have chrome, so I just send open url to all OSSes and the OS load the default browser : https://github.com/alm-tools/alm/blob/f3c89d0a69fbb0e62e203b5de7d55ea8e006bceb/src/server.ts#L134-L136

Burt Harris
@BurtHarris
Thanks Basarat. One more question: can I exclude certain file names from the dependency view?
Basarat Ali Syed
@basarat
@BurtHarris no, but you can include only specific ones using find
Jari Pennanen
@Ciantic
just wanted to share, but have you @basarat used mobx?
const user = observable({
    userName : ""
});

setTimeout(() => {
    user.userName = "Jack"
}, 3000);

@observer
class SomeComp extends React.Component<any, any> {
    render() {
        return <div>
            {user.userName}
        </div>
    }
}
that thing works as expected
changes to "Jack" in three seconds...
and it's written in TypeScript https://github.com/mobxjs/mobx
I think I'm not going to fiddle with Redux anymore, this is amazingly simpler way
forget about passing shit in context, when you can just import the "user" in deeply nested component
and use it
best of all, it does not re-render if I remove {user.username} from render, it knows it's not using that observable in that case
so it's also precies
precise
Basarat Ali Syed
@basarat
@Ciantic once again great minds think alike https://twitter.com/basarat/status/780661816313516032 🌹
Jari Pennanen
@Ciantic
oh great, you've discovered it already. There still isn't good TS & React resources, one must cobble together from discovering stuff, most seems to be JS libraries
clearly alsot the mobx creator kept the TS as a implementation detail, it's literally not mentioned in docs or the readme, probably to encourage JS peeps to use it :)
well, there is a only small mention in the docs
Jari Pennanen
@Ciantic
apparently the author seems to go as far as allowing untyped pull requests
Basarat Ali Syed
@basarat
🌹
Matthew Wilson
@diakopter
@basarat do you have a suggestion for how to add a preprocessor hook to an alm buffer? That is, let's say I'd like to put some Ohm.js grammar/parser in one window that will output normal TypeScript to another file/window
Basarat Ali Syed
@basarat
@diakopter this is one possible location where you can customize the output : https://github.com/alm-tools/alm/blob/master/src/server/disk/fileModel.ts#L107-L114
That code is cleaning up for .editorconfig before writing to disk. But keeping the in memory version of the contents unchanged
Another location : https://github.com/alm-tools/alm/blob/master/src/server/workers/lang/modules/building.ts#L48 Here we get the .js for a .ts file :rose:
Matthew Wilson
@diakopter
I'm curious; have you seen Ohm's editor? https://ohmlang.github.io/editor/ I'm looking at making some macro system for TypeScript using a grammar written in Ohm. I previously wrote something similar for JavaScript (in 2009) using OMeta (its predecessor). It would be nice to use your editor as a basis for my macro system, just so I can see the formatted/checked output. I think for now I can just use them in separate windows.
Matthew Wilson
@diakopter
@basarat I'm getting an error when I try Ctrl-m
Basarat Ali Syed
@basarat
@diakopter what error? :rose:
Matthew Wilson
@diakopter
Conflict detected, command editor.action.jumpToBracket cannot be triggered by ctrl+m due to editor.action.toggleTabFocusModeKeybindingResolver._addKeyPress @ keybindingResolver.ts:190
Matthew Wilson
@diakopter
@basarat also getting another error trying npm run alm: ERROR in ./~/source-map-support/source-map-support.js
Module not found: Error: Cannot resolve module 'module' in C:\Users\user\src\alm\node_modules\source-map-support
@ ./~/source-map-support/source-map-support.js 464:17-34
Basarat Ali Syed
@basarat
its a bug in source-map-support alm-tools/alm#330 hoping for it to fix itself
^ external pacakge
Basarat Ali Syed
@basarat
^ fixed with
Released with 2.10.0 🌹
Matthew Wilson
@diakopter
cool
Matthew Wilson
@diakopter
@basarat I'm still getting that Ctrl-m error: Conflict detected, command editor.action.rename cannot be triggered by f2 due to editor.action.renameVariable
KeybindingResolver._addKeyPress @ :4444/vs/editor/editor.main.js:59007
Basarat Ali Syed
@basarat
@diakopter resolved the conflicts as well in 2.15.0 :rose:
Matthew Wilson
@diakopter
++
Matthew Wilson
@diakopter
@basarat have you thought about integrating with https://angularclass.github.io/angular2-webpack-starter/
Matthew Wilson
@diakopter
alm isn't mentioned under "Use a TypeScript-aware editor"
James Salamon
@lorezzed
I'm trying to use monaco [https://github.com/Microsoft/monaco-editor#installing] in my webpack project but the package can't be found so this doesn't work:
import * as monaco from 'monaco-editor'
do I have to change the path, or am I going about this the wrong way?