@bouzuya/create-version-module
v1.0.1
Published
version module generator
Downloads
15
Readme
@bouzuya/create-version-module
version module generator
Usage
npm init @bouzuya/version-module src/version.js
or
npx @bouzuya/create-version-module src/version.js
See help.
npx @bouzuya/create-version-module --help
Example
$ cat package.json
{ "version": "0.1.0" }
$ # npx @bouzuya/create-version-module --no-comment src/version.js
$ npm init @bouzuya/version-module --no-comment src/version.js
$ cat src/version.js
const version = '0.1.0';
export { version };
$ # supported languages: JavaScript, PureScript, TypeScript
$ npm init @bouzuya/version-module --language PureScript --no-comment src/version.purs
$ cat src/version.purs
module Version
( version
) where
version :: String
version = "0.1.0"
How to build
npm install