A command line tool for c0d3.com challenge submissions.
Installation | Login | Submit | Logout | Contributing | License
$ npm install --global c0d3 $ c0d3 login | l $ c0d3 submit | s $ c0d3 logout $ c0d3 --version | -V $ c0d3 helpCLI options:
-
c0d3 submit:
--url "http://YOUR_DEV_SERVER"To point to another graphQL endpoint--debug | -dTo use a test account token instead of you personnal account
-
c0d3 login:
--url "http://YOUR_DEV_SERVER"To point to another graphQL endpoint
Paradigme:
- Error handeling: For a sweet user experience do not throw raw error instead throw a comprehensible message.
try {
// ...code
} catch {
throw new Error(MY_USER_FRIENDLY_MESSAGE)
}- Update
package.jsonversion. - run
npm run build - Publish!
npm publish
Must be done in the order above (specifically, build then publish) because build produces a package.json inside the dist folder, which is used for upgrade checks
MIT