mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-17 14:30:34 +08:00
fix: Cleanup build script.
This commit is contained in:
parent
14247eab07
commit
ca0b4b0d91
@ -26,7 +26,7 @@ export default {
|
||||
};
|
||||
`;
|
||||
|
||||
async function writeBlocksImports({ components, context }) {
|
||||
async function writeBlockImports({ components, context }) {
|
||||
const templateFn = nunjucksFunction(template);
|
||||
const blocks = Object.keys(components.types.blocks).map((type) => ({
|
||||
type,
|
||||
@ -38,4 +38,4 @@ async function writeBlocksImports({ components, context }) {
|
||||
});
|
||||
}
|
||||
|
||||
export default writeBlocksImports;
|
||||
export default writeBlockImports;
|
@ -16,8 +16,6 @@
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
import { readFile } from '@lowdefy/node-utils';
|
||||
|
||||
import createCounter from './utils/createCounter.js';
|
||||
@ -36,7 +34,7 @@ import testSchema from './build/testSchema.js';
|
||||
import validateApp from './build/validateApp.js';
|
||||
import validateConfig from './build/validateConfig.js';
|
||||
import writeApp from './build/writeApp.js';
|
||||
import writeBlocksImports from './build/writePluginImports/writeBlocksImports.js';
|
||||
import writeBlockImports from './build/writePluginImports/writeBlockImports.js';
|
||||
import writeConnectionImports from './build/writePluginImports/writeConnectionImports.js';
|
||||
import writeConfig from './build/writeConfig.js';
|
||||
import writeConnections from './build/writeConnections.js';
|
||||
@ -102,7 +100,7 @@ async function build(options) {
|
||||
await writeGlobal({ components, context });
|
||||
await writeMenus({ components, context });
|
||||
await writeTypes({ components, context });
|
||||
await writeBlocksImports({ components, context });
|
||||
await writeBlockImports({ components, context });
|
||||
await writeConnectionImports({ components, context });
|
||||
// TODO: write style file
|
||||
// TODO: write icons file
|
||||
|
Loading…
Reference in New Issue
Block a user