@innoways/form-generator 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@innoways/form-generator",
3
+ "version": "3.0.0",
4
+ "description": "drip-form 生成器",
5
+ "keywords": [
6
+ "hooks",
7
+ "drip-form"
8
+ ],
9
+ "author": "JDFED",
10
+ "homepage": "https://github.com/JDFED/drip-form/",
11
+ "license": "MIT",
12
+ "main": "dist/index.js",
13
+ "types": "dist/index.d.ts",
14
+ "module": "dist/index.js",
15
+ "distExports": {
16
+ "dist": "./dist",
17
+ "build-info": "./build-info"
18
+ },
19
+ "scripts": {
20
+ "link": "yarn link",
21
+ "build": "rollup --config --sourcemap",
22
+ "watch": "rollup --config --watch",
23
+ "build:self": "rollup --config --sourcemap --environment NODE_ENV:development:ts",
24
+ "watch:self": "rollup --config --watch --environment NODE_ENV:development:ts"
25
+ },
26
+ "publishConfig": {
27
+ "registry": "https://registry.npmjs.org/",
28
+ "access": "public"
29
+ },
30
+ "repository": {
31
+ "type": "gitlab",
32
+ "url": "https://github.com/JDFED/drip-form/"
33
+ },
34
+ "dependencies": {
35
+ "@ant-design/icons": "^4.7.0",
36
+ "@dnd-kit/core": "^4.0.0",
37
+ "@dnd-kit/modifiers": "^4.0.0",
38
+ "@dnd-kit/sortable": "^5.0.0",
39
+ "@dnd-kit/utilities": "^3.0.0",
40
+ "@jdfed/drip-form": "^0.8.2",
41
+ "@jdfed/drip-form-theme-antd": "^0.8.2",
42
+ "@jdfed/hooks": "^0.8.2",
43
+ "@jdfed/utils": "^0.8.2",
44
+ "@monaco-editor/react": "^4.2.2",
45
+ "antd": "^4.16.13",
46
+ "classnames": "^2.3.1",
47
+ "copy-to-clipboard": "^3.3.1",
48
+ "file-saver": "^2.0.5",
49
+ "immer": "^9.0.6",
50
+ "nanoid": "^3.1.23",
51
+ "rc-upload": "^4.3.1",
52
+ "recoil": "^0.4.0",
53
+ "tailwindcss": "^2.2.7"
54
+ },
55
+ "peerDependencies": {
56
+ "react": "^16.13.1 || ^17.0.0",
57
+ "react-dom": "^16.13.1 || ^17.0.0"
58
+ },
59
+ "devDependencies": {
60
+ "@rollup/plugin-alias": "^3.1.5",
61
+ "@types/file-saver": "^2.0.3",
62
+ "autoprefixer": "^10.3.1",
63
+ "postcss-import": "^14.0.2",
64
+ "rollup-plugin-copy": "^3.4.0"
65
+ }
66
+ }
@@ -0,0 +1,46 @@
1
+ import pkg from './package.json'
2
+ import { getOutput, getExternal, getPlugins } from '../../rollup.base.config'
3
+ import * as path from 'path'
4
+ import tailwindcss from 'tailwindcss'
5
+ import copy from 'rollup-plugin-copy'
6
+
7
+ const plugin = getPlugins(
8
+ pkg,
9
+ process.argv,
10
+ {
11
+ entries: {
12
+ '@generator/components': path.join(__dirname, 'src', 'components'),
13
+ '@generator/hooks': path.join(__dirname, 'src', 'hooks'),
14
+ '@generator/store': path.join(__dirname, 'src', 'store'),
15
+ '@generator/utils': path.join(__dirname, 'src', 'utils'),
16
+ '@generator/fields': path.join(__dirname, 'src', 'fields'),
17
+ },
18
+ },
19
+ {
20
+ modules: false,
21
+ extract: path.resolve(pkg.distExports['dist'], `index.css`),
22
+ autoModules: true,
23
+ plugins: [
24
+ require('postcss-import'),
25
+ tailwindcss(path.join(__dirname, 'tailwind.config.js')),
26
+ require('postcss-nested'),
27
+ require('autoprefixer'),
28
+ ],
29
+ }
30
+ )
31
+
32
+ export default {
33
+ input: 'src/index.ts',
34
+ output: getOutput(pkg),
35
+ external: getExternal(pkg),
36
+ onwarn(warning, warn) {
37
+ if (warning.code === 'THIS_IS_UNDEFINED') return
38
+ warn(warning) // this requires Rollup 0.46
39
+ },
40
+ plugins: [
41
+ ...plugin,
42
+ copy({
43
+ targets: [{ src: 'src/styles/fonts', dest: 'dist' }],
44
+ }),
45
+ ],
46
+ }
@@ -0,0 +1,26 @@
1
+ module.exports = {
2
+ purge: {
3
+ preserveHtmlElements: false,
4
+ enabled: true,
5
+ },
6
+ darkMode: false, // or 'media' or 'class'
7
+ theme: {
8
+ extend: {
9
+ fontFamily: {
10
+ serif: ['tahoma', 'serif'],
11
+ inherit: 'inherit',
12
+ },
13
+ colors: {
14
+ blue: {
15
+ DEFAULT: '#2e73ff',
16
+ },
17
+ },
18
+ },
19
+ },
20
+ variants: {
21
+ extend: {
22
+ ringWidth: ['hover'],
23
+ },
24
+ },
25
+ plugins: [],
26
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "include": ["./src/"],
4
+ "compilerOptions": {
5
+ "tsBuildInfoFile": "./build-info/tsconfig.tsbuildinfo",
6
+ "baseUrl":".",
7
+ "paths":{
8
+ "@generator/components": ["src/components"],
9
+ "@generator/store": ["src/store"],
10
+ "@generator/hooks": ["src/hooks"],
11
+ "@generator/fields": ["src/fields"],
12
+ "@generator/utils": ["src/utils"],
13
+ "@generator/components/*": ["src/components/*"],
14
+ "@generator/store/*": ["src/store/*"],
15
+ "@generator/hooks/*": ["src/hooks/*"],
16
+ "@generator/fields/*": ["src/fields/*"],
17
+ "@generator/utils/*": ["src/utils/*"]
18
+ }
19
+ }
20
+ }