Last active
May 31, 2018 21:51
-
-
Save Falieson/39fbe26679342a0ab0133a0d2f9724c3 to your computer and use it in GitHub Desktop.
S5. F01. Init NPM & disable package-lock (ARTICLE: TS-Module w/ Declarations (Part 1/4))
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### TS-Module w/ Declarations (Part 1/4) | |
# http://TGRstack.com/#ts-module_articles_part-1 | |
# Init NPM, npmrc, npmignore (Section 5. Figure 01.) | |
# Also, disable package-lock.json | |
### | |
falieson:./ts-module/$ npm init -y | |
falieson:./ts-module/$ echo "node_modules/" >> ".gitignore" # 1 | |
falieson:./ts-module/$ echo "package-lock.json" >> ".gitignore" # 2 | |
falieson:./ts-module/$ echo "package-lock=false" >> ".npmrc" # 3 | |
falieson:./ts-module/$ echo "save-exact=true" >> ".npmrc" # 4 | |
falieson:./ts-module/$ echo -e "src/\ntsconfig.json" >> ".npmignore" # 5 | |
falieson:./ts-module/$ npm i -D ts-node typescript rimraf # 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### TS-Module w/ Declarations (Part 1/4) | |
# http://TGRstack.com/#ts-module_articles_part-1 | |
# Helper for (Section 5. Figure 01.) | |
# copy paste the below starting with && and hit enter | |
### | |
falieson:./ts-module/$ && | |
npm init -y && | |
echo "node_modules/" >> ".gitignore" && # 1 | |
echo "package-lock.json" >> ".gitignore" && # 2 | |
echo "package-lock=false" >> ".npmrc" && # 3 | |
echo "save-exact=true" >> ".npmrc" && # 4 | |
echo -e "src/\ntsconfig.json" >> ".npmignore" && # 5 | |
npm i -D ts-node typescript rimraf # 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment