Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Mar 6, 2019
1 parent 99daf49 commit 475573e
Show file tree
Hide file tree
Showing 13 changed files with 2,216 additions and 0 deletions.
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
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space

[*]
indent_size = 4

[{.*rc,ts*.json,package.json}]
indent_size = 2
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
/es
/dist
.rpt2_cache
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.test.tsx
package.json
package-lock.json
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "all",
"printWidth": 120,
"semi": false,
"singleQuote": true,
"jsxBracketSameLine": true
}
27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "@holoflows/kit",
"version": "0.1.0",
"module": "./es/index.js",
"main": "./dist/out.js",
"typings": "./es/",
"dependencies": {
"@types/lodash-es": "^4.1.4",
"@types/node": "10.12.23",
"events": "^3.0.0",
"lodash-es": "^4.1.2"
},
"scripts": {
"start": "npm-run-all --parallel start-tsc start-rollup",
"start-tsc": "tsc --watch",
"start-rollup": "rollup -c -w"
},
"devDependencies": {
"npm-run-all": "^4.1.5",
"rollup": "^1.1.2",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-replace": "^2.1.0",
"rollup-plugin-typescript2": "^0.19.2",
"typescript": "3.3.3"
}
}
31 changes: 31 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import typescript from 'rollup-plugin-typescript2'
import commonjs from 'rollup-plugin-commonjs'
import nodeResolve from 'rollup-plugin-node-resolve'
import replace from 'rollup-plugin-replace'

const config = {
input: './src/index.ts',
output: {
file: './dist/out.js',
format: 'iife',
name: 'HoloflowsKit',
},
plugins: [
nodeResolve({
browser: true,
preferBuiltins: false,
}),
replace({
'process.env.NODE_ENV': JSON.stringify('production'),
}),
typescript({ tsconfigOverride: { compilerOptions: { target: 'es5' } } }),
commonjs({
extensions: ['.js', '.ts', '.tsx'],
namedExports: {
events: ['EventEmitter'],
},
}),
],
}

export default config
Loading

0 comments on commit 475573e

Please sign in to comment.