Install dependencies and launch webpack process:
npm install
npm start
Finally, launch your editor of choice and edit index.js, index.scss, and index.html.
wfs = [["ac", nil], | |
["bk", | |
[{"workflow_id"=>"image-generate-widths", "conditions"=>{"m"=>"and", "g"=>[{"file_type_in"=>["jpg", "JPG", "jpeg", "JPEG", "png", "PNG"]}]}}, | |
{"workflow_id"=>"image-generate-marketplaces-bk", | |
"conditions"=> | |
{"m"=>"and", | |
"g"=> | |
[{"file_type_in"=>["jpg", "JPG", "jpeg", "JPEG", "png", "PNG"]}, | |
{"filename_does_not_match"=>"M[0-9]{10}-[a-zA-Z]{1,3}[0-9]{0,2}?[a-zA-Z]?_[a-zA-Z]{2}.(jpg|JPG|png|PNG|gif|GIF|webm|WEBM|mp4|MP4|zip|ZIP)"}]}}, | |
{"workflow_id"=>"video-transcoder", "conditions"=>{"m"=>"and", "g"=>[{"file_type_in"=>["mov", "MOV", "MP4", "mp4"]}]}}]], |
<script type="customer-template" include-category="NINO" exclude-category="ZAPATO"> | |
<style> | |
#ninos-msg { | |
text-align: center; | |
} | |
</style> | |
<div>NINOS menos ZAPATOS</div> | |
</script> | |
<div id="customer-template"> </div> |
const express = require('express'); | |
const passport = require('passport'); | |
const app = express(); | |
const cookieParser = require('cookie-parser'); | |
const bodyParser = require('body-parser'); | |
const session = require('express-session'); | |
const LocalStrategy = require('passport-local').Strategy; | |
passport.serializeUser((user, done) => { console.log('serialize'); done(null, user); } ); | |
passport.deserializeUser((user, done) => { console.log('deserialize'); done(null, user); }); |
module.exports = { | |
"env": { | |
"es6": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"sourceType": "module" | |
}, | |
"rules": { |
[ | |
{ "keys": ["alt+t"], "command": "extractor_command"} | |
] |
const config = require('./config'); | |
console.log(config); |
class Dict | |
constructor: (@g, @dict) -> | |
@missings = [] | |
resolve: (content, showErrors=true, json=false, englishFallback=true) -> | |
fail = false | |
RE = if json then /"\{([^}^\s]+)\}"/g else /\{([^}^\s]+)\}/g | |
content = content.replace RE, (m, n) => | |
replacement = @t n, showErrors, true, englishFallback | |
fail or= not replacement? |
# ====================================================================== | |
# | |
# @link http://wuhrr.wordpress.com/2010/01/13/adding-confirmation-to-bash/#comment-3540 | |
# | |
# Function: confirm | |
# Asks the user to confirm an action, If the user does not answer "This won't shutdown the Internet!" the script will immediately exit. | |
# | |
# Parameters: | |
# $@ - The confirmation message | |
# |
{ | |
"filter_execute": { | |
"\\.coffee$": { | |
"cmd": "webpack-versioner.sh $file $file_path/versions.manifest.json", | |
"shell": true | |
} | |
}, | |
"build_on_save": 1 | |
} |