Skip to content
Template repo for npm-packages
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
npm.conf
package-lock.json
package.json

README.md

Steps to make your own NPM package.

  1. Copy this npm-template and rename it to something you like.
  2. Add a new job under npm in Jenkins. Copy an existing npm job like npm-template, Name it to the same name as your repository.
  3. Under configuration in the new job change Git URL and Git repo-name.
  4. Add the build to Travis CI
  5. Remove this orderd list from your README.md and update the stuff below with your package information.
  6. 💥 🎉 Happy Coding!

Publishing to npm is now automatic. Every time you push Evolene will run npm run-script build. After that Evolene will check to see if the version in package.json is newer then on npm.com. If so, a new version is published to npm.

Reminder: If you forget to update the version Evolene will run npm run-script build, but without publishing to the registy.

NPM Template alt text

NPM: https://www.npmjs.com/package/@kth/npm-template

How to use

const package = require("npm-template");

if (package.isWorking()) {
  console.log("Hello World!");
}

Run tests

npm build ## Does npm install and npm test

You can also view the tests at https://travis-ci.org/KTH/npm-template

Output from tests


Type of tests header
   ✓ When running tests, expect it to always return 'true'.

You can’t perform that action at this time.