0.0.2 • Published 7 years ago

adc-hd-wallet v0.0.2

Weekly downloads
10
License
SEE LICENSE IN LI...
Repository
gitlab
Last release
7 years ago

TODO

  • Add CI configuration.
  • Not clear yet whether package.json is complete (see also Specifics of npm's package.json handling):
    • Does it make sense to compile everything into a single JS file (this would also affect tsconfig.json)?
    • Do we need to list all files that should go into the package?
  • Add API documentation.
  • Add instructions how to use node modules under development with npm link.
  • Review tslint.json (probably needs adjustments during development) and create one for release builds (see TODOs in tslint.json).
  • Sometimes, .js files show up in the root (index.js) and the src and spec trees. However, they should only appear in the dist tree. I haven't yet found out how this happens. It may be an artifact of my WebStorm configuration.
  • Select a license and add to package.json/LICENSE.md.
  • Possibly exclude the tests from the module. They should be excluded through .npmignore, but according to this, .npmignore doesn't ignore files that are listed in the files option in package.json, even though it should. A

Package Structure and Usage

  • index.ts, src: Published sources. The index.ts in the root folder seems to be required, and it seems to make sense to use it as the main entry point.
  • spec: Tests. This is the default location for Jasmine.
  • dist: Build artifacts.
  • Notes to the script commands in package.json:
    • Run the commands with npm run <command>. (npm run test can be abbreviated to npm test.)
    • lint: Run a TypeScript linter.
    • build-debug: Run a debug build.
    • build-debug-watch: Watch for changes and continuously build.
    • build-release: Run a release build.
    • test-only: Run only the tests.
    • watch: Alias for build-debug-watch.
    • clean: Delete build artifacts.
    • build: Standard build command (runs a release build).
    • pretest: Standard command that runs before test. Runs lint.
    • test: Standard test command (runs lint through pretest and test-only).
    • prepublish: Standard command that runs before publish. Runs build (a release build).

Installation Notes

  • At least on Windows, node modules that install executables (for example cordova, ionic, tsc, tslint, jasmine, alm, babel, gulp-cli, yo) must be installed globally, possibly in addition to be installed locally. The executable that is run is only the one from the global installation (on a typical Windows installation, these are in %APPDATA%\npm). I don't think a local installation even installs the required Windows executables (typically .cmd scripts).

    I don't know how this works on OS X. There seem to be Linux-style executable scripts in
    the bin directories of local installations, but they don't seem to be on the path.

    The dev dependencies of this project that install executables and that need to be installed globally are listed below; all of them are used across multiple of our projects:

    • typescript (installs tsc)
    • tslint
    • jasmine
    • jasmine-ts
    • trash-cli

Notes for Creating TypeScript Node Modules

0.0.2

7 years ago

0.0.1

7 years ago