Last active
August 29, 2015 14:06
-
-
Save LoicMahieu/cd2521c0de25b74e306b to your computer and use it in GitHub Desktop.
Test
This file contains hidden or 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
| bower_components | |
| node_modules | |
| main-builded.js | |
| vendor/tipped-4.1.6 |
This file contains hidden or 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": "requirejs-tipped", | |
| "version": "0.0.0", | |
| "authors": [ | |
| "Loïc Mahieu <[email protected]>" | |
| ], | |
| "license": "MIT", | |
| "ignore": [ | |
| "**/.*", | |
| "node_modules", | |
| "bower_components", | |
| "test", | |
| "tests" | |
| ], | |
| "dependencies": { | |
| "requirejs": "~2.1.15", | |
| "jquery": "~2.1.1" | |
| } | |
| } |
This file contains hidden or 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
| module.exports = function (grunt) { | |
| require('load-grunt-tasks')(grunt); | |
| grunt.initConfig({ | |
| requirejs: { | |
| dist: { | |
| options: { | |
| mainConfigFile: 'main.js', | |
| out: 'main-builded.js', | |
| name: 'main', | |
| optimize: 'none' | |
| } | |
| } | |
| } | |
| }) | |
| }; |
This file contains hidden or 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
| <link rel="stylesheet" href="vendor/tipped-4.1.6/css/tipped/tipped.css"> | |
| <div id="test" title="tipped!">Some tipped</div> | |
| <script data-main="main" src="bower_components/requirejs/require.js"></script> |
This file contains hidden or 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
| <link rel="stylesheet" href="vendor/tipped-4.1.6/css/tipped/tipped.css"> | |
| <div id="test" title="tipped!">Some tipped</div> | |
| <script data-main="main-builded" src="bower_components/requirejs/require.js"></script> |
This file contains hidden or 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
| require.config({ | |
| paths: { | |
| 'jquery': 'bower_components/jquery/dist/jquery', | |
| 'tipped': 'vendor/tipped-4.1.6/js/tipped/tipped' | |
| } | |
| }); | |
| define([ | |
| 'jquery', | |
| 'tipped' | |
| ], function ( | |
| $, | |
| Tipped | |
| ) { | |
| 'use strict'; | |
| $(function () { | |
| Tipped.create('#test'); | |
| }) | |
| }); |
This file contains hidden or 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": "requirejs-tipped", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "author": "", | |
| "license": "ISC", | |
| "devDependencies": { | |
| "grunt": "^0.4.5", | |
| "grunt-contrib-requirejs": "^0.4.4", | |
| "load-grunt-tasks": "^0.6.0" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment