1.0.9 • Published 3 years ago
kth-node-inferno v1.0.9
kth-node-inferno
Gulp transpiling tasks for isomorphic Inferno.js in Node.js projects.
Install with npm i -D kth-node-inferno babel-preset-es2015 babel-preset-stage-0 babel-eslint eslint-config-standard eslint-config-standard-jsx
ES6-support and presets
This package doesn't contain any babel presets. To support ES6 or similar you need to add them to your package.json:
"devDependencies": {
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-0": "^6.24.1"
}
...
"babel": {
"presets": [
"es2015",
"stage-0"
]
}
Linting
You will probably want to add the following linting settings to your package.json
"devDependencies": {
"babel-eslint": "^7.2.3",
"eslint-config-standard": "^10.2.1",
"eslint-config-standard-jsx": "^4.0.2",
}
...
"standard": {
"parser": "babel-eslint",
"extends": [
"standard",
"standard-jsx"
]
}
Gulp Tasks
These Gulp tasks will build your client and server-side bundles to be used in your project.
const gulp = require('gulp')
const mergeStream = require('merge-stream')
const infernoTask = require('kth-node-inferno/gulpTasks/infernoTask')({
src: [
'public/js/app/app.jsx'
],
destinationPath: 'dist/js',
dirname: __dirname
})
const infernoServerTask = require('kth-node-inferno/gulpTasks/infernoServerTask')({
src: [
'public/js/app/app.jsx'
],
destinationPath: 'dist/js/server',
dirname: __dirname
})
// This is your task
gulp.task('inferno', function () {
return mergeStream(
infernoTask(),
infernoServerTask()
)
})
1.0.9
3 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
5 years ago
0.3.2
5 years ago
1.0.5
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.3.1
5 years ago
0.3.0
6 years ago
0.2.0
7 years ago
0.1.6
7 years ago
0.1.5
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago