-
Notifications
You must be signed in to change notification settings - Fork 31
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
Enabling AirBnB lint, folder reorganization, webpack configuration enhanced, empowered npm scripts and TEMPO function #9
base: master
Are you sure you want to change the base?
Conversation
Turning AirBNB lint and Babel on Webpack DEV enhanced Tempo function draft
Hashes with expiration date (2 days) Reorganization of files
Can this PR be broken down into more logical chunks? It's a bit overwhelming to review everything and the sheer amount of changes is making it fragile and prone to merge conflicts. |
Sorry, I got a bit too excited about this, here's a detailed explanation about every commit: Code Reorganization567a944, a3ab7de and 380e9f3 are no significant changes, just organizing the code in folders:
6c39ea5 I noticed slang.ohm and slang-grammar.js are the same file, I guess you use the OHM file to edit, then copy the changes to the JS file to import them with Webpack. Well, there's a plugin we can use to import the OHM file as a string. No duplication needed anymore. A new 'tempo' function97e2bb5 That's my first contribution: a new 'tempo' function, so we can set the bpm. This was previously a fixed value of 120 bpm. It affects all of the following play functions so we can do this:
AirBnB Lintingb552b62 and 6d0771c I noticed you have AirBnB Lint on your package.json but it was not being imported on your .eslint file, these commits include the import and a lot of linting. Enpowering NPM Scripts6d30086 There were just 2 npm scripts on the package.json: Webpack compile/watch and productive build. I guess you run a custom server locally to test and dev, so I added some commands to start an express server, lint, Webpack compile and watch... everything with 6c5967c /dist is now generated at Fixing bugs generated by the Lint1652816, dfd32d7 and c15f9f2 As you may know, AirBnB Lint is very strict, there were a few errors caused by my initial lint (sorry about that), these 3 commits just resolve the previous issues. Express/Mongo features9e58339 While I was working, there was a new commit on the main repo, adding save features using express and mongodb. This commit is just a copy-paste of those files. I didn't have time to integrate the changes properly. 85d3626 and d044fe8 Now I've got some time... as I already had an express server that runs (and watches) the compiled Webpack scripts, I just needed to integrate the save functions on that server... also, added a few improvements:
Still pendingI still have pending to organize dependencies and devDependencies on the package.json, if I recall right, express and its tools are devDependencies on my repo... I thought the Slang Language was the final product, but I'm starting to think it's the editor, so they may need to be listed as dependency. |
Hey @thefzn, sorry for the delay, I didn't expect this project to have quite so much visibility 😅 I really appreciate your enthusiasm and there are some cool ideas here, but this is too much code for me to consider merging. I also want to apologize, I intend to put a I really like pulling the Ohm file in using a webpack plugin, and I like the idea of a tempo syntax, generally speaking. Separately from this PR I'd want to think through the tempo syntax itself and see if there are other options that have different affordances. Basically I want to understand how different options would impact the experience of making music in Slang, which keeps in line with how I've been approaching this project. On the other hand, I'm not interested in rearranging all of the code 😄. The way you've organized it is just as opinionated as the way I've organized it; this is how most of my projects are set up right now, and part of that has to do with how my VPS is set up with nginx, etc. Just personal preference. All of that said, you are an absolute machine and I don't want to stop you from having fun with this, so I'd encourage you to keep going on your own fork, see where it takes you, and share back whatever wild stuff you come up with! As far as contributing goes, it would be great to move some discussion into issues — maybe one for the tempo syntax, to start. I would also definitely accept 6c39ea5 as its own PR. Cheers 🍻 |
I'll definitively continue this project on my fork but I also want to contribute! Everything sounds reasonable, I'm still very excited about this! I'll create a separate fork to contribute here as soon as I have some free time. By the way, this project was featured at October 2nd's issue on this eMagazine called eWebDesign. |
This is a followup to the failed pull request.
Same updates, bugs fixed, latest updates integrated. Although, MongoDB is crashing while saving... even before integrating with my dev server.
Cheers!