Last active
January 17, 2019 19:05
-
-
Save adriancmiranda/a1f50a27dc98f8e2ce55 to your computer and use it in GitHub Desktop.
RequireJS + Greensock
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
{ | |
"name": "ambox", | |
"description": "Ambox generator", | |
"version": "0.0.0", | |
"main": "source/scripts/boot.js", | |
"devDependencies": { | |
"browserify": "latest", | |
"browserify-shim": "latest", | |
"connect-livereload": "latest", | |
"deamdify": "latest", | |
"deglobalify": "latest", | |
"grunt": "latest", | |
"grunt-contrib-requirejs": "latest", | |
"grunt-autoprefixer": "latest", | |
"grunt-browserify": "latest", | |
"grunt-concurrent": "latest", | |
"grunt-contrib-clean": "latest", | |
"grunt-contrib-copy": "latest", | |
"grunt-contrib-cssmin": "latest", | |
"grunt-contrib-imagemin": "latest", | |
"grunt-contrib-jshint": "latest", | |
"grunt-contrib-uglify": "latest", | |
"grunt-contrib-watch": "latest", | |
"grunt-exec": "latest", | |
"grunt-htmlcompressor": "latest", | |
"grunt-newer": "latest", | |
"grunt-processhtml": "latest", | |
"grunt-sass": "latest", | |
"grunt-svgmin": "latest", | |
"imagemin-mozjpeg": "latest", | |
"jshint-stylish": "latest", | |
"load-grunt-config": "latest", | |
"load-grunt-tasks": "latest", | |
"time-grunt": "latest" | |
}, | |
"dependencies": { | |
"gsap": "greensock/GreenSock-JS" | |
}, | |
"browser": { | |
"jquery": "./node_modules/jquery/jquery.js", | |
"jquery.gsap": "./node_modules/gsap/src/uncompressed/jquery.gsap.js", | |
"gsap.EasePack": "./node_modules/gsap/src/uncompressed/easing/EasePack.js", | |
"gsap.CSSPlugin": "./node_modules/gsap/src/uncompressed/plugins/CSSPlugin.js", | |
"gsap.BezierPlugin": "./node_modules/gsap/src/uncompressed/plugins/BezierPlugin.js", | |
"gsap.DirectionalRotationPlugin": "./node_modules/gsap/src/uncompressed/plugins/DirectionalRotationPlugin.js", | |
"gsap.AttrPlugin": "./node_modules/gsap/src/uncompressed/plugins/AttrPlugin.js", | |
"gsap.RoundPropsPlugin": "./node_modules/gsap/src/uncompressed/plugins/RoundPropsPlugin.js", | |
"gsap.ColorPropsPlugin": "./node_modules/gsap/src/uncompressed/plugins/ColorPropsPlugin.js", | |
"gsap.CSSRulePlugin": "./node_modules/gsap/src/uncompressed/plugins/CSSRulePlugin.js", | |
"gsap.EaselPlugin": "./node_modules/gsap/src/uncompressed/plugins/EaselPlugin.js", | |
"gsap.KineticPlugin": "./node_modules/gsap/src/uncompressed/plugins/KineticPlugin.js", | |
"gsap.RaphaelPlugin": "./node_modules/gsap/src/uncompressed/plugins/RaphaelPlugin.js", | |
"gsap.ScrollToPlugin": "./node_modules/gsap/src/uncompressed/plugins/ScrollToPlugin.js", | |
"gsap.TextPlugin": "./node_modules/gsap/src/uncompressed/plugins/TextPlugin.js", | |
"gsap.EndArrayPlugin": "./node_modules/gsap/src/uncompressed/plugins/EndArrayPlugin.js", | |
"gsap.TEMPLATE_Plugin": "./node_modules/gsap/src/uncompressed/plugins/TEMPLATE_Plugin.js", | |
"gsap.Draggable": "./node_modules/gsap/utils/Draggable.js", | |
"TimelineLite": "./node_modules/gsap/src/uncompressed/TimelineLite.js", | |
"TimelineMax": "./node_modules/gsap/src/uncompressed/TimelineMax.js", | |
"TweenLite": "./node_modules/gsap/src/uncompressed/TweenLite.js", | |
"TweenMax": "./node_modules/gsap/src/uncompressed/TweenMax.js" | |
}, | |
"browserify-shim": { | |
"jquery.gsap": { | |
"depends": ["gsap.CSSPlugin", "jquery"] | |
}, | |
"gsap.Draggable": { | |
"depends": ["gsap.CSSPlugin"] | |
}, | |
"gsap.EndArrayPlugin": { | |
"depends": ["TweenLite"] | |
}, | |
"gsap.ColorPropsPlugin": { | |
"depends": ["TweenLite"] | |
}, | |
"gsap.CSSRulePlugin": { | |
"depends": ["gsap.CSSPlugin"] | |
}, | |
"gsap.EaselPlugin": { | |
"depends": ["TweenLite"] | |
}, | |
"gsap.KineticPlugin": { | |
"depends": ["TweenLite"] | |
}, | |
"gsap.RaphaelPlugin":{ | |
"depends": ["TweenLite"] | |
}, | |
"gsap.ScrollToPlugin": { | |
"depends": ["TweenLite"] | |
}, | |
"gsap.TextPlugin": { | |
"depends": ["TweenLite"] | |
}, | |
"gsap.EasePack": { | |
"depends": ["TweenLite"] | |
}, | |
"gsap.CSSPlugin": { | |
"depends": ["TweenLite"] | |
}, | |
"gsap.BezierPlugin": { | |
"depends": ["TweenLite"] | |
}, | |
"gsap.DirectionalRotationPlugin": { | |
"depends": ["TweenLite"] | |
}, | |
"gsap.AttrPlugin": { | |
"depends": ["TweenLite"] | |
}, | |
"gsap.RoundPropsPlugin": { | |
"depends": ["TweenLite"] | |
}, | |
"TweenMax": { | |
"depends": ["TimelineMax", "gsap.EasePack", "gsap.CSSPlugin", "gsap.BezierPlugin", "gsap.DirectionalRotationPlugin", "gsap.AttrPlugin", "gsap.RoundPropsPlugin"] | |
}, | |
"TimelineLite": { | |
"depends": ["TweenLite"] | |
}, | |
"TimelineMax": { | |
"depends": ["TimelineLite"] | |
} | |
} | |
} |
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
({ | |
appDir: './source', | |
baseUrl: 'scripts', | |
dir: './client', | |
modules: [{ name: 'config-app' }], | |
fileExclusionRegExp: /^((r|build)\.js|config\.rb|\.sass-cache|(.+)\.(scss|sass))$/, | |
optimizeCss: 'standard', | |
removeCombined: true, | |
paths: { | |
'class': 'vendors/class', | |
'trace': 'vendors/trace', | |
'jquery': 'vendors/jquery/jquery', | |
'jquery.gsap': 'vendors/gsap/jquery.gsap', | |
'ScrollMagic': 'vendors/scrollmagic/scrollmagic', | |
'ScrollMagic.gsap': 'vendors/scrollmagic/plugins/animation.gsap', | |
'ScrollMagic.indicators': 'vendors/scrollmagic/plugins/debug.addIndicators', | |
'ScrollMagic.jquery': 'vendors/scrollmagic/plugins/jquery.ScrollMagic', | |
'gsap.EasePack': 'vendors/gsap/easing/EasePack', | |
'gsap.CSSPlugin': 'vendors/gsap/plugins/CSSPlugin', | |
'gsap.BezierPlugin': 'vendors/gsap/plugins/BezierPlugin', | |
'gsap.DirectionalRotationPlugin': 'vendors/gsap/plugins/DirectionalRotationPlugin', | |
'gsap.AttrPlugin': 'vendors/gsap/plugins/AttrPlugin', | |
'gsap.RoundPropsPlugin': 'vendors/gsap/plugins/RoundPropsPlugin', | |
'gsap.ColorPropsPlugin': 'vendors/gsap/plugins/ColorPropsPlugin', | |
'gsap.CSSRulePlugin': 'vendors/gsap/plugins/CSSRulePlugin', | |
'gsap.EaselPlugin': 'vendors/gsap/plugins/EaselPlugin', | |
'gsap.KineticPlugin': 'vendors/gsap/plugins/KineticPlugin', | |
'gsap.RaphaelPlugin': 'vendors/gsap/plugins/RaphaelPlugin', | |
'gsap.ScrollToPlugin': 'vendors/gsap/plugins/ScrollToPlugin', | |
'gsap.TextPlugin': 'vendors/gsap/plugins/TextPlugin', | |
'gsap.EndArrayPlugin': 'vendors/gsap/plugins/EndArrayPlugin', | |
'gsap.TEMPLATE_Plugin': 'vendors/gsap/plugins/TEMPLATE_Plugin', | |
'gsap.Draggable': 'vendors/utils/Draggable', | |
'TimelineLite': 'vendors/gsap/TimelineLite', | |
'TimelineMax': 'vendors/gsap/TimelineMax', | |
'TweenLite': 'vendors/gsap/TweenLite', | |
'TweenMax': 'vendors/gsap/TweenMax' | |
}, | |
shim: { | |
'jquery': { | |
exports: '$' | |
}, | |
'jquery.gsap': { | |
deps: ['gsap.CSSPlugin', 'jquery'] | |
}, | |
'gsap.Draggable': { | |
deps: ['gsap.CSSPlugin'], | |
}, | |
'gsap.EndArrayPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.ColorPropsPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.CSSRulePlugin': { | |
deps: ['gsap.CSSPlugin'] | |
}, | |
'gsap.EaselPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.KineticPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.RaphaelPlugin':{ | |
deps: ['TweenLite'] | |
}, | |
'gsap.ScrollToPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.TextPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.EasePack': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.CSSPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.BezierPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.DirectionalRotationPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.AttrPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.RoundPropsPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'TweenLite': { | |
exports: 'TweenLite' | |
}, | |
'TweenMax': { | |
deps: [/* TweenMax deps */'TimelineMax', 'gsap.EasePack', 'gsap.CSSPlugin', 'gsap.BezierPlugin', 'gsap.DirectionalRotationPlugin', 'gsap.AttrPlugin', 'gsap.RoundPropsPlugin', /* Activate */'gsap.ScrollToPlugin'], | |
exports: 'TweenMax' | |
}, | |
'TimelineLite': { | |
deps: ['TweenLite'], | |
exports: 'TimelineLite' | |
}, | |
'TimelineMax': { | |
deps: ['TimelineLite'], | |
exports: 'TimelineMax' | |
}, | |
'ScrollMagic.gsap': { | |
deps: ['TweenMax', 'ScrollMagic'], | |
exports: 'ScrollMagic' | |
}, | |
'ScrollMagic.jquery': { | |
deps: ['ScrollMagic', 'jquery'] | |
}, | |
'ScrollMagic.indicators': { | |
deps: ['ScrollMagic'] | |
}, | |
'app/main': { | |
deps:['jquery', 'class', 'trace'] | |
} | |
} | |
}) |
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
/* global require */ | |
require.config({ | |
paths: { | |
'class': 'vendors/class', | |
'trace': 'vendors/trace', | |
'jquery': 'vendors/jquery/jquery', | |
'jquery.gsap': 'vendors/gsap/jquery.gsap', | |
'ScrollMagic': 'vendors/scrollmagic/scrollmagic', | |
'ScrollMagic.gsap': 'vendors/scrollmagic/plugins/animation.gsap', | |
'ScrollMagic.indicators': 'vendors/scrollmagic/plugins/debug.addIndicators', | |
'ScrollMagic.jquery': 'vendors/scrollmagic/plugins/jquery.ScrollMagic', | |
'gsap.EasePack': 'vendors/gsap/easing/EasePack', | |
'gsap.CSSPlugin': 'vendors/gsap/plugins/CSSPlugin', | |
'gsap.BezierPlugin': 'vendors/gsap/plugins/BezierPlugin', | |
'gsap.DirectionalRotationPlugin': 'vendors/gsap/plugins/DirectionalRotationPlugin', | |
'gsap.AttrPlugin': 'vendors/gsap/plugins/AttrPlugin', | |
'gsap.RoundPropsPlugin': 'vendors/gsap/plugins/RoundPropsPlugin', | |
'gsap.ColorPropsPlugin': 'vendors/gsap/plugins/ColorPropsPlugin', | |
'gsap.CSSRulePlugin': 'vendors/gsap/plugins/CSSRulePlugin', | |
'gsap.EaselPlugin': 'vendors/gsap/plugins/EaselPlugin', | |
'gsap.KineticPlugin': 'vendors/gsap/plugins/KineticPlugin', | |
'gsap.RaphaelPlugin': 'vendors/gsap/plugins/RaphaelPlugin', | |
'gsap.ScrollToPlugin': 'vendors/gsap/plugins/ScrollToPlugin', | |
'gsap.TextPlugin': 'vendors/gsap/plugins/TextPlugin', | |
'gsap.EndArrayPlugin': 'vendors/gsap/plugins/EndArrayPlugin', | |
'gsap.TEMPLATE_Plugin': 'vendors/gsap/plugins/TEMPLATE_Plugin', | |
'gsap.Draggable': 'vendors/utils/Draggable', | |
'TimelineLite': 'vendors/gsap/TimelineLite', | |
'TimelineMax': 'vendors/gsap/TimelineMax', | |
'TweenLite': 'vendors/gsap/TweenLite', | |
'TweenMax': 'vendors/gsap/TweenMax' | |
}, | |
shim: { | |
'jquery': { | |
exports: '$' | |
}, | |
'jquery.gsap': { | |
deps: ['gsap.CSSPlugin', 'jquery'] | |
}, | |
'gsap.Draggable': { | |
deps: ['gsap.CSSPlugin'], | |
}, | |
'gsap.EndArrayPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.ColorPropsPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.CSSRulePlugin': { | |
deps: ['gsap.CSSPlugin'] | |
}, | |
'gsap.EaselPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.KineticPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.RaphaelPlugin':{ | |
deps: ['TweenLite'] | |
}, | |
'gsap.ScrollToPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.TextPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.EasePack': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.CSSPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.BezierPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.DirectionalRotationPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.AttrPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'gsap.RoundPropsPlugin': { | |
deps: ['TweenLite'] | |
}, | |
'TweenLite': { | |
exports: 'TweenLite' | |
}, | |
'TweenMax': { | |
deps: [/* TweenMax deps */'TimelineMax', 'gsap.EasePack', 'gsap.CSSPlugin', 'gsap.BezierPlugin', 'gsap.DirectionalRotationPlugin', 'gsap.AttrPlugin', 'gsap.RoundPropsPlugin', /* Activate */'gsap.ScrollToPlugin'], | |
exports: 'TweenMax' | |
}, | |
'TimelineLite': { | |
deps: ['TweenLite'], | |
exports: 'TimelineLite' | |
}, | |
'TimelineMax': { | |
deps: ['TimelineLite'], | |
exports: 'TimelineMax' | |
}, | |
'ScrollMagic.gsap': { | |
deps: ['TweenMax', 'ScrollMagic'], | |
exports: 'ScrollMagic' | |
}, | |
'ScrollMagic.jquery': { | |
deps: ['ScrollMagic', 'jquery'] | |
}, | |
'ScrollMagic.indicators': { | |
deps: ['ScrollMagic'] | |
}, | |
'app/main': { | |
deps:['jquery', 'class', 'trace'] | |
} | |
}, | |
callback: function boot() { | |
'use strict'; | |
require(['app/main']); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment