From b6f0752ac0d8398df06ae9d996c7be5ed9d9c4df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn?= Date: Thu, 14 Jan 2021 10:35:46 +0100 Subject: [PATCH] adding --- README.md | 74 ++++++++++++++++----------------- {dist/js => demo}/demo.js | 0 {dist => demo}/index.html | 4 +- mix-manifest.json | 2 +- package-lock.json | 32 +++++++++++++- package.json | 6 ++- src/.gitignore | 2 - demo.js => src/demo/demo.js | 2 +- demo.riot => src/demo/demo.riot | 2 +- src/demo/demo.scss | 6 +++ webpack.mix.js | 3 +- 11 files changed, 83 insertions(+), 50 deletions(-) rename {dist/js => demo}/demo.js (100%) rename {dist => demo}/index.html (65%) delete mode 100644 src/.gitignore rename demo.js => src/demo/demo.js (72%) rename demo.riot => src/demo/demo.riot (95%) create mode 100644 src/demo/demo.scss diff --git a/README.md b/README.md index 004cecb..77237e8 100644 --- a/README.md +++ b/README.md @@ -16,43 +16,39 @@ npm install tiny-validator --save ## How to use ```javascript - -
{ state.validator.handle(event) }} novalidate> -
- - -
-
- - -
- -
- - -
-``` - -![Demo](https://github.com/tentakelfabrik/tiny-validator/blob/master/demo.gif) \ No newline at end of file + } + +``` \ No newline at end of file diff --git a/dist/js/demo.js b/demo/demo.js similarity index 100% rename from dist/js/demo.js rename to demo/demo.js diff --git a/dist/index.html b/demo/index.html similarity index 65% rename from dist/index.html rename to demo/index.html index 9ee4a77..7fdeed5 100644 --- a/dist/index.html +++ b/demo/index.html @@ -4,10 +4,10 @@ Demo | Tiny Validator - + - + diff --git a/mix-manifest.json b/mix-manifest.json index 1026749..b92b42e 100644 --- a/mix-manifest.json +++ b/mix-manifest.json @@ -1,3 +1,3 @@ { - "/dist/js/demo.js": "/dist/js/demo.js" + "/demo/demo.js": "/demo/demo.js" } diff --git a/package-lock.json b/package-lock.json index 9e9ef43..456a17a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "tiny-validate", + "name": "tiny-validator", "version": "1.0.0", "lockfileVersion": 1, "requires": true, @@ -9339,6 +9339,36 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true }, + "sass": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.32.0.tgz", + "integrity": "sha512-fhyqEbMIycQA4blrz/C0pYhv2o4x2y6FYYAH0CshBw3DXh5D5wyERgxw0ptdau1orc/GhNrhF7DFN2etyOCEng==", + "dev": true, + "requires": { + "chokidar": ">=2.0.0 <4.0.0" + } + }, + "sass-loader": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-8.0.2.tgz", + "integrity": "sha512-7o4dbSK8/Ol2KflEmSco4jTjQoV988bM82P9CZdmo9hR3RLnvNc0ufMNdMrB0caq38JQ/FgF4/7RcbcfKzxoFQ==", + "dev": true, + "requires": { + "clone-deep": "^4.0.1", + "loader-utils": "^1.2.3", + "neo-async": "^2.6.1", + "schema-utils": "^2.6.1", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, "sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", diff --git a/package.json b/package.json index bf71ba4..805d4d8 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,8 @@ "@riotjs/webpack-loader": "^5.0.0", "cross-env": "^7.0.3", "laravel-mix": "^6.0.5", - "postcss": "^8.2.1" + "postcss": "^8.2.1", + "sass": "^1.32.0", + "sass-loader": "^8.0.2" } -} +} \ No newline at end of file diff --git a/src/.gitignore b/src/.gitignore deleted file mode 100644 index 1a5ac46..0000000 --- a/src/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules -fonts diff --git a/demo.js b/src/demo/demo.js similarity index 72% rename from demo.js rename to src/demo/demo.js index 04d00f8..3cf4cf0 100644 --- a/demo.js +++ b/src/demo/demo.js @@ -1,7 +1,7 @@ import * as riot from 'riot' import Demo from './demo.riot' -import FieldError from './src/field-error.riot' +import FieldError from './../field-error.riot' riot.register('field-error', FieldError) riot.mount('field-error') diff --git a/demo.riot b/src/demo/demo.riot similarity index 95% rename from demo.riot rename to src/demo/demo.riot index 5b90fa5..7bd8732 100644 --- a/demo.riot +++ b/src/demo/demo.riot @@ -18,7 +18,7 @@