@atomicsmash/compiler 0.6.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -6
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -107,11 +107,11 @@ const compiler = webpack({
|
|
|
107
107
|
? [`${srcFolder}/blocks/**/block.json.ts`]
|
|
108
108
|
: []),
|
|
109
109
|
// Parse all direct children of the JS folder, as long as they are JS & TS files
|
|
110
|
-
`${srcFolder}/
|
|
110
|
+
`${srcFolder}/scripts/*.{js,ts,jsx,tsx}`,
|
|
111
111
|
// Parse all direct children of the CSS folder, as long as they are CSS files
|
|
112
|
-
`${srcFolder}/
|
|
112
|
+
`${srcFolder}/styles/*.css`,
|
|
113
113
|
// Parse all nested children of the CSS folder, as long as they are non-partial SCSS files
|
|
114
|
-
`${srcFolder}/
|
|
114
|
+
`${srcFolder}/styles/**/[^_]*.s[ac]ss`,
|
|
115
115
|
], {
|
|
116
116
|
ignore: argv.experimentalBlocksSupport
|
|
117
117
|
? argv.excludeBlocks.map((blockName) => `${srcFolder}/blocks/**/${blockName}/block.json.ts`)
|
|
@@ -125,7 +125,7 @@ const compiler = webpack({
|
|
|
125
125
|
entryPoints[entryName] = {
|
|
126
126
|
import: path,
|
|
127
127
|
// Output filenames with content hash for fingerprinting
|
|
128
|
-
filename: `${path.replace(`${srcFolder}${pathSeparator}`, "").replace(extname(path), "")}${MODE === "production" ? `.[contenthash]` : ""}.js`,
|
|
128
|
+
filename: `${path.replace(`${srcFolder}${pathSeparator}`, "").replace(extname(path), "").replace("scripts/", "js/")}${MODE === "production" ? `.[contenthash]` : ""}.js`,
|
|
129
129
|
};
|
|
130
130
|
});
|
|
131
131
|
return entryPoints;
|
|
@@ -200,7 +200,9 @@ const compiler = webpack({
|
|
|
200
200
|
type: "asset/resource",
|
|
201
201
|
generator: {
|
|
202
202
|
binary: false,
|
|
203
|
-
filename: (pathData) => relative(srcFolder, pathData.filename ?? "")
|
|
203
|
+
filename: (pathData) => relative(srcFolder, pathData.filename ?? "")
|
|
204
|
+
.replace(".scss", ".[contenthash].css")
|
|
205
|
+
.replace("styles/", "css/"),
|
|
204
206
|
},
|
|
205
207
|
use: [
|
|
206
208
|
{
|
|
@@ -227,7 +229,9 @@ const compiler = webpack({
|
|
|
227
229
|
type: "asset/resource",
|
|
228
230
|
generator: {
|
|
229
231
|
binary: false,
|
|
230
|
-
filename: (pathData) => relative(srcFolder, pathData.filename ?? "")
|
|
232
|
+
filename: (pathData) => relative(srcFolder, pathData.filename ?? "")
|
|
233
|
+
.replace(".css", ".[contenthash].css")
|
|
234
|
+
.replace("styles/", "css/"),
|
|
231
235
|
},
|
|
232
236
|
use: [
|
|
233
237
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomicsmash/compiler",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"description": "A universal compiler for all Atomic Smash projects.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"cli",
|
|
@@ -75,5 +75,8 @@
|
|
|
75
75
|
"@types/yargs": "^17.0.33",
|
|
76
76
|
"tailwindcss": "^4.0.9",
|
|
77
77
|
"vue-loader": "^17.4.2"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": "^20 || >=22"
|
|
78
81
|
}
|
|
79
82
|
}
|