I hereby claim:
- I am rnbwd on github.
- I am rnbwd (https://keybase.io/rnbwd) on keybase.
- I have a public key ASDx8CZyUzEpVwNV2UNF1ZCtpvE6ctq2yDoMRsgT7jBMNgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| /* I'm only listing most important in my main Settings-User, but you can find all potential options in the Settings Default */ | |
| /* Turning file indexing off in sublime 3 will prevent it from bringing your computer to a halt for 5 mins (and I have a decent mac) */ | |
| { | |
| "enable_telemetry": "disabled", | |
| "font_size": 16, | |
| "trim_trailing_white_space_on_save": true, | |
| "ensure_newline_at_eof_on_save": true, | |
| "atomic_save": true, |
| //sudo | |
| var globby = require('globby'); | |
| var chokidar = require('chokidar'); | |
| var task = require('../'); | |
| globby(['glob/glob*.glob'], function (err, paths) { | |
| if (err) return cb(err); | |
| task.files = paths; |
| (ns clj_js) | |
| (def ^:export clj-js cljs.core/clj->js) | |
| (defn ^:export js-clj | |
| ([x] (cljs.core/js->clj x)) | |
| ([x keywordize-keys] (cljs.core/js->clj x :keywordize-keys keywordize-keys))) |
| gulp.task('gulpify', function() { | |
| gulp.src("./src/js/**") | |
| .pipe($.plumber()) | |
| //using vinyl-transform lets us use any transforms available to browserify | |
| .pipe(transform(reactify)) | |
| .on('error', $.util.log) | |
| .pipe($.ext.replace('.js')) | |
| // converting .jsx/coffee/etc. into a temp folder prior to 'bundling' reduces additional boilerplate later-on | |
| .pipe(gulp.dest('./temp')) | |
| .pipe($.filter('init.js')) |
| var gulp = require('gulp'); | |
| var $ = require('gulp-load-plugins')(); | |
| var config = require('../config.json'); | |
| var bundler = require('./bundler'); | |
| process.env.APP_ID = config.Client.AppId; | |
| process.env.JS_KEY = config.Client.jsKey; | |
| gulp.task('scripts', function() { | |
| gulp.src('./src/js/init.js', {read: false}) |
| var $ = require('gulp-load-plugins')(); | |
| var reactify = require('reactify'); | |
| var envify = require('envify'); | |
| var browserify = require('browserify'); | |
| var watchify = require('watchify'); | |
| //watchify with source maps | |
| gulp.task('watchify', function() { | |
| var w = watchify({entries: ['./src/js/init.jsx'], |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>D3 Test</title> | |
| <script src="http://d3js.org/d3.v3.min.js"></script> | |
| <style> | |
| body { | |
| background-color: grey; | |
| } |