This is the source resource of official website CPFilter.com.
GitHub page: https://shaoanlin.github.io/cpfilter/
Push to the github repository:
git push origin master
Push to the web hosting server:
git-ftp push
Use Browser Sync to visualize website locally.
browser-sync start --server --directory --files "**/*"
Reuse component with ReactJS. The JS file ~/js/header.js is generated from ~/src/header.jsx. The JS scripts could be comiled by the Babel shell command.
./node_modules/.bin/babel src --out-dir js
Used to manage the JavaScript third party libraries. See ~/js/main.js and ~/js/main-<page>.js
Use SASS/SCSS to organize CSS files. Convert ~/stylesheets/sass/styles.scss to ~/stylesheets/theme.min.css.
You could use Tools like Prepros to do the preprocessing.
Use npm to manage the installed packages.
npm ls package-name
Fix vulnerable npm packages.
npm audit fix