Skip to content

Latest commit

 

History

History
107 lines (83 loc) · 6.08 KB

files.md

File metadata and controls

107 lines (83 loc) · 6.08 KB

Files Explained

  • If a repository has no license, then all rights are reserved and it is not open-source or free
  • Public repositories on GitHub are often used to share open source software
  • MIT license gives users express permission to reuse code for any purpose, sometimes even if code is part of proprietary software
    • As long as users include the original copy of the MIT license in their distribution, they can make any changes or modifications to the code to suit their own needs
    • most simple open source license agreement
  • bash shell script file
    • like batch files of Windows which can be executed in Linux or Unix
    • Bash is a Unix shell and command language which can run Shell Script files
    • scripting language commands file to be run by Unix shell
    • #!/bin/bash
      • uses Bourne Again Shell / bash
    • executing a .sh file is like writing the commands in the terminal

types.ts

  • Use a named export to export a type in TypeScript
  • The exported type can be imported by using a named import
  • Generic Types <T>
  • ??? TODO
  • indicates that the directory is the root of a TypeScript project
  • specifies the root files and the compiler options required to compile the project
  • generate tsconfig json file
  • for any node project
  • records important metadata about a project
  • defines functional attributes of a project that npm uses to install dependencies, run scripts, and identify the entry point to our package
  • generate package.json
    • npm init
    • npm install <pkg> --save
      • to install a dependency and automatically append it to your package.json's dependencies list
      • As of npm 5.0.0 (2017), installed modules are added as a dependency by default
  • automatically generated for any operations where npm modifies either the node_modules tree, or package.json

  • stores an exact, versioned dependency tree rather than using starred versioning like package.js ref

  • package.json contains only your direct dependencies, not the dependencies of your dependencies

  • dockerfile

    • Docker can build images automatically by reading the instructions from a Dockerfile
    • text document that contains all the commands a user could call on the command line to assemble an image
    • docker build .
    • FROM ref
    • ENV ref
    • WORKDIR ref



Dot Files

Other Files

  • data.json