Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
vegarringdal committed Aug 24, 2019
1 parent 17d6b74 commit f329a8a
Show file tree
Hide file tree
Showing 13 changed files with 8,242 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
dev
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"trailingComma": "none",
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"printWidth": 100,
"proseWrap":"always"
}
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"eamodio.gitlens",
"pflannery.vscode-versionlens",
"esbenp.prettier-vscode"
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"html.format.wrapAttributes": "force-aligned",
"editor.tabSize": 4,
"editor.wordWrap": "off",
"prettier.tslintIntegration": true
}
40 changes: 40 additions & 0 deletions fuse.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
const { fusebox, sparky } = require('fuse-box');
const { pluginTypeChecker } = require('fuse-box-typechecker');

class Context {
getConfig() {
return fusebox({
target: 'browser',
homeDir: './',
output: `dev`,
entry: `src/index.ts`,
webIndex: {
template: `src/index.html`
},
logging: { level: 'verbose' },
dependencies: {
include: ['tslib']
},
cache: {
root: '.cache',
enabled: false
},
watch: { ignored: ['dist', 'dev'] },
hmr: true,
devServer: true,

plugins: [
pluginTypeChecker({
basePath: '.',
tsConfig: './tsconfig.json'
})
]
});
}
}
const { task } = sparky(Context);

task('default', async ctx => {
const fuse = ctx.getConfig();
await fuse.runDev();
});
Loading

0 comments on commit f329a8a

Please sign in to comment.