Skip to content

Commit 74f1f35

Browse files
author
Alexander Vassbotn Røyne-Helgesen
committed
chore: 🤖 Initial run
1 parent cc2c190 commit 74f1f35

17 files changed

+17274
-1
lines changed

‎.babelrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"browsers": ["> 5%", "last 2 firefox versions", "last 2 edge versions"]
8+
},
9+
"modules": false,
10+
"useBuiltIns": "usage",
11+
"corejs": "3.9.0"
12+
}
13+
]
14+
],
15+
"plugins": [
16+
"@babel/plugin-proposal-export-default-from",
17+
"@babel/transform-regenerator",
18+
"@babel/transform-async-to-generator"
19+
]
20+
}

‎.browserslistrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Browsers that we support
2+
3+
> 5%
4+
last 2 firefox versions
5+
last 2 edge versions

‎.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
indent_size = 2

‎.eslintrc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parser": "babel-eslint",
3+
"parserOptions": {
4+
"ecmaVersion": 6,
5+
"sourceType": "module",
6+
"ecmaFeatures": {
7+
"classes": true
8+
}
9+
},
10+
"env": {
11+
"browser": true,
12+
"amd": true,
13+
"es6": true,
14+
"node": true,
15+
"jest/globals": true
16+
},
17+
"plugins": ["jest"],
18+
"rules": {
19+
"comma-dangle": 1,
20+
"quotes": [1, "single"],
21+
"no-undef": 2,
22+
"global-strict": 0,
23+
"indent": [1, 2, { "SwitchCase": 1 }],
24+
"no-extra-semi": 1,
25+
"no-underscore-dangle": 0,
26+
"no-console": 1,
27+
"no-unused-vars": 1,
28+
"no-trailing-spaces": [1, { "skipBlankLines": true }],
29+
"no-unreachable": 1,
30+
"no-alert": 0,
31+
"semi": 1
32+
},
33+
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"]
34+
}

‎.npmignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
11+
# Directory for instrumented libs generated by jscoverage/JSCover
12+
lib-cov
13+
14+
# Coverage directory used by tools like istanbul
15+
coverage
16+
17+
# nyc test coverage
18+
.nyc_output
19+
20+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
21+
.grunt
22+
23+
# node-waf configuration
24+
.lock-wscript
25+
26+
# Compiled binary addons (http://nodejs.org/api/addons.html)
27+
build/Release
28+
29+
# Dependency directories
30+
node_modules
31+
jspm_packages
32+
33+
# Optional npm cache directory
34+
.npm
35+
36+
# Optional REPL history
37+
.node_repl_history
38+
39+
*.tgz
40+
41+
42+
.npmrc
43+
.yarnrc
44+
bin
45+
v8-compile-cache-0
46+
.changelog
47+
/public
48+
.vs
49+
dist

‎.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"arrowParens": "avoid",
3+
"semi": true,
4+
"singleQuote": true,
5+
"jsxBracketSameLine": true,
6+
"tabWidth": 2,
7+
"printWidth": 120
8+
}

‎.stylintrc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"blocks": false,
3+
"brackets": "never",
4+
"colons": "never",
5+
"colors": "always",
6+
"commaSpace": false,
7+
"commentSpace": false,
8+
"cssLiteral": "never",
9+
"depthLimit": false,
10+
"duplicates": false,
11+
"efficient": "always",
12+
"extendPref": false,
13+
"globalDupe": false,
14+
"indentPref": 2,
15+
"leadingZero": false,
16+
"maxErrors": false,
17+
"maxWarnings": false,
18+
"mixed": false,
19+
"namingConvention": false,
20+
"namingConventionStrict": false,
21+
"noImportant": false,
22+
"parenSpace": false,
23+
"placeholders": false,
24+
"prefixVarsWithDollar": "always",
25+
"quotePref": false,
26+
"reporter": "stylint-stylish",
27+
"semicolons": "never",
28+
"stackedProperties": "never",
29+
"trailingWhitespace": "never",
30+
"universal": false,
31+
"valid": true,
32+
"zeroUnits": "never",
33+
"zIndexNormalize": false
34+
}

‎README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# demo
1+
# @phun-ky/demo
2+
3+
$ npm i @phun-ky/demo

‎gulpfile.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
const gulp = require('gulp');
2+
const cssnano = require('cssnano');
3+
const stylus = require('gulp-stylus');
4+
const rename = require('gulp-rename');
5+
const sourcemaps = require('gulp-sourcemaps');
6+
const postcss = require('gulp-postcss');
7+
const banner = require('gulp-banner');
8+
const pkg = require('./package.json');
9+
10+
const bannerTemplate =
11+
'/**!\n' +
12+
' * <%= pkg.name %> <%= pkg.version %>\n' +
13+
' * <%= pkg.description %>\n' +
14+
' * <%= pkg.homepage %>\n' +
15+
' *\n' +
16+
' * Copyright © 2021-' +
17+
new Date().getFullYear() +
18+
' <%= pkg.author.name %>\n' +
19+
'*/\n\n';
20+
21+
const plugins = [
22+
{
23+
reduceIdents: false,
24+
discardDuplicates: true,
25+
discardComments: {
26+
removeAll: true
27+
},
28+
autoprefixer: {
29+
add: true,
30+
cascade: false
31+
},
32+
zindex: false
33+
}
34+
];
35+
36+
const build = () =>
37+
gulp
38+
.src('./src/styles.styl')
39+
.pipe(stylus({ 'include css': true, 'disable cache': true }))
40+
.pipe(rename('styles.css'))
41+
.pipe(sourcemaps.init())
42+
.pipe(postcss([cssnano(plugins)]))
43+
.pipe(
44+
banner(bannerTemplate, {
45+
pkg: pkg
46+
})
47+
)
48+
.pipe(sourcemaps.write('.'))
49+
.pipe(gulp.dest('./dist/'));
50+
51+
gulp.task('default', build);

‎jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
setupFilesAfterEnv: ['./test.setup.js'],
3+
verbose: true,
4+
testMatch: ['**/test/*.js?(x)']
5+
};

0 commit comments

Comments
 (0)