Skip to content

Commit

Permalink
parcel-reporter-static-files-copy
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuj committed Jan 20, 2025
1 parent d9cfa0a commit d17857b
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .parcelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["@parcel/config-default"],
"reporters": ["...", "parcel-reporter-static-files-copy"]
}
23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 18 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"private": true,
"description": "Boilerplate for Advanced HTML/CSS Tools UOC students",
"scripts": {
"parcel:serve": "parcel -p 8123 --target web --open",
"parcel:build": "parcel build --target web --no-source-maps --no-cache",
"parcel:deploy": "parcel build --target web --no-source-maps --no-cache --public-url https://rbuj-uoc.github.io/M4.258-PAC1/",
"parcel:serve": "NODE_ENV=development parcel -p 8123 --target web --open",
"parcel:build": "NODE_ENV=production parcel build --target web --no-source-maps --no-cache",
"parcel:deploy": "NODE_ENV=production parcel build --target web --no-source-maps --no-cache --public-url /M4.258-PAC1/",
"clean": "rimraf dist .cache .cache-loader .parcel-cache",
"dev": "npm-run-all clean parcel:serve",
"build": "npm-run-all clean parcel:build",
Expand All @@ -27,6 +27,20 @@
}
}
},
"staticFiles": [
{
"staticPath": "src/robots.txt",
"env": {
"NODE_ENV": "development"
}
},
{
"staticPath": "src/humans.txt",
"env": {
"NODE_ENV": "development"
}
}
],
"repository": {
"type": "git",
"url": "git+https://github.com/uoc-advanced-html-css/uoc-boilerplate.git"
Expand Down Expand Up @@ -58,6 +72,7 @@
"lint-staged": "^15.4.1",
"npm-run-all": "^4.1.5",
"parcel": "^2.13.3",
"parcel-reporter-static-files-copy": "^1.5.3",
"postcss": "^8.5.1",
"postcss-preset-env": "^10.1.3",
"posthtml-include": "^2.0.1",
Expand Down
5 changes: 4 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash
npm install --save @fortawesome/fontawesome-free
npm install --save normalize-scss
npm i -D tailwindcss postcss

npm install --save-dev tailwindcss postcss

npm install --save-dev parcel-reporter-static-files-copy

npm install --save-dev \
stylelint\
Expand Down
1 change: 1 addition & 0 deletions src/humans.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PAC 3 de l'assigatura eines HTML i CSS II del màster de desenvolupament d'aplicacions web.
2 changes: 2 additions & 0 deletions src/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /

0 comments on commit d17857b

Please sign in to comment.