Some base models that will help your write an express app with some of the conceptual benefits of rails.
If you are asking yourself, "Should I be using Rails instead?", the answer is yes, you should be using Rails instead. This library is mearly a shim to reduce the pain of using a limited toolset in a limited environment.
- Set up
asdfand installruby. - Set up
direnvwith an.envrcwithPATH_add bin. - Build the app with
dev build. - Boot the app with
dev up.
Install software with:
dev npm install <package-name>
- Build the project with:
npm run build
- Set up
asdfand installruby. - Set up
direnvwith an.envrcwithPATH_add bin. - Build the app with
dev build. - Boot the test service with
dev test.
- Run the tests with:
npm run test
-
Generate a new version via:
npm version patch -m "some message" # "patch" -> 1.0.0 -> 1.0.1 npm version minor -m "some message" # "minor" -> 1.0.0 -> 1.1.0 npm version major -m "some message" # "major" -> 1.0.0 -> 2.0.0
-
Deploy to npm with:
npm publish
Note that
publishrunsnpm run buildviaprepublishOnlyscript.