-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from KorzhCom/dev
Version 4.21.0
- Loading branch information
Showing
45 changed files
with
480 additions
and
648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
call npm cache clean --force | ||
call nx reset | ||
call npx lerna clean | ||
rmdir /S /Q node_modules | ||
del package-lock.json | ||
call npm update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# @easydata/bundle (part of EasyData library) | ||
|
||
## What is EasyData? | ||
|
||
EasyData is an open-source library that allows you to simplify data management tasks in your web applications. Here we are talking about usual CRUD (create, retrieve, update, delete) operations first of all. | ||
|
||
EasyData introduces a declarative approach to building a user interface for most data operations. | ||
You simply describe your data: entities (tables), attributes (fields), relationships between them, data types, constraints, etc., and EasyData automatically, at run-time renders the necessary forms and dialogs to view, search and edit the data. | ||
|
||
## What is @easydata/bundle package? | ||
|
||
This package is a part EasyData.JS library. | ||
It contains UI widgets and views for implementing UI for CRUD (create/read/update/delete) operations over your database. | ||
|
||
## How to start? | ||
|
||
@easydata NPM packages make up the client-side part of EasyData. It means that you need something on your server-side to utilize EasyData in your project. The possible options are: | ||
|
||
### 1. ASP.NET Core projects | ||
|
||
To start with ASP.NET Core backend you can simply clone [EasyData repository on GitHub](https://github.com/KorzhCom/EasyData/) and try one of the sample projects included in that repository. After that, you can follow [the instruction](https://github.com/KorzhCom/EasyData/blob/master/README.md) published there to apply EasyData to your own project. | ||
|
||
### 2. Any other backend platform. | ||
|
||
Sorry, but it's not possible yet :( | ||
|
||
Please [submit an issue on GitHub](https://github.com/KorzhCom/EasyData/issues) (or vote for an existing one) to encourage us to add the support for your platform of choice faster. | ||
|
||
## Documentation | ||
|
||
* [GitHub repo README] (https://github.com/KorzhCom/EasyData/blob/master/README.md) | ||
* [An overview and some basic instructions](https://korzh.com/blog/crud-asp-net-core-with-easydata) | ||
* [Sample projects](https://github.com/KorzhCom/EasyData/tree/master/samples) (for ASP.NET Core only for now) | ||
|
||
## License | ||
This package (together with all other packages in @easydata) is distributed under MIT license. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"name": "@easydata/bundle-crud", | ||
"version": "1.4.21", | ||
"description": "EasyData.JS bundle", | ||
"scripts": { | ||
"clear": "shx rm -rf dist/* docs/* lib/*", | ||
"build": "npm run clear && rollup -c && copyfiles -f dist/easydata.min.js ../../../playground/EasyDataAspNetCoreTest03/wwwroot/js && copyfiles -f dist/easydata.min.css ../../../playground/EasyDataAspNetCoreTest03/wwwroot/css", | ||
"watch": "rollup -c -w" | ||
}, | ||
"author": "Korzh.com", | ||
"homepage": "https://github.com/KorzhCom/EasyData", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/KorzhCom/EasyData.git" | ||
}, | ||
"keywords": [ | ||
"database", | ||
"crud", | ||
"paging", | ||
"data table", | ||
"data filter" | ||
], | ||
"bugs": "https://github.com/KorzhCom/EasyData/issues", | ||
"license": "MIT", | ||
"browserslist": [ | ||
"defaults" | ||
], | ||
"dependencies": { | ||
"@easydata/crud": "1.4.21" | ||
}, | ||
"files": [ | ||
"dist" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
import {nodeResolve} from '@rollup/plugin-node-resolve' | ||
import commonjs from '@rollup/plugin-commonjs' | ||
import terser from '@rollup/plugin-terser' | ||
import progress from 'rollup-plugin-progress' | ||
import typescript from '@rollup/plugin-typescript' | ||
import typedoc from '@olton/rollup-plugin-typedoc' | ||
import multi from '@rollup/plugin-multi-entry' | ||
import * as path from "path"; | ||
import { fileURLToPath } from 'url'; | ||
import noEmit from 'rollup-plugin-no-emit' | ||
import postcss from 'rollup-plugin-postcss' | ||
import autoprefixer from "autoprefixer" | ||
import pkg from './package.json' assert { type: 'json' }; | ||
import buble from '@rollup/plugin-buble' | ||
import cleanup from 'rollup-plugin-cleanup' | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
|
||
const production = !(process.env.ROLLUP_WATCH), | ||
sourcemap = !production, | ||
cache = false | ||
|
||
const banner = ` | ||
/*! | ||
* EasyData.JS CRUD Bundle v${pkg.version} | ||
* Copyright 2020-${new Date().getFullYear()} Korzh.com | ||
* Licensed under MIT | ||
*/ | ||
` | ||
|
||
const onwarn = warn => { | ||
if (/Generated an empty chunk/.test(warn) || warn.code === 'FILE_NAME_CONFLICT') return; | ||
console.error( warn ) | ||
} | ||
|
||
|
||
export default [ | ||
{ | ||
input: './src/index.ts', | ||
cache, | ||
watch: { | ||
include: 'src/**', | ||
clearScreen: false | ||
}, | ||
plugins: [ | ||
progress({ clearLine: true, }), | ||
cleanup(), | ||
buble({ | ||
transforms: {forOf: false} | ||
}), | ||
nodeResolve({ browser: true, }), | ||
], | ||
context: "window", | ||
output: [ | ||
{ | ||
file: './dist/easydata.js', | ||
format: 'umd', | ||
sourcemap, | ||
banner, | ||
name: "easydata", | ||
extend: true, | ||
}, | ||
{ | ||
file: './dist/easydata.min.js', | ||
format: 'umd', | ||
sourcemap, | ||
banner, | ||
name: "easydata", | ||
extend: true, | ||
plugins: [ | ||
terser({ | ||
keep_classnames: true, | ||
keep_fnames: true, | ||
}), | ||
], | ||
}, | ||
] | ||
}, | ||
{ | ||
input: './src/css-easydata.js', | ||
plugins: [ | ||
progress({ | ||
clearLine: true, | ||
}), | ||
nodeResolve(), | ||
postcss({ | ||
extract: true, | ||
minimize: false, | ||
use: ['less'], | ||
sourceMap: false, | ||
plugins: [ | ||
autoprefixer(), | ||
] | ||
}), | ||
noEmit({ | ||
match(fileName, output) { | ||
return 'css-easydata.js' === fileName | ||
} | ||
}), | ||
], | ||
output: { | ||
file: './dist/easydata.css', | ||
banner, | ||
}, | ||
onwarn, | ||
}, | ||
{ | ||
input: './src/css-easydata.js', | ||
plugins: [ | ||
progress({ | ||
clearLine: true, | ||
}), | ||
nodeResolve(), | ||
postcss({ | ||
extract: true, | ||
minimize: true, | ||
use: ['less'], | ||
sourceMap: sourcemap, | ||
plugins: [ | ||
autoprefixer(), | ||
] | ||
}), | ||
noEmit({ | ||
match(fileName, output) { | ||
return 'css-easydata.js' === fileName | ||
} | ||
}), | ||
], | ||
output: { | ||
file: './dist/easydata.min.css', | ||
banner, | ||
}, | ||
onwarn, | ||
}, | ||
] |
4 changes: 2 additions & 2 deletions
4
easydata.js/packs/crud/src/css-easydata.js → easydata.js/bundles/crud/src/css-easydata.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import '@easydata/ui/dist/assets/css/easy-grid.css' | ||
import '@easydata/ui/dist/assets/css/easy-grid.css' | ||
import '@easydata/ui/dist/assets/css/easy-dialog.css' | ||
import '@easydata/ui/dist/assets/css/easy-forms.css' | ||
import '../assets/css/ed-view.css' | ||
import '@easydata/crud/dist/assets/css/ed-view.css' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import * as core from "@easydata/core" | ||
import * as ui from "@easydata/ui" | ||
import * as crud from "@easydata/crud" | ||
|
||
export { | ||
core, | ||
ui, | ||
crud | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"compileOnSave": false, | ||
"compilerOptions": { | ||
"noImplicitAny": false, | ||
"strictNullChecks" : false, | ||
"strict": true, | ||
"sourceMap": true, | ||
"declaration": true, | ||
"module": "es6", | ||
"moduleResolution": "node", | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"allowSyntheticDefaultImports": true, | ||
"target": "es5", | ||
"typeRoots": ["node_modules/@types"], | ||
"lib": ["es5", "dom"], | ||
"baseUrl": ".", | ||
"outDir": "./dist/types", | ||
"noEmitOnError": true | ||
}, | ||
"include": [ | ||
"./src/**/*.ts" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.