0.0.0 • Published 5 years ago
@pedrovitor48/reverse v0.0.0
Setup
- Make a shallow clone of this project in the desired folder, renaming it (replace
<MY_LIB_NAME>in any of the examples below for your project's name):
- Using SSH:
git clone --depth 1 git@github.com:soufantech/node-ts-lib-boilerplate.git <MY_LIB_NAME>. - Using HTTPS:
git clone --depth 1 https://github.com/soufantech/node-ts-lib-boilerplate.git <MY_LIB_NAME>.
- Step into the recently cloned project and erase the .git directory completely.
- Make the required and optional overrides as described further below.
- Create a new repository with
git initand commit your files.
Required overrides:
You must...
- update
author,repository,homepage,bugs,nameandversionfields inpackage.json. - delete or replace demo files:
rm src/index.ts src/simple-math.ts src/__tests__/simple-math.test.ts. - rewrite this
README.md(after reading it);
Optional overrides:
You might want to...
- set the
licensefield (default isUNLICENSED). You may also include aLICENSEfile on the root folder. - set the
publishConfig.accesstopublicif your package is not meant to be published as a private package. - set the
privatefield tofalsein order to publish the package. - set the
repositoryfield. - remove the
testcommand along with thejestdependency if your project is not meant to include automated tests. - run
yarn upgrade --latestto generate a freshyarn.lockand upgrade all dependencies listed in yourpackage.json. - exclude the
.npmrcfile or modify it if you're not using a SouFan NPM registry token (typicallySOUFAN_NPM_TOKEN)
In addition to package.json, you might also want to check...
- the
.npmignorefile for the files that will be ignored on publishing. - the test runner options on the
jest.config.jsfile. - the linter rules in the
eslintrc.ymlfile. - the general editor configuration on the
.editorconfigfile.
0.0.0
5 years ago