0.0.25 • Published 11 months ago
@croffle/bakery v0.0.25
Install
$ npm install croffle @croffle/bakery
@croffle/bakery
is a Croffle CLI module.
Setup croffle.config.js
- If your file name is in the format
{dir}/{name}{ext}
, then the default dist App path is./{type}/{name}/App{ext}
based on the path your file is in. - Your sub files (components) are
{dir}/{name}{ext}
based on your App path.
If there is no return value of waffle, no file is created.
Multiple outputs are possible with one input.
// @ts-check
import {
ReactCroissant,
VueWaffle,
} from "croffle";
/**
* @type {import("@croffle/bakery").CroffleConfig[]}
*/
const config = [
{
targets: "src/apps/**.tsx",
croissant: ReactCroissant,
waffle: [
VueWaffle,
new VueWaffle(),
() => new VueWaffle({ useVue2: true }),
(defrosted, target) => {
const waffle = new VueWaffle();
return {
dist: `./{type}/{base}/App{ext}`,
waffle,
};
},
],
},
];
module.exports = config;
Run Scripts
$ bake
$ npx @croffle/bakery bake
0.0.25
11 months ago
0.0.23
11 months ago
0.0.24
11 months ago
0.0.22
11 months ago
0.0.20
1 year ago
0.0.21
1 year ago
0.0.16
1 year ago
0.0.17
1 year ago
0.0.18
1 year ago
0.0.19
1 year ago
0.0.11
1 year ago
0.0.12
1 year ago
0.0.13
1 year ago
0.0.14
1 year ago
0.0.15
1 year ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago