Skip to content

Commit

Permalink
remove jquery dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Feb 10, 2022
1 parent dbe49a1 commit f3640c8
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 59 deletions.
33 changes: 10 additions & 23 deletions dist/app/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/app/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/gcfclient.min.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* grapesjs-components-farmer client-side script
* grapesjs plugin to build components for different css framework
*
* @version v0.6.4
* @version v0.6.5
* @author friends@niiknow.org
* @homepage https://niiknow.github.io/grapesjs-components-farmer/
* @repository https://github.com/niiknow/grapesjs-components-farmer.git
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* grapesjs-components-farmer
* grapesjs plugin to build components for different css framework
*
* @version v0.6.4
* @version v0.6.5
* @author friends@niiknow.org
* @homepage https://niiknow.github.io/grapesjs-components-farmer/
* @repository https://github.com/niiknow/grapesjs-components-farmer.git
Expand Down
4 changes: 1 addition & 3 deletions example/bootstrap5.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ const config = {
styles: [
'https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css'
],
scripts: [
'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js'
]
scripts: []
}
}

Expand Down
7 changes: 2 additions & 5 deletions example/foundation.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
const config = {
canvas: {
styles: [
'https://cdn.jsdelivr.net/npm/foundation-sites@6.6.2/dist/css/foundation.min.css'
'https://cdn.jsdelivr.net/npm/foundation-sites@6.7.4/dist/css/foundation.min.css'
],
scripts: [
'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/foundation/6.6.2/js/foundation.min.js'
]
scripts: []
},
comps: {
'comp_input': {
Expand Down
5 changes: 1 addition & 4 deletions example/googlemd.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ const config = {
styles: [
'https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css'
],
scripts: [
'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js'
]
scripts: []
},
comps: {
'comp_input': {
Expand Down
1 change: 0 additions & 1 deletion example/init.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pluginFarmer from '../src'
import grapesjs from 'grapesjs'
import $ from 'jquery'
import customBlocks from './custom-blocks.js'

export default (opts = {}) => {
Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/grapesjs@0.18.2/dist/css/grapes.min.css"/>

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js"></script>

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/grapesjs@0.18.2/dist/grapes.min.js"></script>
Expand Down
19 changes: 3 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grapesjs-components-farmer",
"description": "grapesjs plugin to build components for different css framework",
"version": "0.6.4",
"version": "0.6.5",
"author": "friends@niiknow.org",
"license": "MIT",
"main": "dist/index.js",
Expand All @@ -27,8 +27,7 @@
"not ie < 11"
],
"peerDependencies": {
"grapesjs": "^0.18.2",
"jquery": ">=1.9.1"
"grapesjs": "^0.18.2"
},
"devDependencies": {
"@babel/core": "^7.17.2",
Expand Down

0 comments on commit f3640c8

Please sign in to comment.