Giter Site home page Giter Site logo

jamesjnadeau.com's Introduction

My personal website

http://jamesjnadeau.com

This is a first draft site generator created with webpack. I originally committed to making my content in markedown with a custom header used in PHP's PicoCMS.

npm install / node_modules note

TLDR;

  1. use yarn add --ignore-scripts --save to add a new package.
  2. run yarn --force --build-from-source to rebuild the package for your particular architecture/machine
  3. check with git status to see if the rebuild added any new files
  4. Add anything built to .gitignore
  5. Dev.

Because npm has proven itself to be an unreliable resource, all of node_modules is now included in git. This has a bunch of advantages and only one minor drawback: The initial download of the repo is larger.

The advantages:

  • faster builds
  • don't need npm, or an Internet connection to build docker anymore
  • dependencies are actually tracked. You can review the changes to those dependencies over time alongside your code
  • This repo is future proof, if npm goes away, we don't have to skip a beat.

credit to the oldest post mentioning this I can find: http://www.letscodejavascript.com/v3/blog/2014/03/the_npm_debacle#how-to-do-it

also mentioned as a best practice in a note here: https://keymetrics.io/2014/06/25/ecosystem-json-deploy-and-iterate-faster/#setup

jamesjnadeau.com's People

Contributors

jamesjnadeau avatar renovate-bot avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.