Use create-nuxt-app and enable the Typescript related options to scaffold a new boilerplate TS Nuxt repo:
yarn create nuxt-app <my-project>
# or
npx create-nuxt-app <my-project>Download, but don't run, the Sierra installer from the Mac App Store. This places the installer at
/Applications/Install\ macOS\ Sierra.app/.
Now run the following commands to build a suitable VM image from the installer:
git clone https://github.com/jonanh/osx-vm-templates
cd osx-vm-templates/packer
sudo ../prepare_iso/prepare_vdi.sh -D DISABLE_REMOTE_MANAGEMENT -o macOS_10.12.vdi /Applications/Install\ macOS\ Sierra.app/ .
| const assert = require('assert'); | |
| const {promisify} = require('util'); | |
| const fs = require('fs'); | |
| const {resolve} = require('path'); | |
| // | |
| const symlink = promisify(fs.symlink); | |
| const stat = promisify(fs.stat); | |
| const mkdir = promisify(fs.mkdir); |
| # Install tmux 2.8 on Centos | |
| # install deps | |
| yum install gcc kernel-devel make ncurses-devel | |
| # DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
| curl -LOk https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz | |
| tar -xf libevent-2.1.8-stable.tar.gz | |
| cd libevent-2.1.8-stable | |
| ./configure --prefix=/usr/local |
| <template> | |
| <div class="field-collection"> | |
| <el-form class="_item" v-for="(form, i) in C" :key="i" inline label-width="120px"> | |
| <el-form-item class="_item__col" :label="type + '编号'"> | |
| <el-input type="text" class="_input-el" v-model="form.number" @change="emitForm" /> | |
| </el-form-item> | |
| <el-form-item class="_item__col" :label="priceLabel"> | |
| <el-input type="number" class="_input-el" v-model.number="form.price" @change="emitForm" /> | |
| <span class="_price-unit">{{ priceUnit }}</span> | |
| </el-form-item> |
| <template> | |
| <div class="field-collection"> | |
| <el-form class="_item" v-for="(form, i) in C" :key="i" inline label-width="120px"> | |
| <el-form-item class="_item__col" :label="type + '编号'"> | |
| <el-input type="text" class="_input-el" v-model="form.number" @change="emitForm" /> | |
| </el-form-item> | |
| <el-form-item class="_item__col" :label="priceLabel"> | |
| <el-input type="number" class="_input-el" v-model.number="form.price" @change="emitForm" /> | |
| <span class="_price-unit">{{priceUnit}}</span> | |
| </el-form-item> |
| import React, { Component, Fragment } from 'react'; | |
| import { Dialog } from 'saltui'; | |
| import { observer } from 'mobx-react'; | |
| import { toJS } from 'mobx'; | |
| import { | |
| Viewport, | |
| InputField, | |
| DataList, | |
| NoContext, | |
| PickerField, |
| export DOCKER_MAPPING_DEPLOY_VOLUME="/deployment" | |
| export PROJECT_DEPLOY_DIR_NAME_CURRENT="$DOCKER_MAPPING_DEPLOY_VOLUME/$CI_PROJECT_NAME/$CI_COMMIT_REF_NAME/$(git log -1 --pretty='%h')" | |
| export PROJECT_DEPLOY_DIR_NAME_LATEST="$DOCKER_MAPPING_DEPLOY_VOLUME/$CI_PROJECT_NAME/$CI_COMMIT_REF_NAME/latest" | |
| export TEST_ORIGIN="http://192.168.1.33:8000" | |
| mkdir -p $PROJECT_DEPLOY_DIR_NAME_CURRENT | |
| mkdir -p $PROJECT_DEPLOY_DIR_NAME_LATEST | |
| npm run build | |
| ls -lh build | |
| cp -r build/* $PROJECT_DEPLOY_DIR_NAME_CURRENT |
| import { Toast } from 'saltui'; | |
| import Axios from 'axios'; | |
| import env from 'src/env'; | |
| export const requestHeaders = { 'Content-Type': 'application/json' }; | |
| export const transformRequest = (data = {}, headers) => { | |
| if (typeof data === 'string') return data; | |
| return JSON.stringify(data); |
| import { Toast } from 'saltui'; | |
| import Axios from 'axios'; | |
| import env from 'src/env'; | |
| export const requestHeaders = { 'Content-Type': 'application/json' }; | |
| export const transformRequest = (data = {}, headers) => { | |
| if (typeof data === 'string') return data; | |
| return JSON.stringify(data); |