generated from corysanin/nodejs-web-template
tooling for browser js
This commit is contained in:
@@ -5,4 +5,5 @@ assets/css/
|
||||
assets/js/
|
||||
assets/images/webp/
|
||||
assets/images/avif/
|
||||
scripts/*.js
|
||||
docker-compose.yml
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -108,3 +108,4 @@ assets/js/
|
||||
assets/webp/
|
||||
config/
|
||||
distribution/
|
||||
scripts/*.js
|
||||
|
@@ -12,7 +12,7 @@ RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npx tsc && npm run-script build && \
|
||||
RUN npm run-script tsc && npm run-script build && \
|
||||
npm ci --only=production && \
|
||||
ln -sf /usr/share/fonts assets/ && \
|
||||
chown -R node .
|
||||
|
22
package-lock.json
generated
22
package-lock.json
generated
@@ -18,7 +18,7 @@
|
||||
"@sindresorhus/tsconfig": "8.0.1",
|
||||
"@types/express": "^5.0.3",
|
||||
"@types/node": "^24.7.0",
|
||||
"forking-build-shit": "1.0.4",
|
||||
"forking-build-shit": "1.0.5",
|
||||
"typescript": "5.9.3"
|
||||
}
|
||||
},
|
||||
@@ -864,14 +864,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/forking-build-shit": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/forking-build-shit/-/forking-build-shit-1.0.4.tgz",
|
||||
"integrity": "sha512-pknWCgvJWSkP30sMllWzFxJhjFtXCRuILgYT1N7pJLAyI/SXQ0RXyhTcg+hjCnKaH4aVpxWUFUF2afwTDRO6RA==",
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/forking-build-shit/-/forking-build-shit-1.0.5.tgz",
|
||||
"integrity": "sha512-b9HVQF1f2qXkgB+yTJe3U2kLfggvbUZjU1aqljI0E8O+sxo+cQH/HsyMGdHNPaUoMgSe/qfOsL6CPumu0jrrdg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"csso": "5.0.5",
|
||||
"sass": "1.90.0",
|
||||
"sass": "1.93.2",
|
||||
"uglify-js": "3.19.3"
|
||||
},
|
||||
"bin": {
|
||||
@@ -1017,9 +1017,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/immutable": {
|
||||
"version": "5.1.3",
|
||||
"resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.3.tgz",
|
||||
"integrity": "sha512-+chQdDfvscSF1SJqv2gn4SRO2ZyS3xL3r7IW/wWEEzrzLisnOlKiQu5ytC/BVNcS15C39WT2Hg/bjKjDMcu+zg==",
|
||||
"version": "5.1.4",
|
||||
"resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.4.tgz",
|
||||
"integrity": "sha512-p6u1bG3YSnINT5RQmx/yRZBpenIl30kVxkTLDyHLIMk0gict704Q9n+thfDI7lTRm9vXdDYutVzXhzcThxTnXA==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
@@ -1426,9 +1426,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/sass": {
|
||||
"version": "1.90.0",
|
||||
"resolved": "https://registry.npmjs.org/sass/-/sass-1.90.0.tgz",
|
||||
"integrity": "sha512-9GUyuksjw70uNpb1MTYWsH9MQHOHY6kwfnkafC24+7aOMZn9+rVMBxRbLvw756mrBFbIsFg6Xw9IkR2Fnn3k+Q==",
|
||||
"version": "1.93.2",
|
||||
"resolved": "https://registry.npmjs.org/sass/-/sass-1.93.2.tgz",
|
||||
"integrity": "sha512-t+YPtOQHpGW1QWsh1CHQ5cPIr9lbbGZLZnbihP/D/qZj/yuV68m8qarcV17nvkOX81BCrvzAlq2klCQFZghyTg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@@ -33,11 +33,12 @@
|
||||
"@sindresorhus/tsconfig": "8.0.1",
|
||||
"@types/express": "^5.0.3",
|
||||
"@types/node": "^24.7.0",
|
||||
"forking-build-shit": "1.0.4",
|
||||
"forking-build-shit": "1.0.5",
|
||||
"typescript": "5.9.3"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npx build-shit",
|
||||
"watch": "npx build-shit --watch"
|
||||
"tsc": "tsc && tsc -p tsconfig.web.json",
|
||||
"build": "build-shit",
|
||||
"watch": "build-shit --watch"
|
||||
}
|
||||
}
|
1
scripts/content.ts
Normal file
1
scripts/content.ts
Normal file
@@ -0,0 +1 @@
|
||||
|
1
scripts/service-worker.ts
Normal file
1
scripts/service-worker.ts
Normal file
@@ -0,0 +1 @@
|
||||
|
26
tsconfig.web.json
Normal file
26
tsconfig.web.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "ES2020",
|
||||
"moduleResolution": "bundler",
|
||||
"lib": [
|
||||
"DOM",
|
||||
"DOM.Iterable",
|
||||
"ES2020"
|
||||
],
|
||||
"outDir": "scripts",
|
||||
"rootDir": "scripts",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"skipLibCheck": true,
|
||||
"allowJs": false,
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
"include": [
|
||||
"scripts/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user