-
Notifications
You must be signed in to change notification settings - Fork 0
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 #23 from funktechno/dev
v 0.0.3
- Loading branch information
Showing
12 changed files
with
216,392 additions
and
4,898 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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
# sqltooling-drawio | ||
plugins for sql tooling in drawio | ||
* 3rd party plugins for sql tooling in drawio | ||
* contributions welcome | ||
|
||
## Getting Started | ||
* see https://github.com/ariel-bentu/tam-drawio for multiple install options | ||
* download plugin file | ||
* [sql.js](https://raw.githubusercontent.com/funktechno/sqltooling-drawio/main/dist/sql.js) | ||
* [sql.js](https://raw.githubusercontent.com/funktechno/sqltooling-drawio/main/dist/sql.js) - import/export SQL DLLS | ||
* [nosql.js](https://raw.githubusercontent.com/funktechno/sqltooling-drawio/main/dist/nosql.js) - import/export typescript interfaces and openapi jsons (NOT vscode compatible) | ||
* or [nosql.min.js](https://raw.githubusercontent.com/funktechno/sqltooling-drawio/main/dist/nosql.min.js) | ||
* or clone project `git clone --branch main [email protected]:funktechno/sqltooling-drawio.git` and check `dist folder` | ||
* vscode [Draw.io Integration](https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio) | ||
* settings.json | ||
|
@@ -21,4 +24,5 @@ plugins for sql tooling in drawio | |
|
||
## Development | ||
* `npm install` | ||
* `npm build:client` to update `dist/sql.js` | ||
* `npm build:client` to update `dist/sql.js` | ||
* `npm build:client:nosql` to update `dist/nosql.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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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 @@ | ||
import gulp from "gulp"; | ||
import browserify from "browserify"; | ||
import source from "vinyl-source-stream"; | ||
// import tsify from "tsify"; | ||
import buffer from "vinyl-buffer"; | ||
import babelify from "babelify"; | ||
import sourcemaps from "gulp-sourcemaps"; | ||
import gutil from "gulp-util"; | ||
import uglify from "gulp-uglify"; | ||
import rename from "gulp-rename"; | ||
|
||
gulp.task("default", () => { | ||
return browserify({ | ||
basedir: ".", | ||
debug: true, | ||
entries: ["src/nosql.ts"], // Your entry point(s) | ||
cache: {}, | ||
packageCache: {} | ||
}) | ||
.plugin("tsify", { target: "es2016"}) // TypeScript plugin | ||
.transform(babelify.configure({ | ||
presets: ["es2015"] | ||
})) | ||
// .transform(babelify, { presets: ["@babel/preset-env"], extensions: [".ts"] }) // Babelify with ES6+ presets | ||
.bundle() | ||
.pipe(source("nosql.js")) // Output filename | ||
.pipe(buffer()) | ||
.pipe(sourcemaps.init({ loadMaps: true })) | ||
.pipe(uglify()) // Minify (optional) | ||
.pipe(rename({ suffix: ".min" })) // Add ".min" to the filename | ||
.on("error", gutil.log) | ||
// .pipe(sourcemaps.write("./", {})) | ||
.pipe(gulp.dest("dist")); // Output directory | ||
}); |
Oops, something went wrong.