Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .esdoc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"source": "./src/commands",
"destination": "./apidocs"
"destination": "./docs/api"
}
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# Project
/bin
lib
libs
coverage
node_modules

# Documentation Jekyll
_site
.sass-cache
.jekyll-metadata
Gemfile
Gemfile.lock

# Logs & System
*.log
*.pid
Empty file added docs/.nojekyll
Empty file.
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
squarebox.nahuel.io
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"it": "_mocha --opts mocha.opts test/integration",
"coverage": "istanbul cover ./node_modules/.bin/_mocha -- --opts mocha.opts test/commands",
"coveralls": "cat ./coverage/lcov.info | node node_modules/.bin/coveralls",
"docs": "esdoc",
"build:docs": "cd ./src/docs && npm run build",
"dev:docs": "cd ./src/docs && npm run serve",
"apidocs": "esdoc",
"build": "node register"
},
"files": [
Expand Down
3 changes: 3 additions & 0 deletions src/docs/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["react", "es2015", "stage-2"]
}
3 changes: 3 additions & 0 deletions src/docs/.bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "js/libs"
}
Empty file added src/docs/.nojekyll
Empty file.
1 change: 1 addition & 0 deletions src/docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
squarebox.nahuel.io
3 changes: 3 additions & 0 deletions src/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Squarebox Documentation

Official Documentation [here](http://squarebox.nahuel.io)
26 changes: 26 additions & 0 deletions src/docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Squarebox Jekyll Configuration
source: "."
destination: "../../docs"
title: Squarebox - Nahuel IO
email: 3dimentionar@gmail.com
description: "Squarebox Module Bundler for ES6 - Official Documentation"
baseurl: ""
url: "http://squarebox.nahuel.io/"
twitter_username: squarebox
github_username: nahuelio/squarebox

# Build settings
markdown: kramdown
include:
- .nojekyll
exclude:
- package.json
- README.md
- .bowerrc
- js
- build.config.js
- bower.json
- .babelrc
- node_modules
- Gemfile
- Gemfile.lock
37 changes: 37 additions & 0 deletions src/docs/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "squarebox-docs",
"description": "SquareBox Documentation",
"authors": [
"Patricio Ferreira <3dimentionar@gmail.com>"
],
"license": "MIT",
"keywords": [
"squarebox",
"documentation",
"guides"
],
"homepage": "https://github.com/nahuelio/squarebox",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"bootstrap": "3.3.7",
"font-awesome": "4.7.0",
"immutable": "3.8.1",
"react": "15.4.2",
"react-redux": "https://cdnjs.cloudflare.com/ajax/libs/react-redux/5.0.3/react-redux.min.js",
"redux": "3.6.0",
"redux-saga": "https://cdnjs.cloudflare.com/ajax/libs/redux-saga/0.14.3/redux-saga.min.js",
"redux-logger": "*",
"requirejs": "2.3.3",
"text": "requirejs-text#^2.0.15",
"require-css": "0.1.10",
"lodash": "4.17.4",
"babel-polyfill": "^0.0.1"
}
}
45 changes: 45 additions & 0 deletions src/docs/build.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/**
* RequireJS Build Profile
* @author Patricio Ferreira <3dimentionar@gmail.com>
**/
const path = require('path');

const basic = {
baseUrl: './js',
mainConfigFile: './js/config.js',
bundlesConfigOutFile: './js/config.js',
appDir: '.',
dir: '../../docs/js',
fileExclusionRegExp: "^\\.|\\.less$|\\.md$",
findNestedDependencies: true,
removeCombined: true,
optimize: 'uglify',
optimizeCss: 'none',
logLevel: 3,
uglify: {
toplevel: true,
ascii_only: true,
beautify: false,
max_line_length: 1000,
no_mangle: false
}
};

module.exports = Object.assign({

paths: {
'boostrap-css': 'empty:',
'font-awesome': 'empty:'
},

onBuildRead: function(moduleName, path, contents) {
return contents;
},

onBuildWrite: function(moduleName, path, contents) {
return contents;
},

modules: {}

}, basic);
3 changes: 3 additions & 0 deletions src/docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
layout: home
---
44 changes: 44 additions & 0 deletions src/docs/js/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* RequireJS Configuration
* @author Patricio Ferreira <3dimentionar@gmail.com>
**/
'use strict';

requirejs.config({

baseUrl: '.',

paths: {
react: 'libs/react/dist/react.min',
'react-dom': 'libs/react/dist/react-dom.min',
'react-redux': 'libs/react-redux/index',
redux: 'libs/redux/index',
'redux-saga': 'libs/react-saga/index',
'redux-logger': 'libs/react-logger/redux-logger',
'immutable': 'libs/immutable/dist/immutable.min',

'babel-helpers': 'libs/babel/helpers',
'babel-polyfill': 'libs/babel-polyfill/browser-polyfill',

bootstrap: 'libs/bootstrap/dist/js/bootstrap.min',
jquery: 'libs/jquery/dist/jquery.min',
lodash: 'libs/lodash/dist/lodash.min',
css: 'libs/require-css/css.min',
text: 'libs/text/text',

'font-awesome': 'libs/font-awesome/css/font-awesome.min.css',
'bootstrap-css': 'libs/bootstrap/dist/css/bootstrap.min.css'
},

shim: {
lodash: ['babel-helpers', 'babel-polyfill'],
jquery: ['lodash'],
bootstrap: ['jquery'],
'react-dom': ['react']
}

}).onError(function(err) {

console.log(err);

});
35 changes: 35 additions & 0 deletions src/docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "squarebox-docs",
"version": "1.0.0",
"description": "SquareBox Documentation",
"private": "true",
"scripts": {
"compile": "r_js -o build.config.js",
"build": "jekyll build && npm run compile",
"serve": "npm run build && jekyll serve"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nahuelio/squarebox.git"
},
"keywords": [
"squarebox",
"documentation",
"guides"
],
"author": "Patricio Ferreira <3dimentionar@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/nahuelio/squarebox/issues"
},
"homepage": "https://github.com/nahuelio/squarebox#readme",
"devDependencies": {
"babel-cli": "6.23.0",
"babel-polyfill": "6.23.0",
"babel-preset-es2015": "6.22.0",
"babel-preset-react": "6.23.0",
"babel-preset-stage-2": "6.22.0",
"bower": "1.8.0",
"glob": "7.1.1"
}
}