# hello-javascript **Repository Path**: mirrors_nolanlawson/hello-javascript ## Basic Information - **Project Name**: hello-javascript - **Description**: Demo of a JavaScript module that supports many publishing options - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2026-04-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README hello-javascript ==== A simple JavaScript module that demonstrates how to write a JavaScript library that can be published in various formats (AMD, UMD, CommonJS, ES6 modules, globals) and to various repositories (npm, Bower, jspm). All this module does is export a function that prints out `"hello javascript!"`. Instructions for module authors ---- ### Building `npm run build` or `yarn build` will build the Node-ready and browser-ready versions, which are written to the `dist-node` and `dist` directories. ### Publishing First, run `npm run build`, then `git commit` the built files. (Yes, we're checking the built files into Git for the benefit of Github and Bower.) Then do `npm version patch|minor|major` to create the npm version as well as the Git tag. Then `git push origin master --tags`, run `npm publish`, and you're good to go! For Bower, you will also need to register your module using the [steps described here](http://bower.io/docs/creating-packages/). Instructions for module users --- _Module authors: copy-paste these instructions when you publish. This module is not actually published anywhere._ You can install this module in a variety of ways: ### npm On the command line, run: ``` npm install hello-javascript ``` Or for yarn: ``` yarn add hello-javascript ``` Then you can build with Browserify/Webpack using `require('hello-javascript')`, or you can include it directly as a `