0.0.3 • Published 4 years ago

@amove/core v0.0.3

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
4 years ago

@amove/core

Amove 编译器项目集成模块。

示例

const { useReducer } = require('@amov/next');
const fs = require('fs-extra');

require('./src/common/File');
useReducer({
    Js () {
        this.$node.content = fs.readFileSync(this.$node.path, 'utf-8');
    }
});
// a.js
const Compile = require('@amove/core');
const path = require('path');

const input = path.join(__dirname, './src');
const output = path.join(__dirname, './dist');

require('./a,js');
Compile({
    input,
    output,
    plugins: [
        function Js () {
            // 添加一个 Js 类型的编译原子
        }
    ]
});