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
/* eslint-disable import/no-extraneous-dependencies */ | |
const path = require('path'); | |
const fs = require('fs'); | |
const glob = require('glob'); | |
const concurrently = require('concurrently'); | |
const { promisify } = require('util'); | |
const rand = `${Math.random()}`.substring(0, 10); | |
const CYPRESS_TMP_FILE = `./cypress.${rand}.json`; |
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
const HEX_BYTES_RELATIONS = [ | |
["0", "0000"], | |
["1", "0001"], | |
["2", "0010"], | |
["3", "0011"], | |
["4", "0100"], | |
["5", "0101"], | |
["6", "0110"], | |
["7", "0111"], | |
["8", "1000"], |
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
module.exports = { | |
//... | |
externals: { | |
'popper.js': { | |
commonjs: 'popper.js', | |
amd: 'popper.js', | |
root: 'Popper', | |
} | |
} | |
}; |
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
npx vue-cli-service build --target lib --name index ./src/index.js --dest ./lib | |
npx babel ./src/style -d ./lib/style -D |
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
├── CHANGELOG.md | |
├── __tests__ | |
│ └── button.spec.js | |
├── lib | |
│ ├── index.common.js | |
│ ├── index.common.js.map | |
│ ├── index.umd.js | |
│ ├── index.umd.js.map | |
│ ├── index.umd.min.js | |
│ ├── index.umd.min.js.map |
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 webpackUniversalModuleDefinition(root, factory) { | |
if(typeof exports === 'object' && typeof module === 'object') | |
module.exports = factory(require("popper.js")); | |
else if(typeof define === 'function' && define.amd) | |
define(["popper.js"], factory); | |
else if(typeof exports === 'object') | |
exports["index"] = factory(require("popper.js")); | |
else | |
root["index"] = factory(root["Popper"]); | |
})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE_dbbc__) {}) |
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
import './dialog.scss' | |
import '@interal-components/button/lib/style' |
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
const { makeExecutableSchema } = require('graphql-tools'); | |
const typeDefs = [` | |
type Query { | |
hello: String | |
} | |
schema { | |
query: Query | |
}`]; |
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
import hashlib | |
import random | |
import string | |
import base64 | |
def randomword(length): | |
return ''.join(random.choice(string.lowercase) for i in range(length)) |
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
class Salesman < Sequel::Model(:crm_resources_salesmen) | |
include Restfy::Model | |
allow_method :update, :get, :query, :create | |
exclude_fields_for [:get, :query], :tenantId | |
exclude_fields_for_update :tenantId, :groupId | |
include_fields_for_create :id | |
one_to_many :logs | |
one_to_many :tasks |
NewerOlder