firstly 0.0.2 → 0.0.3
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/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/esm/auth/index.js +3 -2
- package/esm/bin/cmd.js +12 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# firstly
|
|
2
2
|
|
|
3
|
+
## 0.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`aab33e7`](https://github.com/jycouet/firstly/commit/aab33e7681b06c8336c263471a87b97cc6186c6e)
|
|
8
|
+
Thanks [@jycouet](https://github.com/jycouet)! - deploy ui in package (test!)
|
|
9
|
+
|
|
3
10
|
## 0.0.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
## 📖 Read the doc
|
|
7
7
|
|
|
8
|
-
[](https://firstly.fun)
|
|
9
9
|
|
|
10
10
|
## ⭐️ Join us
|
|
11
11
|
|
package/esm/auth/index.js
CHANGED
|
@@ -128,10 +128,11 @@ export const auth = (o) => {
|
|
|
128
128
|
redirect(302, oSafe.redirectUrl);
|
|
129
129
|
}
|
|
130
130
|
if (event.url.pathname.startsWith(oSafe.firstlyData.props.ui.paths.base)) {
|
|
131
|
+
const content = read('src/lib/auth/static/index.html') ??
|
|
132
|
+
read('node_modules/firstly/esm/auth/static/index.html');
|
|
131
133
|
return {
|
|
132
134
|
early: true,
|
|
133
|
-
resolve: new Response(
|
|
134
|
-
`<script>const firstlyData = ${JSON.stringify(oSafe.firstlyData)}</script>`, {
|
|
135
|
+
resolve: new Response(content + `<script>const firstlyData = ${JSON.stringify(oSafe.firstlyData)}</script>`, {
|
|
135
136
|
headers: { 'content-type': 'text/html' },
|
|
136
137
|
}),
|
|
137
138
|
};
|
package/esm/bin/cmd.js
CHANGED
|
@@ -3,6 +3,8 @@ import { bold, cyan, gray, green, italic, Log } from '@kitql/helpers';
|
|
|
3
3
|
import { read, write } from '@kitql/internals';
|
|
4
4
|
// Need this trick to be be replaced by the real lib alias here ;)
|
|
5
5
|
const libAlias = '$' + 'lib';
|
|
6
|
+
const pkgFirstly = JSON.parse(read('./node_modules/firstly/package.json') ?? '{}');
|
|
7
|
+
const versionFirstly = pkgFirstly?.peerDependencies?.['remult'] ?? 'latest';
|
|
6
8
|
const pkg = JSON.parse(read('./package.json') ?? '{}');
|
|
7
9
|
const version = pkg.devDependencies?.['firstly'] ?? pkg.dependencies?.['firstly'] ?? '???';
|
|
8
10
|
console.info('');
|
|
@@ -29,13 +31,21 @@ const res = (await p.multiselect({
|
|
|
29
31
|
message: 'You can generate different things here',
|
|
30
32
|
options,
|
|
31
33
|
}));
|
|
32
|
-
|
|
34
|
+
const devDependenciesPrepare = {
|
|
33
35
|
'@kitql/eslint-config': '0.3.2',
|
|
34
36
|
'@kitql/helpers': '0.8.9',
|
|
35
|
-
remult:
|
|
37
|
+
remult: versionFirstly,
|
|
36
38
|
pg: '8.11.3',
|
|
37
39
|
...pkg.devDependencies,
|
|
38
40
|
};
|
|
41
|
+
// sort by name
|
|
42
|
+
const devDependenciesSorted = Object.keys(devDependenciesPrepare)
|
|
43
|
+
.sort()
|
|
44
|
+
.reduce((acc, key) => {
|
|
45
|
+
acc[key] = devDependenciesPrepare[key];
|
|
46
|
+
return acc;
|
|
47
|
+
}, {});
|
|
48
|
+
pkg.devDependencies = devDependenciesSorted;
|
|
39
49
|
pkg.scripts = {
|
|
40
50
|
...pkg.scripts,
|
|
41
51
|
'//// ---- BEST PRACTICES ---- ////': '',
|