This library is primarily used by "types-depot" projects. See: https://github.com/ORESoftware/types-depot
This project is used by:
https://github.com/oresoftware/ts-project
You 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.
git clone https://github.com/ORESoftware/type-creator.git YOUR-PROJECT-NAME
name
property matches YOUR-PROJECT-NAME
.To check to see if YOUR-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.
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.ts
file in the root of the project. In that case, make sure to change the main
property in package.json from ‘lib/index.js’ to
‘index.js’. Same with the typings/types
properties.