Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jnpm-generator

juji148Apache2deprecated0.0.38

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

simple npm project generator utils

npm, project, generator

readme

jnpm-generator

Is a simple npm project generator. Just a lazy way to start npm project.

For CLI or module projects

  • Install your selected npm dependencies
  • create your "main" js file
  • create README.md with initial content
  • Automatically initialize git, and add remote 'origin' read from package.json
  • Do initial commit and push

usage

jnpm init

# install npm modules
# create "main" script read from package.json
# create README.md
# initialize git
# add new 'origin' read from package.json
# create .gitignore file with "node_modules/*"
# do initial commit and push.

Publising to NPM?

jnpm publish # or
jnpm publish "commit message"

# increment version number in package.json
# git add .
# git commit -am "your message"
# git push
# npm publish

the rest of the commands, you can actually do with jgit

add and commit

jnpm commit  # or
jnpm commit "commit message"

# git add .
# git commit -am "your message"

add, commit and push

jnpm push  # or
jnpm push "commit message"

# git add .
# git commit -am "your message"
# git push

view help

jnpm help

install

sudo npm install -g jnpm-generator

Directory Structure

.
+--    .gitignore
+--    package.json
+-- .git
|    +--    config
|    +-- *otherGitStuff*
+-- index.js
+-- README.md