@knapsack/plugin-changelog-md 4.72.0--canary.4986.9e14d73.0 → 4.72.0--canary.5313.31d559e.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +132 -0
- package/dist/client/index.js +2750 -0
- package/package.json +15 -8
- package/rollup.config.js +108 -6
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@knapsack/plugin-changelog-md",
|
3
3
|
"description": "Add CHANGELOG.md info to Knapsack",
|
4
|
-
"version": "4.72.0--canary.
|
4
|
+
"version": "4.72.0--canary.5313.31d559e.0",
|
5
5
|
"main": "dist/server/changelog-md.js",
|
6
6
|
"module": "dist/client/changelog-page.js",
|
7
7
|
"sideEffects": false,
|
@@ -18,16 +18,23 @@
|
|
18
18
|
"start:server": "yarn build:server --watch"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@knapsack/app": "4.72.0--canary.
|
21
|
+
"@knapsack/app": "4.72.0--canary.5313.31d559e.0",
|
22
22
|
"fs-extra": "^11.2.0",
|
23
23
|
"marked": "^6.0.0"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
|
-
"@babel/cli": "^7.25.
|
27
|
-
"@
|
28
|
-
"@knapsack/
|
29
|
-
"@knapsack/eslint-config-starter": "4.72.0--canary.
|
30
|
-
"@knapsack/typescript-config-starter": "4.72.0--canary.
|
26
|
+
"@babel/cli": "^7.25.9",
|
27
|
+
"@babel/core": "^7.26.0",
|
28
|
+
"@knapsack/babel-config": "4.72.0--canary.5313.31d559e.0",
|
29
|
+
"@knapsack/eslint-config-starter": "4.72.0--canary.5313.31d559e.0",
|
30
|
+
"@knapsack/typescript-config-starter": "4.72.0--canary.5313.31d559e.0",
|
31
|
+
"@rollup/plugin-babel": "^5.3.1",
|
32
|
+
"@rollup/plugin-commonjs": "^21.1.0",
|
33
|
+
"@rollup/plugin-image": "^2.0.4",
|
34
|
+
"@rollup/plugin-json": "^4.1.0",
|
35
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
36
|
+
"@rollup/plugin-replace": "^3.1.0",
|
37
|
+
"@rollup/plugin-url": "^6.0.0",
|
31
38
|
"@types/fs-extra": "^11.0.4",
|
32
39
|
"concurrently": "^7.6.0",
|
33
40
|
"eslint": "^8.57.0",
|
@@ -48,5 +55,5 @@
|
|
48
55
|
"directory": "plugins/plugin-changelog-md",
|
49
56
|
"type": "git"
|
50
57
|
},
|
51
|
-
"gitHead": "
|
58
|
+
"gitHead": "31d559ecb396c0d66f822f42bd0256c931ad6d4c"
|
52
59
|
}
|
package/rollup.config.js
CHANGED
@@ -1,16 +1,118 @@
|
|
1
|
-
import
|
1
|
+
import commonjs from '@rollup/plugin-commonjs';
|
2
|
+
import image from '@rollup/plugin-image';
|
3
|
+
import json from '@rollup/plugin-json';
|
4
|
+
import babel from '@rollup/plugin-babel';
|
5
|
+
import resolve from '@rollup/plugin-node-resolve';
|
6
|
+
import replace from '@rollup/plugin-replace';
|
7
|
+
import url from '@rollup/plugin-url';
|
8
|
+
import { DEFAULT_EXTENSIONS } from '@babel/core';
|
2
9
|
import path from 'path';
|
3
|
-
// import pkg from './package.json';
|
4
10
|
|
5
|
-
const
|
11
|
+
const isProd = process.env.NODE_ENV === 'production';
|
12
|
+
|
13
|
+
const extensions = ['.ts', '.tsx', ...DEFAULT_EXTENSIONS];
|
14
|
+
|
15
|
+
const plugins = [
|
16
|
+
babel({
|
17
|
+
// extends: babelConfig,
|
18
|
+
extensions,
|
19
|
+
exclude: /node_modules/,
|
20
|
+
babelHelpers: 'runtime',
|
21
|
+
}),
|
22
|
+
resolve({
|
23
|
+
extensions,
|
24
|
+
}),
|
25
|
+
image(),
|
26
|
+
replace({
|
27
|
+
'process.env.NODE_ENV': JSON.stringify(
|
28
|
+
isProd ? 'production' : 'development',
|
29
|
+
),
|
30
|
+
preventAssignment: true,
|
31
|
+
}),
|
32
|
+
commonjs({
|
33
|
+
include: /node_modules/,
|
34
|
+
}),
|
35
|
+
json(),
|
36
|
+
url({
|
37
|
+
limit: Infinity,
|
38
|
+
// limit: 1000 * 30, // kb
|
39
|
+
include: [
|
40
|
+
'**/*.svg',
|
41
|
+
'**/*.png',
|
42
|
+
'**/*.jpg',
|
43
|
+
'**/*.gif',
|
44
|
+
'**/*.woff',
|
45
|
+
'**/*.woff2',
|
46
|
+
],
|
47
|
+
}),
|
48
|
+
].filter(Boolean);
|
49
|
+
plugins.forEach((plugin) => {
|
50
|
+
console.log(JSON.stringify(plugin, null, 2));
|
51
|
+
});
|
52
|
+
|
53
|
+
const client = {
|
6
54
|
input: {
|
7
55
|
index: './src/client/index.tsx',
|
8
56
|
'changelog-page': './src/client/changelog-page.tsx',
|
9
57
|
},
|
10
|
-
|
58
|
+
output: {
|
59
|
+
format: 'esm',
|
60
|
+
dir: path.join(__dirname, './dist/client'),
|
61
|
+
entryFileNames: '[name].js',
|
62
|
+
assetFileNames: 'assets/[name]-[hash][extname]',
|
63
|
+
chunkFileNames: '[name]-[hash].js',
|
64
|
+
globals: {},
|
65
|
+
preferConst: true,
|
66
|
+
},
|
67
|
+
context: 'window',
|
11
68
|
external: [],
|
12
|
-
|
13
|
-
|
69
|
+
watch: { include: ['./src/**'], clearScreen: false },
|
70
|
+
plugins: [
|
71
|
+
babel({
|
72
|
+
// extends: babelConfig,
|
73
|
+
extensions,
|
74
|
+
exclude: /node_modules/,
|
75
|
+
babelHelpers: 'runtime',
|
76
|
+
}),
|
77
|
+
resolve({
|
78
|
+
extensions,
|
79
|
+
}),
|
80
|
+
image(),
|
81
|
+
replace({
|
82
|
+
'process.env.NODE_ENV': JSON.stringify(
|
83
|
+
isProd ? 'production' : 'development',
|
84
|
+
),
|
85
|
+
preventAssignment: true,
|
86
|
+
}),
|
87
|
+
commonjs({
|
88
|
+
include: /node_modules/,
|
89
|
+
}),
|
90
|
+
json(),
|
91
|
+
url({
|
92
|
+
limit: Infinity,
|
93
|
+
// limit: 1000 * 30, // kb
|
94
|
+
include: [
|
95
|
+
'**/*.svg',
|
96
|
+
'**/*.png',
|
97
|
+
'**/*.jpg',
|
98
|
+
'**/*.gif',
|
99
|
+
'**/*.woff',
|
100
|
+
'**/*.woff2',
|
101
|
+
],
|
102
|
+
}),
|
103
|
+
].filter(Boolean),
|
104
|
+
onwarn(warning) {
|
105
|
+
// Skip certain warnings
|
106
|
+
|
107
|
+
// should intercept ... but doesn't in some rollup versions
|
108
|
+
if (warning.code === 'THIS_IS_UNDEFINED') {
|
109
|
+
return;
|
110
|
+
}
|
111
|
+
|
112
|
+
// console.warn everything else
|
113
|
+
console.warn(warning.message);
|
114
|
+
},
|
115
|
+
};
|
14
116
|
|
15
117
|
// const server = createRollupConfig({
|
16
118
|
// input: './src/changelog-md.ts',
|