c0d3
v2.3.4
Published
Command Line Interface (CLI) for c0d3.com
Downloads
36
Readme
Installation
$ npm install --global c0d3Login
$ c0d3 login | lSubmit
$ c0d3 submit | sLogout
$ c0d3 logoutVersion
$ c0d3 --version | -VHelp Menu
$ c0d3 helpContributing
CLI 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)
}Publishing
- 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
License
MIT
