Jermolene/TiddlyWiki5 — pull request #1003 by pmario (2014-10-22 08:41:39+00:00)
Title: Os agnostic scripts for the rest of us

This is the first pass for OS agnostic scripts, that are available out of the box, if a developer clones the TW repo.

These extensions enable the following commands:

```
npm start
or
npm run start ... Will start tw5.com-server edition with minimum set of default parameters
npm run test .... Will run the test suite and create ./output/test.html
npm run serve ... With the default settings it will run the server with all possible parameters
npm run build ... Will run a full build and save to ./output
```

There are 2 new CLI commands: `--npmserve` and `--npmbuild` they basically display help text
There are 2 new help commands: `node tiddlywiki.js --help npmbuild` and `node tiddlywiki.js --help npmserve`

As npm can deal with a "per user" configuration that is OS agnostic, it is possible to create user specific settings for npmbuild and npmserve.

eg: If I want to work with the german edition I can set the parameters with:

```
npm config set tiddlywiki:serve_edition ./editions/de-AT-server
npm config set tiddlywiki:serve_port 9090
```

If I want to build a special edition I use:

```
npm config set tiddlywiki:build_edition ./editions/de-AT
```

The next time I use `npm run serve` or `npm run build`, these settings are used.

The settings are stored in `C:\\Users\\\\.npmrc` or `~/.npmrc`.

So its also possible to set user specific passwords, that can not be accessed by other users. (At least for unix systems : )

Help for npm config can be found at: https://www.npmjs.org/doc/cli/npm-config.html

@natecain .. what do you think?
@Jermolene also see: https://groups.google.com/forum/#!topic/tiddlywikidev/hr3uoihQXYE