Browse Source

Clean from bower stuff and keep it only for the repo download

pull/36/head
Artur Arseniev 9 years ago
parent
commit
f52349979e
  1. 18
      Gruntfile.js
  2. 4
      dist/css/grapes.min.css
  3. 28
      dist/grapes.min.js
  4. 6
      index.html
  5. 20
      package.json
  6. 18
      src/config/require-config.js
  7. 4
      src/grapesjs/main.js
  8. 8
      test/config/config.js

18
Gruntfile.js

@ -33,7 +33,7 @@ module.exports = function(grunt) {
dir: '<%= builtDir %>', dir: '<%= builtDir %>',
baseUrl: './', baseUrl: './',
name: 'main', name: 'main',
include: ["./../vendor/almond/almond"], include: ["./../node_modules/almond/almond"],
removeCombined: true, removeCombined: true,
findNestedDependencies: true, findNestedDependencies: true,
keepBuildDir: true, keepBuildDir: true,
@ -96,8 +96,8 @@ module.exports = function(grunt) {
flatten: true, flatten: true,
src: [ src: [
'<%= styleDir %>/css/main.css', '<%= styleDir %>/css/main.css',
'vendor/codemirror/lib/codemirror.css', 'node_modules/codemirror/lib/codemirror.css',
'vendor/codemirror/theme/hopscotch.css' 'node_modules/codemirror/theme/hopscotch.css'
], ],
dest: '<%= builtDir %>', dest: '<%= builtDir %>',
ext: '.min.css' ext: '.min.css'
@ -127,7 +127,7 @@ module.exports = function(grunt) {
} }
}, },
}, },
/*
bowercopy: { bowercopy: {
options: { options: {
srcPrefix: 'bower_components' srcPrefix: 'bower_components'
@ -154,7 +154,7 @@ module.exports = function(grunt) {
}, },
} }
}, },
*/
watch: { watch: {
script: { script: {
files: [ '<%= appDir %>/**/*.js' ], files: [ '<%= appDir %>/**/*.js' ],
@ -239,16 +239,14 @@ module.exports = function(grunt) {
}); });
grunt.registerTask('bower', ['bowercopy']); grunt.registerTask('dev', ['connect', 'watch']);
grunt.registerTask('dev', ['bowercopy', 'connect', 'watch']);
grunt.registerTask('test', ['jshint', 'mocha']); grunt.registerTask('test', ['jshint', 'mocha']);
grunt.registerTask('build:fonts', ['webfont-custom']); grunt.registerTask('build:fonts', ['webfont-custom']);
grunt.registerTask('build', ['bowercopy', 'jshint', 'sass', 'before-rjs', 'requirejs', 'uglify', 'cssmin', 'concat', 'clean', 'copy']); grunt.registerTask('build', ['jshint', 'sass', 'before-rjs', 'requirejs', 'uglify', 'cssmin', 'concat', 'clean', 'copy']);
grunt.registerTask('default', ['dev']); grunt.registerTask('default', ['dev']);
}; };

4
dist/css/grapes.min.css

File diff suppressed because one or more lines are too long

28
dist/grapes.min.js

File diff suppressed because one or more lines are too long

6
index.html

@ -4,8 +4,8 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>GrapesJS</title> <title>GrapesJS</title>
<link rel="stylesheet" href="styles/css/main.css"> <link rel="stylesheet" href="styles/css/main.css">
<link rel="stylesheet" href="vendor/codemirror/lib/codemirror.css"> <link rel="stylesheet" href="node_modules/codemirror/lib/codemirror.css">
<link rel="stylesheet" href="vendor/codemirror/theme/hopscotch.css"> <link rel="stylesheet" href="node_modules/codemirror/theme/hopscotch.css">
</head> </head>
<style> <style>
body, html{ height: 100%; margin: 0;} body, html{ height: 100%; margin: 0;}
@ -811,6 +811,6 @@
</style> </style>
</div> </div>
<script data-main="src/demo" src="vendor/require/require.js"></script> <script data-main="src/demo" src="node_modules/requirejs/require.js"></script>
</body> </body>
</html> </html>

20
package.json

@ -11,9 +11,20 @@
"url": "https://github.com/artf/grapesjs.git" "url": "https://github.com/artf/grapesjs.git"
}, },
"dependencies": { "dependencies": {
"bower": "^1.7.2" "almond": "^0.3.3",
"backbone": "^1.3.3",
"backbone-undo": "^0.2.5",
"bower": "^1.7.2",
"codemirror": "^5.21.0",
"codemirror-formatting": "^1.0.0",
"jquery": "^3.1.1",
"keymaster": "^1.6.2",
"spectrum-colorpicker": "^1.8.0",
"underscore": "^1.8.3"
}, },
"devDependencies": { "devDependencies": {
"bower": "^1.7.2",
"chai": "^3.5.0",
"documentation": "^4.0.0-beta2", "documentation": "^4.0.0-beta2",
"grunt": "^0.4.5", "grunt": "^0.4.5",
"grunt-bowercopy": "^1.2.4", "grunt-bowercopy": "^1.2.4",
@ -30,8 +41,11 @@
"grunt-mocha": "^0.4.15", "grunt-mocha": "^0.4.15",
"grunt-sass": "^1.1.0", "grunt-sass": "^1.1.0",
"istanbul": "^0.4.2", "istanbul": "^0.4.2",
"bower": "^1.7.2", "mocha": "^3.1.2",
"node-sass": "^3.4.2", "node-sass": "^3.4.2",
"requirejs": "^2.3.2",
"requirejs-text": "^2.0.12",
"sinon": "^1.17.6",
"svg2ttf": "^4.0.1", "svg2ttf": "^4.0.1",
"ttf2eot": "^2.0.0", "ttf2eot": "^2.0.0",
"ttf2woff": "^2.0.1", "ttf2woff": "^2.0.1",
@ -44,6 +58,7 @@
"web template editor", "web template editor",
"web site builder", "web site builder",
"web template builder", "web template builder",
"html website builder",
"site builder", "site builder",
"newsletter builder", "newsletter builder",
"wysiwyg", "wysiwyg",
@ -51,7 +66,6 @@
"editor" "editor"
], ],
"scripts": { "scripts": {
"postinstall": "./node_modules/.bin/bower install --config.interactive=false",
"build": "./node_modules/.bin/grunt build", "build": "./node_modules/.bin/grunt build",
"build:fonts": "./node_modules/.bin/grunt build:fonts", "build:fonts": "./node_modules/.bin/grunt build:fonts",
"test": "./node_modules/.bin/grunt test", "test": "./node_modules/.bin/grunt test",

18
src/config/require-config.js

@ -21,15 +21,15 @@ require.config({
}, },
paths: { paths: {
jquery: '../vendor/jquery/jquery', jquery: '../node_modules/jquery/dist/jquery',
underscore: '../vendor/underscore/underscore', underscore: '../node_modules/underscore/underscore',
backbone: '../vendor/backbone/backbone', backbone: '../node_modules/backbone/backbone',
backboneUndo: '../vendor/backbone-undo/backbone-undo', backboneUndo: '../node_modules/backbone-undo/Backbone.Undo',
keymaster: '../vendor/keymaster/keymaster', keymaster: '../node_modules/keymaster/keymaster',
text: '../vendor/require-text/text', text: '../node_modules/requirejs-text/text',
Spectrum: '../vendor/spectrum/spectrum', Spectrum: '../node_modules/spectrum-colorpicker/spectrum',
codemirror: '../vendor/codemirror', codemirror: '../node_modules/codemirror',
formatting: '../vendor/codemirror-formatting/formatting', formatting: '../node_modules/codemirror-formatting/formatting',
}, },
packages : [ packages : [

4
src/grapesjs/main.js

@ -12,6 +12,8 @@ define(function (require) {
return { return {
editors: editors,
plugins: plugins, plugins: plugins,
/** /**
@ -76,4 +78,4 @@ define(function (require) {
}(); }();
}); });

8
test/config/config.js

@ -7,9 +7,9 @@ require.config({
baseUrl : "../src", baseUrl : "../src",
paths : { paths : {
chai : '../vendor/chai/chai', chai : '../node_modules/chai/chai',
sinon : '../vendor/sinon/sinon', sinon : '../node_modules/sinon/sinon',
mocha : '../vendor/mocha/mocha', mocha : '../node_modules/mocha/mocha',
}, },
shim: { shim: {
@ -25,4 +25,4 @@ require.config({
}, },
urlArgs : 'bust=' + (new Date()).getTime() urlArgs : 'bust=' + (new Date()).getTime()
}); });

Loading…
Cancel
Save