It's 2024. You should use tsup instead of this.
🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle + type-checking
import 'package:flutter/material.dart'; | |
import 'package:get/get.dart'; | |
import 'package:dio/dio.dart'; | |
void main() { | |
runApp(GetMaterialApp( | |
initialRoute: '/home', | |
getPages: [ | |
GetPage( | |
name: '/home', |
It's 2024. You should use tsup instead of this.
🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle + type-checking
<script> | |
// Grin | |
// Adds all necessary stuff for you. | |
import { Overlay } from 'trading-vue-js' | |
export default { | |
name: 'Grin', | |
mixins: [Overlay], | |
methods: { |
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'dart:isolate'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( |
//plugins/axios.js | |
export default function ({ $axios, app }) { | |
$axios.onError(error => { | |
const code = parseInt(error.response && error.response.status) | |
if ([401, 403].includes(code)) { | |
app.$auth.logout(); | |
} |
module.exports = { | |
/* | |
Headers of the page | |
- Nuxt.js uses vue-meta to update the headers and html attributes of your application. | |
- Nuxt.js configures vue-meta with these options: | |
{ | |
keyName: 'head', // the component option name that vue-meta looks for meta info on. | |
attribute: 'data-n-head', // the attribute name vue-meta adds to the tags it observes | |
ssrAttribute: 'data-n-head-ssr', // the attribute name that lets vue-meta know that meta info has already been server-rendered | |
tagIDKeyName: 'hid' // the property name that vue-meta uses to determine whether to overwrite or append a tag |
#!/bin/bash | |
if [[ "$1" != "" ]]; then | |
S3BUCKETNAME="$1" | |
else | |
echo ERROR: Failed to supply S3 bucket name | |
exit 1 | |
fi | |
aws s3 sync build s3://$S3BUCKETNAME --delete --cache-control max-age=31536000,public |
version: '2' | |
services: | |
myapp: | |
build: . | |
container_name: "myapp" | |
image: debian/latest | |
environment: | |
- NODE_ENV=development | |
- FOO=bar | |
volumes: |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent