npm-react-module:使用Babel ES6,Prettier,Lint开发ReactJS组件的样板

时间:2021-04-30 17:34:20
【文件属性】:
文件名称:npm-react-module:使用Babel ES6,Prettier,Lint开发ReactJS组件的样板
文件大小:579KB
文件格式:ZIP
更新时间:2021-04-30 17:34:20
react npm boilerplate reactjs JavaScript 使用Babel ES6,Prettier,Lint开发ReactJS组件的样板。 安装 git clone --depth=1 --branch=master https://github.com/lassegit/npm-react-module CustomReactModule && cd $_ && sudo rm -r .git/ 删除.git文件夹,然后在src/index.js重命名该组件。 样式驻留在src/style.css 。 指令 npm run dev dev-启动webpack进行模块开发。 您可以打开examples/index.html并自定义examples/index.js来测试您的代码。 Webpack配置驻留在examples/webpack.config.js 。 npm run lint你的代码 npm run prettier -在src /
【文件预览】:
npm-react-module-master
----.gitignore(595B)
----.babelrc(79B)
----.eslintrc(735B)
----package.json(2KB)
----package-lock.json(380KB)
----src()
--------index.js(287B)
--------style.css(0B)
----LICENCE(1KB)
----examples()
--------webpack.config.js(823B)
--------index.js(248B)
--------style.css(0B)
--------index.html(275B)
--------bundle.js(1.92MB)
----README.md(881B)
----lib()
--------index.js(3KB)
--------style.css(0B)
----.editorconfig(304B)
----.prettierrc(223B)

网友评论