blogfoster / blogfoster-scripts Goto Github PK
View Code? Open in Web Editor NEWSingle-command, zero-config tooling for Node.js projects
License: MIT License
Single-command, zero-config tooling for Node.js projects
License: MIT License
Running blogfoster-scripts format myFile.js
should not try to format all files but only myFile.js
.
This increases the performance of the script and is important when formatting during git hooks.
Currently, the command lint
only looks through the /src
folder. We should consider linting all .js
files...
I wanted to test my application (built with blogfoster-scripts) with Jest. But for compiling the code Jest is looking for a .babelrc
file, which is not provided by blogfoster-scripts.
Therefore I created jest.config.json
instead:
{
"transform": {
"^.+\\.js$": "<rootDir>/jest.transform.js"
}
}
which calls jest.transform.js
:
const webpackConfig = require('blogfoster-scripts/config/webpack.config.prod');
const babelOptions = webpackConfig.module.rules[0].use.options;
module.exports = require('babel-jest').createTransformer(babelOptions);
Now I can start jest with jest --config jest.config.json
It looks like a bad workaround. So, how about adding Jest and providing a blogfoster-scripts test
command?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.