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
| public class WebsiteSetup | |
| { | |
| public string GoogleAnalyticsKey; | |
| } |
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
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var concat = require('gulp-concat'); | |
| var replace = require('gulp-replace'); | |
| gulp.task('js', function () { | |
| var filename = 'script' + getDate() + '.js'; | |
| gulp.src('src/**/*.js') | |
| .pipe(concat(filename)) |
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
| //cart.js | |
| define(['user'], function (user) { | |
| var calculateSalesTax = function() { | |
| var userPostalCode = user.postalCode; | |
| //logic to calculate sales tax continues... | |
| }; | |
| }); |
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
| //user.js | |
| define(['cart'], function (cart) { | |
| var numItemsInCart = cart.items.length; | |
| //logic to initialize user's cart icon continues here... | |
| }); |
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
| //user.js | |
| define([], function () { | |
| var cart = require('cart'); //using this style to work around circular reference | |
| var numItemsInCart = cart.items.length; | |
| //logic to initialize user's cart icon continues here... | |
| }); |
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
| var gulp = require('gulp2'); | |
| var concat = require('gulp-concat'); | |
| var replace = require('gulp-replace'); | |
| var paths = { | |
| build: '/build' | |
| }; | |
| gulp.task('js', function () { | |
| var filename = 'script-' + getDate() + '.js'; | |
| gulp.src('scripts/**/*.js') |
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
| { | |
| "script.js": "script-098f6bcd.js" | |
| } |
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
| function get(personId) { | |
| //logic to get person here | |
| } |
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
| Person Get(int personId) | |
| { | |
| //logic to get person here | |
| } |
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
| var path = require('path'); | |
| var webpack = require('webpack'); | |
| module.exports = { | |
| devtool: 'source-map', | |
| entry: [ | |
| './src/index' | |
| ], | |
| output: { | |
| path: path.join(__dirname, 'dist'), |
OlderNewer