Skip to content

Commit

Permalink
Update project's structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus89 committed Feb 7, 2018
1 parent 7318709 commit ae71596
Show file tree
Hide file tree
Showing 55 changed files with 44 additions and 37 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules/
docs/
.log

.vscode/
docs/
dist/
node_modules/
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## CARTO GL

![](./doc/carto-gl-capture.png)
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions example/mapbox.js → examples/complete/mapbox.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*eslint-env jquery*/
/*eslint no-console: ["off"] */

import * as MGL from '../contrib/mapboxgl';
import WindshaftSQL from '../contrib/windshaft-sql';
import * as MGL from '../lib/api/mapboxgl';
import WindshaftSQL from '../lib/api/windshaft-sql';
import * as R from '../src/index';

const styles = [
Expand Down
54 changes: 29 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,21 @@
{
"name": "renderer-prototype",
"name": "carto-gl",
"version": "0.0.0",
"description": "",
"scripts": {
"sst": "mocha test/sstest/index.test.js --timeout 15000",
"test": "./node_modules/.bin/eslint example/ contrib/ src/",
"loc": "node_modules/sloc/bin/sloc src/ contrib/ example/",
"build": "webpack",
"build:watch": "webpack -w",
"build-doc": "rm -rf docs/; node_modules/.bin/jsdoc --configure config/jsdoc/internal.json; node_modules/.bin/jsdoc --configure config/jsdoc/public.json",
"publish": "git checkout gh-pages && git merge master && npm run build && npm run build-doc && git commit -a -m \"Auto generated gh-pages\" && git push && git checkout master"
},
"description": "CARTO Vector library",
"repository": {
"type": "git",
"url": "git+https://github.com/CartoDB/renderer-prototype.git"
"url": "git://github.com/CartoDB/renderer-prototype.git"
},
"keywords": [],
"author": "David Manzanares",
"license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/CartoDB/renderer-prototype/issues"
},
"homepage": "https://github.com/CartoDB/renderer-prototype#readme",
"devDependencies": {
"chai": "^4.1.2",
"eslint": "^4.15.0",
"serve": "^6.4.9",
"sloc": "^0.2.0",
"webpack": "^3.8.1"
"author": {
"name": "CARTO",
"url": "https://carto.com/"
},
"contributors": [
"David Manzanares <[email protected]>",
"Iago Lastra <[email protected]>",
"Jesús Arroyo Torrens <[email protected]>"
],
"license": "BSD-3-Clause",
"dependencies": {
"@mapbox/vector-tile": "^1.3.0",
"cartocolor": "^4.0.0",
Expand All @@ -38,5 +25,22 @@
"jsep": "^0.3.2",
"lru-cache": "^4.1.1",
"pbf": "^3.1.0"
},
"devDependencies": {
"chai": "^4.1.2",
"eslint": "^4.15.0",
"serve": "^6.4.9",
"sloc": "^0.2.0",
"webpack": "^3.8.1"
},
"main": "src/index.js",
"scripts": {
"sst": "mocha test/sstest/index.test.js --timeout 15000",
"test": "./node_modules/.bin/eslint example/ contrib/ src/",
"loc": "node_modules/sloc/bin/sloc src/ contrib/ example/",
"build": "webpack",
"build:watch": "webpack -w",
"build-doc": "rm -rf docs/; node_modules/.bin/jsdoc --configure config/jsdoc/internal.json; node_modules/.bin/jsdoc --configure config/jsdoc/public.json",
"publish": "git checkout gh-pages && git merge master && npm run build && npm run build-doc && git commit -a -m \"Auto generated gh-pages\" && git push && git checkout master"
}
}
Empty file added src/api/layer/.keep
Empty file.
File renamed without changes.
File renamed without changes.
Empty file added src/api/source/.keep
Empty file.
Empty file added src/api/style/.keep
Empty file.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions src/index.js → src/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ function Renderer(canvas) {
this._center = { x: 0, y: 0 };
this._zoom = 1;
console.log('R', this);
this.canvas = canvas;
this.dataframes = [];
this.computePool = []; //TODO hack, refactor needed
}
Expand Down Expand Up @@ -563,4 +562,4 @@ Renderer.prototype.compute = function (type, expressions) {
};


export { Renderer, Style, Dataframe, schema };
export { Renderer, Style, Dataframe, schema };
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added test/api/.keep
Empty file.
Empty file added test/core/.keep
Empty file.
11 changes: 5 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
const path = require('path');

module.exports =
{
module.exports = {
devtool: 'source-map',
entry: {
mapbox: "./example/mapbox.js",
mapbox: './examples/complete/mapbox.js',
},
output: {
path: path.join(__dirname, "dist"),
filename: "[name].js"
path: path.join(__dirname, 'dist'),
filename: '[name].js'
}
};
};

0 comments on commit ae71596

Please sign in to comment.