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
curl -i -n -X GET https://api.heroku.com/apps/$STAGING_APP_NAME/releases \ system | |
-H "Accept: application/vnd.heroku+json; version=3;" -H "Range: version ..; order=desc" | |
# EXTRACT THE SLUG ID OUT OF THAT JSON OBJECT | |
# RELEASE THAT SLUG | |
curl -X POST -H "Accept: application/vnd.heroku+json; version=3" -n \ system | |
-H "Content-Type: application/json" \ | |
-d '{"slug": "$SLUG_ID"}' \ | |
https://api.heroku.com/apps/$PROD_APP_NAME/releases |
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
.src/ | |
├── assets | |
│ ├── images | |
│ │ └── structure | |
│ └── multimedia | |
├── docs | |
├── patterns | |
│ ├── 01-objects | |
│ │ ├── amount | |
│ │ ├── button |
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
components | |
│ ├── atoms | |
│ │ ├── button | |
│ │ ├── card | |
│ │ ├── form | |
│ │ │ └── select | |
│ │ ├── icon-field | |
│ │ ├── icons | |
│ │ ├── input | |
│ │ ├── text |
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
{ | |
"npm.enableScriptExplorer": true, | |
"npm.scriptExplorerAction": "run" | |
} |
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 typescript from 'rollup-plugin-typescript2'; | |
import { terser } from "rollup-plugin-terser"; | |
import { sizeSnapshot } from "rollup-plugin-size-snapshot"; | |
import resolve from 'rollup-plugin-node-resolve'; | |
import commonjs from 'rollup-plugin-commonjs'; | |
import * as globby from "globby"; | |
const globbedConfigs = globby.sync('src/patterns/**/*.ts').map(inputFile => { | |
const filename = inputFile.split("/")[inputFile.split("/").length-1]; |
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
export default () => { | |
$(document).on("click", ".c-accordion__title", function(event) { | |
event.preventDefault(); | |
// ... the rest of the old jquery code here | |
}); | |
} |
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
/// <reference path="../../../../node_modules/@types/jqueryui/index.d.ts" /> | |
import "jquery-ui/ui/core"; | |
import "jquery-ui/ui/keycode"; | |
import "jquery-ui/ui/widgets/datepicker"; | |
$("#my-datepicker").datepicker({ | |
showButtonPanel: true, | |
changeMonth: true, | |
changeYear: true, | |
buttonImage: "/images/structure/calendar-ico.png", |
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 InitAccordion from "../patterns/02-components/accordion/accordion"; | |
$(() => { | |
/** | |
* If it needs to be run when the document is first loaded, then execute it in this function. This might be a useful | |
* place to return promises or use async if the order or execution is important. | |
*/ | |
InitAccordion(); | |
}); |
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 PromisePolyfill from "es6-promise"; | |
PromisePolyfill.polyfill(); |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es5", | |
"module": "esnext", | |
"strict": true, | |
"jsx": "preserve", | |
"importHelpers": true, | |
"moduleResolution": "node", | |
"experimentalDecorators": true, | |
"esModuleInterop": true, |
NewerOlder