From b0b7e6d21394e335a8650de35d0891734b1d067f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Epu=C3=B1an?= Date: Mon, 17 Jul 2023 14:49:54 -0300 Subject: [PATCH] chore: now TS support --- Gruntfile.js | 10 ---------- dist/Sluggin.d.ts | 2 +- dist/Sluggin.js | 2 +- dist/Sluggin.min.js | 2 +- package.json | 2 +- src/Sluggin.js | 1 - 6 files changed, 4 insertions(+), 15 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 492c5e4..601eea1 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -14,15 +14,6 @@ module.exports = function(grunt) { " * <%= pkg.licenses[0].copyright %>\n" + " */\n" }, - // concat: { - // dist: { - // src: ["src/Sluggin.js"], - // dest: "dist/Sluggin.js" - // }, - // options: { - // banner: "<%= meta.banner %>" - // } - // }, jshint: { files: ["src/Sluggin.js"], options: { @@ -74,5 +65,4 @@ module.exports = function(grunt) { grunt.registerTask("default", ["uglify"]); grunt.registerTask("testjs", ["jshint"]); - }; diff --git a/dist/Sluggin.d.ts b/dist/Sluggin.d.ts index 1311a12..fe15c3c 100644 --- a/dist/Sluggin.d.ts +++ b/dist/Sluggin.d.ts @@ -1 +1 @@ -export declare function Sluggin(value: string[] | string): string[] | string; \ No newline at end of file +export declare function Sluggin(value: string[] | string): string[] | string; diff --git a/dist/Sluggin.js b/dist/Sluggin.js index b8862e2..2341b5a 100644 --- a/dist/Sluggin.js +++ b/dist/Sluggin.js @@ -1,5 +1,5 @@ /* - * Sluggin.js - v0.1.1 + * Sluggin.js - v0.4.1 * Converts string into websafe-friendly-clean piece of text * * https://github.com/juanbrujo/Sluggin.js diff --git a/dist/Sluggin.min.js b/dist/Sluggin.min.js index 6b83f1b..2788399 100644 --- a/dist/Sluggin.min.js +++ b/dist/Sluggin.min.js @@ -1,5 +1,5 @@ /* - * Sluggin.js - v0.1.1 + * Sluggin.js - v0.4.1 * Converts string into websafe-friendly-clean piece of text * * https://github.com/juanbrujo/Sluggin.js diff --git a/package.json b/package.json index 0797620..89ab835 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sluggin", - "version": "0.3.0", + "version": "0.4.1", "homepage": "https://github.com/juanbrujo/Sluggin.js", "authors": [ "Jorge Epuñan " diff --git a/src/Sluggin.js b/src/Sluggin.js index a6076dd..a1a01ed 100644 --- a/src/Sluggin.js +++ b/src/Sluggin.js @@ -131,4 +131,3 @@ if ( typeof module !== "undefined" && module.exports ) { return Sluggin( text ); }); } -