-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kenny Arehart
committed
Apr 16, 2018
1 parent
379e6ff
commit 4820021
Showing
8 changed files
with
242 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"extends": [ | ||
"prettier" | ||
], | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"plugins": [ | ||
"prettier" | ||
], | ||
"env": { | ||
"commonjs": true, | ||
"es6": true, | ||
"mocha": true, | ||
"node": true | ||
}, | ||
"rules": { | ||
"indent": 0, | ||
"max-len": 0, | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
"semi": false, | ||
"tabWidth": 2, | ||
"useTabs": true, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 140 | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
### OSX and editor cruft### | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
Thumbs.db | ||
.cache | ||
.project | ||
.pydevproject | ||
.settings | ||
.tmproj | ||
*.esproj | ||
nbproject | ||
*.sublime-project | ||
*.sublime-workspace | ||
*.tmlanguage.cache | ||
*.tmPreferences.cache | ||
*.stTheme.cache | ||
*.iml | ||
|
||
|
||
# Numerous always-ignore extensions | ||
*.diff | ||
*.err | ||
*.orig | ||
*.rej | ||
*.swo | ||
*.swp | ||
*.vi | ||
*~ | ||
*.psd | ||
|
||
# Basics | ||
*.py[cod] | ||
__pycache__ | ||
|
||
# Logs | ||
*.log | ||
pip-log.txt | ||
|
||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Pycharm | ||
.idea | ||
|
||
# Vim | ||
|
||
*~ | ||
*.swp | ||
*.swo | ||
|
||
# npm | ||
node_modules/ | ||
|
||
# Compass | ||
.sass-cache | ||
|
||
|
||
!.gitkeep | ||
|
||
# for some reson zsh has started putting these everywhere | ||
.oh-my-zsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.prettierrc | ||
.package-lock.json | ||
.eslintrc | ||
.eslintignore | ||
CONTRIBUTING.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
##### RED Interactive Agency - Ad Technology | ||
|
||
Contributing | ||
=============== | ||
|
||
We are open to contributions from everyone. However, we are employed & funded by RED Interactive, | ||
so please keep in mind that our decisioning must be centric to that business. | ||
|
||
The goal of this project is to maintain a light-weight, fast-loading, flexible, and robust | ||
framework for building interactive banners. | ||
|
||
By participating in this project, you agree to abide by the thoughtbot [code of conduct]. | ||
|
||
[code of conduct]: https://thoughtbot.com/open-source-code-of-conduct | ||
|
||
We expect everyone to follow the code of conduct anywhere in this project codebases, | ||
issue trackers, chatrooms, and mailing lists. | ||
|
||
## Contributing Code | ||
|
||
As our project matures, we will provide more notes in regard to Contributing. For now, | ||
fork and assign pull requests to one of the core members. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
# cs-plugin-vendor-ft | ||
##### RED Interactive Agency - Ad Technology | ||
|
||
Creative Server Plugin - Vendor Flashtalking | ||
=============== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const argv = require('minimist')(process.argv.slice(2)) | ||
const packager = require('./lib/packager.js') | ||
|
||
const debug = require('@ff0000-ad-tech/debug') | ||
var log = debug('cs-plugin-vendor-ft') | ||
|
||
global.api = `http://${argv.api}` | ||
|
||
switch (argv.cmd) { | ||
case 'vendor-ft': | ||
log(argv.profile) | ||
const targets = JSON.parse(argv.targets) | ||
log(targets) | ||
packager.createVendorPackage(argv.profile, targets) | ||
break | ||
} | ||
|
||
/* | ||
node "/Users/kenny.arehart/Documents/_CLIENTS/ESPN/ESPN_MLB_2018/ES6/regular_season_clone_vendor/node_modules/@ff0000-ad-tech/cs-plugin-vendor-c20/index.js" --cmd vendor-c20 --api '10.0.86.13:5200' --profile 'preview' --targets '{"preview/300x250/index.html":"/3-traffic/preview/300x250/","preview/320x50/index.html":"/3-traffic/preview/320x50/","preview/728x90/index.html":"/3-traffic/preview/728x90/"}' | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const fs = require('fs-extra') | ||
const path = require('path') | ||
const walk = require('walk') | ||
const JSZIP = require('jszip') | ||
const debug = require('@ff0000-ad-tech/debug') | ||
let log = debug('cs-plugin-vendor-c20:packager') | ||
|
||
function createVendorPackage(profileName, targets) { | ||
log('createVendorPackage()') | ||
return new Promise((resolve, reject) => { | ||
// make the top level directory | ||
const dir = './4-vendor/' + profileName + '/' | ||
fs.emptyDirSync(dir) | ||
|
||
resolve() | ||
}) | ||
} | ||
|
||
module.exports = { | ||
createVendorPackage | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"_from": "git+ssh://[email protected]/ff0000-ad-tech/cs-plugin-vendor-ft.git", | ||
"_id": "@ff0000-ad-tech/[email protected]", | ||
"_inBundle": false, | ||
"_location": "/@ff0000-ad-tech/cs-plugin-vendor-ft", | ||
"_phantomChildren": { | ||
"escape-string-regexp": "1.0.5", | ||
"ms": "2.0.0" | ||
}, | ||
"_requested": { | ||
"type": "git", | ||
"raw": "@ff0000-ad-tech/cs-plugin-vendor-ft@git+ssh://[email protected]/ff0000-ad-tech/cs-plugin-vendor-ft.git", | ||
"name": "@ff0000-ad-tech/cs-plugin-vendor-ft", | ||
"escapedName": "@ff0000-ad-tech%2fcs-plugin-vendor-ft", | ||
"scope": "@ff0000-ad-tech", | ||
"rawSpec": "git+ssh://[email protected]/ff0000-ad-tech/cs-plugin-vendor-ft.git", | ||
"saveSpec": "git+ssh://[email protected]/ff0000-ad-tech/cs-plugin-vendor-ft.git", | ||
"fetchSpec": "ssh://[email protected]/ff0000-ad-tech/cs-plugin-vendor-ft.git", | ||
"gitCommittish": null | ||
}, | ||
"_requiredBy": ["/"], | ||
"_resolved": "git+ssh://[email protected]/ff0000-ad-tech/cs-plugin-vendor-ft.git#90a8976ebb7539dbf891df717123e25594597a79", | ||
"_spec": "@ff0000-ad-tech/cs-plugin-vendor-ft@git+ssh://[email protected]/ff0000-ad-tech/cs-plugin-vendor-ft.git", | ||
"_where": "/Users/kenny.arehart/Documents/_CLIENTS/ESPN/ESPN_MLB_2018/ES6/regular_season_clone_vendor", | ||
"author": { | ||
"name": "RED Interactive Agency" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/ff0000-ad-tech/cs-plugin-vendor-ft/issues" | ||
}, | ||
"bundleDependencies": false, | ||
"dependencies": { | ||
"@ff0000-ad-tech/debug": "latest", | ||
"fs-extra": "^5.0.0", | ||
"jszip": "^3.1.5", | ||
"minimist": "^1.2.0", | ||
"walk": "^2.3.9" | ||
}, | ||
"deprecated": false, | ||
"description": "Creative Server Plugin - Vendor Container 2.0 ===============", | ||
"devDependencies": {}, | ||
"homepage": "https://github.com/ff0000-ad-tech/cs-plugin-vendor-ft#readme", | ||
"license": "MIT", | ||
"main": "index.js", | ||
"name": "@ff0000-ad-tech/cs-plugin-vendor-ft", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ff0000-ad-tech/cs-plugin-vendor-ft.git" | ||
}, | ||
"scripts": { | ||
"pub": "np" | ||
}, | ||
"version": "1.0.0", | ||
"wp-creative-server": { | ||
"routes": { | ||
"api": "./index.js" | ||
}, | ||
"hooks": { | ||
"bulk-control": { | ||
"Vendor C2.0": "/api/?cmd=vendor-c20" | ||
} | ||
} | ||
} | ||
} |