Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaid committed Aug 1, 2019
0 parents commit 7eca5df
Show file tree
Hide file tree
Showing 17 changed files with 19,142 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ["jaid"]
}
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extends browserslist-config-jaid-universal
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = false
trim_trailing_whitespace = true

[/package.json]
insert_final_newline = true # npm install rewrites the JSON file with a final newline, so we manually keep them to prevent unneeded stashes
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
test/fixtures/
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: "jaid"
}
2 changes: 2 additions & 0 deletions .github/funding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: Jaid
custom: https://twitch.tv/products/jaidchen
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# dotenv
.env

# Node packages
node_modules

# npm
package-lock.json
!/package-lock.json
npm-debug.log
npm-debug.log.*
.npmrc
/report.*.json

# pnpm
shrinkwrap.yaml
!/shrinkwrap.yaml
pnpm-debug.log

# Yarn
yarn.lock
!/yarn.lock
yarn-error.log

# Generated or temporary content
dist
temp

# IDEs
/.vscode/
/.idea/
36 changes: 36 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
language: node_js
node_js: [node, lts/*]
script:
- curl https://gist.githubusercontent.com/Jaid/284917bd3e938add97b699a18b957d8c/raw/ciNode.bash | bash
jobs:
include:
- stage: Deploy
if: tag IS present
node_js: node
script:
- curl https://gist.githubusercontent.com/Jaid/284917bd3e938add97b699a18b957d8c/raw/ciNodeRelease.bash | bash
- pkgName=$(npx package-name-cli)
- domain=$(npx package-field-cli domain || echo $pkgName.jaid.codes)
deploy:
- provider: pages
local_dir: dist/page
fqdn: $domain
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
tags: true
condition: "-f ~/deployPage"
- provider: releases
file_glob: true
file: dist/github/*
skip_cleanup: true
api_key: $GITHUB_TOKEN
on:
tags: true
condition: "-f ~/deployReleases"
- provider: script
script: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && npm publish dist/package/production
skip_cleanup: true
on:
tags: true
condition: "-f ~/deployNpm"
14 changes: 14 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
testEnvironment: "node",
coverageDirectory: "dist/jest/coverage",
collectCoverageFrom: ["src/**"],
testPathIgnorePatterns: [
"/node_modules/",
"/dist/",
],
moduleNameMapper: {
"^root": "<rootDir>",
"^src": "<rootDir>/src",
"^lib": "<rootDir>/src/lib",
},
}
21 changes: 21 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"compilerOptions": {
"charset": "utf8",
"baseUrl": "./",
"paths": {
"root/*": [
"./*"
],
"src/*": [
"src/*"
],
"lib/*": [
"src/lib/*"
],
},
},
"exclude": [
"node_modules",
"dist"
],
}
21 changes: 21 additions & 0 deletions license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright © 2019, Jaid <[email protected]> (github.com/jaid)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 7eca5df

Please sign in to comment.