Giter VIP home page Giter VIP logo

vjsf-demo-editor's Introduction

vue-json-schema-form 活动编辑器

当前项目实际为 vue-json-schema-form demo项目 中活动编辑器的单独仓库。

启动方法

# 安装,请使用 yarn
yarn

# 开发环境
yarn dev

# 浏览器访问
http://127.0.0.1:8800/vue-editor.html

# build
yarn build

备注

为了和 vue-json-schema-form demo项目 项目保持通用性。对依赖的 demo-common 做了以下处理,js中使用webpack 配置别名,css 使用postcss import插件配置path来兼容。

详细如下:

  • webpack 配置 vue-config.js 添加别名,解决js中 import 'demo-common/xx'
config.resolve.alias = {
    ...config.resolve.alias,
    'demo-common': path.resolve(__dirname, './src/demo-common'),
};
  • postcss.config.js 配置post import plugin 添加path配置,解决css中 @import 'demo-common/xx'
require('postcss-import')({
    path: ['src/']
})

构建

使用 vue cli 构建项目多entry形式,按文件目录自动查找entry,有兴趣可参见 /scripts/entry.js 文件

为何独立一份

vue-json-schema-form 为Monorepo,package 之间有相互依赖,由于会有新人不知如何抽出需要的独立package, 所以现在独立为一个单独的仓库,同时方便后续的更新。

vjsf-demo-editor's People

Contributors

lljj-x avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.