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
import angular from 'angular'; | |
import ngRouteModuleName from 'angular-route'; | |
import service1 from 'path/to/service/one'; | |
import service2 from 'path/to/service/two'; | |
import component1 from 'path/to/component/one'; | |
import component2 from 'path/to/component/two'; |
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
class SampleCtrl { | |
constructor($scope, Service1, Service2) { | |
'ngInject'; | |
this.$scope = $scope; | |
this.Service1 = Service1; | |
this.Service2 = Service2; | |
$scope.$on('event:sample1', () => this.doSomethingOne()); | |
$scope.$on('event:sample2', () => this.doSomethingTwo()); |
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
// Core Styles | |
import './index.scss'; | |
// Core Angular | |
import angular from 'angular'; | |
// These all export the module name | |
import ngAnimateModuleName from 'angular-animate'; | |
import ngAriaModuleName from 'angular-aria'; | |
import ngCookiesModuleName from 'angular-cookies'; |
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
// Core Styles | |
import './index.scss'; | |
// Core Angular | |
import angular from 'angular'; | |
// These all export the module name | |
import ngAnimateModuleName from 'angular-animate'; | |
import ngAriaModuleName from 'angular-aria'; | |
import ngCookiesModuleName from 'angular-cookies'; |
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
'use strict'; | |
const config = require('config'); | |
const path = require('path'); | |
const url = require('url'); | |
const webpack = require('webpack'); | |
const webpackConfig = require('./webpack.config'); | |
const HotModuleReplacementPlugin = webpack.HotModuleReplacementPlugin; // Hot reloading and inline style replacement |
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
'use strict'; | |
const path = require('path'); | |
const webpack = require('webpack'); | |
const config = require('./webpack.config'); | |
const UglifyJsPlugin = webpack.optimize.UglifyJsPlugin; | |
const uglifyOptions = { | |
mangle : { |
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
'use strict'; | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const path = require('path'); | |
const preprocess = require('preprocess'); | |
const webpack = require('webpack'); | |
const WebpackFilePreprocessorPlugin = require('webpack-file-preprocessor-plugin'); | |
const CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin; |
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": "myApp", | |
"version": "1.0.0", | |
"private": "true", | |
"scripts": { | |
"build": "./node_modules/.bin/webpack --config webpack.build.config.js", | |
"start": "./node_modules/.bin/webpack-dev-server --config webpack.dev.config.js --open" | |
}, | |
"dependencies": { | |
"angular": "1.6.5", |
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
'use strict'; | |
const GoogleSpreadsheet = require('google-spreadsheet'); | |
const spreadsheet = new GoogleSpreadsheet('1tVc-GnBIAAWbdCX7Zn9n-9V8j_rnv7meU22EubLN6G0'); // Sheet ID (visible in URL) | |
exports.handler = (event, context, callback) => { | |
return spreadsheet.getInfo((sheetError, info) => { | |
if (sheetError) { | |
console.error(sheetError); |
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
'use strict'; | |
const GoogleSpreadsheet = require('google-spreadsheet'); | |
const spreadsheet = new GoogleSpreadsheet('1tVc-GnBIAAWbdCX7Zn9n-9V8j_rnv7meU22EubLN6G0'); // Sheet ID (visible in URL) | |
spreadsheet.getInfo((sheetError, info) => { | |
if (sheetError) { | |
console.error(sheetError); |
NewerOlder