Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

⚫ Stores tarballs for local development.

License

NotificationsYou must be signed in to change notification settings

ORESoftware/tarballs

Repository files navigation

This project is used by:https://github.com/oresoftware/ts-projectYou can use ts-project to do things more automatically.

To do things more manually, continue on.

Steps to making this project skeleton your own project base.

  1. Clone this repo:
    git clone https://github.com/ORESoftware/typescript-library-skeleton.git YOUR-PROJECT-NAME
  2. Update package.json so thatname property matchesYOUR-PROJECT-NAME.
  3. Update other package.json fields so that they are accurate.

To check to see ifYOUR-PROJECT-NAME is available on NPM, uses this command at the command line:

$ npm view YOUR-PROJECT-NAME # will give you a 404 if the name is available.

This project skeleton uses:

  • the correct semver initial value (npm init defaults to 1.0.0 which is just wrong).
  • typescript 2.x
  • nodejs version 9
  • travis (for automated testing of your library)
  • MIT license
  • good simple default settings for .gitignore / .npmignore / .editorconfig / .gitattributes
  • Transpiling from src to dist folders (by default, you can change it manually)

To transpile files in place, instead of tranpiling from'src' to'dist':


update tsconfig.json (remove the `outDir` line):
"compilerOptions": {"outDir":"dist"    }

For small projects with just one .ts/.js file, you can just get rid of the src/lib folder, and put your index.tsfile in the root of the project. In that case, make sure to change themain property in package.json from 'lib/index.js' to'index.js'. Same with thetypings/types properties.

About

⚫ Stores tarballs for local development.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp