Skip to content

Commit

Permalink
Added travis.yml and node-sass
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Feb 19, 2016
1 parent 0cc7931 commit 6712935
Show file tree
Hide file tree
Showing 11 changed files with 70 additions and 41 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
.DS_Store
.settings/
.sass-cache/
style/.sass-cache/
.project
npm-debug.log
style/.sass-cache/
grapes.sublime-project
grapes.sublime-workspace

Expand Down
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- "0.7"
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-bowercopy');
grunt.loadNpmTasks('grunt-mocha');
grunt.loadNpmTasks('grunt-sass');

grunt.initConfig({
appDir: appPath,
Expand Down
25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [GrapesJS](http://grapesjs.com)
# [GrapesJS](http://grapesjs.com) [![Build Status](https://travis-ci.org/artf/grapesjs.svg?branch=master)](https://travis-ci.org/artf/grapesjs)

<p align="center"><img src="http://grapesjs.com/img/grapesjs-demo-template2.jpg" alt="GrapesJS" width="500" align="center"/></p>

Expand Down Expand Up @@ -105,7 +105,7 @@ var config = {
container: '',

// Enable/Disable the possibility to copy (ctrl + c) and paste (ctrl + v) elements
copyPaste : true,
copyPaste: true,

// Enable/Disable undo manager
undoManager: true,
Expand Down Expand Up @@ -156,6 +156,17 @@ Tests are run by [PhantomJS](http://phantomjs.org/) using [Mocha](https://mochaj
$ npm run test
```

### Tech

GrapesJS is built on top of this amazing open source projects:

* [Backbone] - gives Backbone to web applications
* [Backbone.Undo] - a simple Backbone undo-manager
* [Keymaster] - keyboard shortcuts
* [CodeMirror] - versatile text editor
* [Spectrum] - no hassle colorpicker
* [FontAwesome] - the iconic font and CSS framework


### Contributing

Expand All @@ -164,4 +175,12 @@ Any kind of help is welcome. At the moment there is no generic guidelines so use

## License

BSD 3-clause
BSD 3-clause


[Backbone]: <http://backbonejs.org/>
[Backbone.Undo]: <http://backbone.undojs.com/>
[Keymaster]: <https://github.com/madrobby/keymaster>
[CodeMirror]: <http://codemirror.net/>
[Spectrum]: <https://github.com/bgrins/spectrum>
[FontAwesome]: <https://fortawesome.github.io/Font-Awesome/>
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Open source Web Template Editor",
"version": "0.1.0",
"version": "0.1.1",
"author": "Artur Arseniev",
"homepage": "http://grapesjs.com",
"main": [
Expand Down
2 changes: 1 addition & 1 deletion dist/css/grapes.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/grapes.min.js

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Open source Web Template Editor",
"version": "0.1.0",
"version": "0.1.1",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",
Expand All @@ -16,17 +16,19 @@
"devDependencies": {
"grunt": "^0.4.5",
"grunt-bowercopy": "^1.2.4",
"grunt-cli": "^0.1.13",
"grunt-contrib-clean": "^0.7.0",
"grunt-contrib-concat": "^0.5.1",
"grunt-contrib-connect": "^0.11.2",
"grunt-contrib-copy": "^0.8.2",
"grunt-contrib-cssmin": "^0.14.0",
"grunt-contrib-jshint": "^0.12.0",
"grunt-contrib-requirejs": "^0.4.4",
"grunt-contrib-sass": "^0.9.2",
"grunt-contrib-uglify": "^0.11.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-mocha": "^0.4.15"
"grunt-mocha": "^0.4.15",
"grunt-sass": "^1.1.0",
"node-sass": "^3.4.2"
},
"keywords": [
"wte",
Expand All @@ -40,9 +42,9 @@
"editor"
],
"scripts": {
"postinstall": "node_modules/.bin/bower install --config.interactive=false",
"build": "node_modules/.bin/grunt build",
"test": "node_modules/.bin/grunt test",
"dev": "node_modules/.bin/grunt dev"
"postinstall": "node ./node_modules/bower/bin/bower install --config.interactive=false",
"build": "./node_modules/.bin/grunt build",
"test": "./node_modules/.bin/grunt test",
"dev": "./node_modules/.bin/grunt dev"
}
}
1 change: 0 additions & 1 deletion src/dom_components/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ define(function(require) {

// If there is no components try to append defaults
if(!c.wrapper.components.length && c.defaults.length){
console.log('Set defaults');
c.wrapper.components = c.defaults;
}

Expand Down
23 changes: 13 additions & 10 deletions styles/css/font-awesome.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@
src: url("../fonts/fontawesome-webfont.eot?#iefix&v=4.5.0") format("embedded-opentype"), url("../fonts/fontawesome-webfont.woff2?v=4.5.0") format("woff2"), url("../fonts/fontawesome-webfont.woff?v=4.5.0") format("woff"), url("../fonts/fontawesome-webfont.ttf?v=4.5.0") format("truetype"), url("../fonts/fontawesome-webfont.svg?v=4.5.0#fontawesomeregular") format("svg");
font-weight: normal;
font-style: normal; }

.fa {
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font: normal normal normal 14px / 1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; }

/* makes the font 33% larger relative to the icon container */
.fa-lg {
font-size: 1.33333em;
font-size: 1.3333333333em;
line-height: 0.75em;
vertical-align: -15%; }

Expand All @@ -38,24 +39,24 @@
font-size: 5em; }

.fa-fw {
width: 1.28571em;
width: 1.2857142857em;
text-align: center; }

.fa-ul {
padding-left: 0;
margin-left: 2.14286em;
margin-left: 2.1428571429em;
list-style-type: none; }
.fa-ul > li {
position: relative; }

.fa-li {
position: absolute;
left: -2.14286em;
width: 2.14286em;
top: 0.14286em;
left: -2.1428571429em;
width: 2.1428571429em;
top: 0.1428571429em;
text-align: center; }
.fa-li.fa-lg {
left: -1.85714em; }
left: -1.8571428571em; }

.fa-border {
padding: .2em .25em .15em;
Expand All @@ -70,6 +71,7 @@

.fa.fa-pull-left {
margin-right: .3em; }

.fa.fa-pull-right {
margin-left: .3em; }

Expand All @@ -82,6 +84,7 @@

.fa.pull-left {
margin-right: .3em; }

.fa.pull-right {
margin-left: .3em; }

Expand All @@ -100,13 +103,15 @@
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg); } }

@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg); }
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg); } }

.fa-rotate-90 {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
-webkit-transform: rotate(90deg);
Expand Down Expand Up @@ -2072,5 +2077,3 @@

.fa-percent:before {
content: ""; }

/*# sourceMappingURL=font-awesome.css.map */
30 changes: 16 additions & 14 deletions styles/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,11 @@ License: MIT
@media (max-device-width: 480px) {
.sp-color {
right: 40%; }

.sp-hue {
left: 63%; }

.sp-fill {
padding-top: 60%; } }

.sp-dragger {
border-radius: 5px;
height: 5px;
Expand Down Expand Up @@ -491,17 +490,18 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
src: url("../fonts/fontawesome-webfont.eot?#iefix&v=4.5.0") format("embedded-opentype"), url("../fonts/fontawesome-webfont.woff2?v=4.5.0") format("woff2"), url("../fonts/fontawesome-webfont.woff?v=4.5.0") format("woff"), url("../fonts/fontawesome-webfont.ttf?v=4.5.0") format("truetype"), url("../fonts/fontawesome-webfont.svg?v=4.5.0#fontawesomeregular") format("svg");
font-weight: normal;
font-style: normal; }

.fa {
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font: normal normal normal 14px / 1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; }

/* makes the font 33% larger relative to the icon container */
.fa-lg {
font-size: 1.33333em;
font-size: 1.3333333333em;
line-height: 0.75em;
vertical-align: -15%; }

Expand All @@ -518,24 +518,24 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
font-size: 5em; }

.fa-fw {
width: 1.28571em;
width: 1.2857142857em;
text-align: center; }

.fa-ul {
padding-left: 0;
margin-left: 2.14286em;
margin-left: 2.1428571429em;
list-style-type: none; }
.fa-ul > li {
position: relative; }

.fa-li {
position: absolute;
left: -2.14286em;
width: 2.14286em;
top: 0.14286em;
left: -2.1428571429em;
width: 2.1428571429em;
top: 0.1428571429em;
text-align: center; }
.fa-li.fa-lg {
left: -1.85714em; }
left: -1.8571428571em; }

.fa-border {
padding: .2em .25em .15em;
Expand All @@ -550,6 +550,7 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.

.fa.fa-pull-left {
margin-right: .3em; }

.fa.fa-pull-right {
margin-left: .3em; }

Expand All @@ -562,6 +563,7 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.

.fa.pull-left {
margin-right: .3em; }

.fa.pull-right {
margin-left: .3em; }

Expand All @@ -580,13 +582,15 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg); } }

@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg); }
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg); } }

.fa-rotate-90 {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
-webkit-transform: rotate(90deg);
Expand Down Expand Up @@ -2816,7 +2820,7 @@ ol.example li.placeholder:before {
background-color: rgba(0, 0, 0, 0.3); }
.wte-nv-navigator .wte-nv-item.wte-nv-hide {
opacity: 0.55;
filter: alpha(opacity=55.0); }
filter: alpha(opacity=55); }
.wte-nv-navigator .wte-nv-item #wte-nv-counter {
font-size: 10px;
position: absolute;
Expand Down Expand Up @@ -2903,7 +2907,7 @@ ol.example li.placeholder:before {
outline: 3px solid #ffca6f;
outline-offset: -3px;
text-align: center;
font-size: 16.66667px;
font-size: 16.6666666667px;
cursor: pointer; }
.wte-comp-image-placeholder.fa-picture-o::after {
content: "\f03e"; }
Expand Down Expand Up @@ -3432,5 +3436,3 @@ ol.example li.placeholder:before {
text-shadow: none;
box-shadow: none;
padding: 3px 5px; }

/*# sourceMappingURL=main.css.map */

0 comments on commit 6712935

Please sign in to comment.