-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·25 lines (25 loc) · 1.12 KB
/
setup.sh
File metadata and controls
executable file
·25 lines (25 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
mkdir -p {css,html,js,img,fonts}
cd css && mkdir {styles,scripts}
cd scripts && touch imports.js critical.js postcss.config.js && cd ..
cd styles && mkdir {base,config,objects,globals,components,utilities,pages}
touch imports.css
cd base && touch defaults.css normalize.css typography.css && cd ..
cd components && touch component.css && cd ..
cd config && touch mixins.css functions.css variables.css && cd ..
cd globals && touch global.css && cd ..
cd objects && touch object.css && cd ..
cd pages && touch page.css && cd ..
cd utilities && touch utility.css && cd ..
cd ../..
cd js && touch scripts.js && echo "console.log('scripts.js is working');" > scripts.js && cd ..
cd html && mkdir -p {pages,templates}
cd templates && mkdir -p {views,components}
cd views && touch index.html
cd ../../..
touch README.md
npm init -y
npm i -D postcss postcss-cli postcss-load-config postcss-import postcss-preset-env purgecss critical stylelint stylelint-config-rational-order stylelint-config-standard cssnano autoprefixer browser-sync npm-run-all onchange
git init
touch .gitignore
echo "node_modules/" > .gitignore
echo "**/.DS_Store" > .gitignore