0.0.25 • Published 2 years 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
2 years ago
0.0.23
2 years ago
0.0.24
2 years ago
0.0.22
2 years ago
0.0.20
2 years ago
0.0.21
2 years ago
0.0.16
2 years ago
0.0.17
2 years ago
0.0.18
2 years ago
0.0.19
2 years ago
0.0.11
2 years ago
0.0.12
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.15
2 years ago
0.0.10
2 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago