Coder Social home page Coder Social logo

blog's Introduction

To Clean and Install

# You'll need to use npm 14, which on m1 mac requires switching architectures
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
$env /usr/bin/arch -x86_64 /bin/zsh
arch
> i386


# Sometimes items in the public folder can cause issues. Fully remove it.
rm -r public
rm -r packages/personal-blog-lite/public
mkdir packages/personal-blog-lite/public

# fully remove yarn and node modules in case there were any preexisting
rm yarn.lock
rm yarn-error.log
rm -rf node_modules
rm package-lock.json

# puppeteer can cause mysterious issues. It's best to set its download host before doing anything, really.
PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors


# install packages
yarn install

To run locally

PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors
yarn dev

To build and deploy master branch to github

PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors
gatsby clean
yarn build
yarn deploy

Random Notes and Cruft:

in the StoryHub folder, yarn

In case building starts throwing mysterious src errors, try just reinstalling all packages, removing the public directory, and gatsby cleaning

rm yarn.lock
rm yarn-error.log
rm -rf node_modules
rm package-lock.json
yarn install

rm -r public
rm -r packages/personal-blog-lite/public
mkdir packages/personal-blog-lite/public

git clean -xdf
yarn install

gatsby clean
yarn build
gatsby serve
yarn deploy


yarn add -W gatsby-plugin-matomo

Installing Fonts

yarn dev

## Inside of personal-blog-lite
yarn preload-fonts

NOTE:

  1. puppeteer causes problem some time to fix it you may need to apply:
  • try to on/off your network connection
  • restart your device if not solve then try to run
PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors
or
sudo npm install puppeteer --unsafe-perm=true --allow-root

blog's People

Contributors

rogertangos avatar cromptone avatar cosmasken avatar

Stargazers

Hadj H. avatar

Watchers

James Cloos avatar  avatar

blog's Issues

TEST ISSUE

This is a test issue from my personal repo

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.