diff --git a/.parcelrc b/.parcelrc new file mode 100644 index 0000000..1f3df89 --- /dev/null +++ b/.parcelrc @@ -0,0 +1,4 @@ +{ + "extends": ["@parcel/config-default"], + "reporters": ["...", "parcel-reporter-static-files-copy"] +} diff --git a/package-lock.json b/package-lock.json index 2ea4e11..c274257 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,6 +30,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", @@ -8759,6 +8760,19 @@ "url": "https://opencollective.com/parcel" } }, + "node_modules/parcel-reporter-static-files-copy": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/parcel-reporter-static-files-copy/-/parcel-reporter-static-files-copy-1.5.3.tgz", + "integrity": "sha512-Ukq2SyJYn3GFIPCLamXuQ+2t+0j54llujjOUoRjtmVvfsuGnJDEpMznADeIoKuQDvy0jpxtWzWkQvxqI/j+U4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@parcel/plugin": "^2.0.0-beta.1" + }, + "engines": { + "parcel": "^2.0.0-beta.1" + } + }, "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -17084,6 +17098,15 @@ "get-port": "^4.2.0" } }, + "parcel-reporter-static-files-copy": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/parcel-reporter-static-files-copy/-/parcel-reporter-static-files-copy-1.5.3.tgz", + "integrity": "sha512-Ukq2SyJYn3GFIPCLamXuQ+2t+0j54llujjOUoRjtmVvfsuGnJDEpMznADeIoKuQDvy0jpxtWzWkQvxqI/j+U4A==", + "dev": true, + "requires": { + "@parcel/plugin": "^2.0.0-beta.1" + } + }, "parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", diff --git a/package.json b/package.json index ecb8a1a..8444ed9 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" @@ -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", diff --git a/setup.sh b/setup.sh index 809f636..1cbdbba 100755 --- a/setup.sh +++ b/setup.sh @@ -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\ diff --git a/src/humans.txt b/src/humans.txt new file mode 100644 index 0000000..26f1ac3 --- /dev/null +++ b/src/humans.txt @@ -0,0 +1 @@ +PAC 3 de l'assigatura eines HTML i CSS II del màster de desenvolupament d'aplicacions web. diff --git a/src/robots.txt b/src/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/src/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /