Skip to content

Commit 4303e7e

Browse files
committed
feat:init
1 parent f5d939c commit 4303e7e

File tree

8 files changed

+124
-59
lines changed

8 files changed

+124
-59
lines changed

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
test/fixtures
2+
coverage
3+
test/web
4+
node_modules
5+
public
6+
dist

.eslintrc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"extends": "eslint",
3+
"env": {
4+
"node": true,
5+
"es6": true,
6+
"mocha": true
7+
},
8+
"parserOptions": {
9+
"ecmaVersion": 6
10+
},
11+
"rules": {
12+
"indent": [
13+
"error",
14+
2
15+
],
16+
"new-cap": "off",
17+
"newline-after-var": "off",
18+
"no-invalid-this": "off",
19+
"quotes": [
20+
"error",
21+
"single"
22+
],
23+
"guard-for-in": "off",
24+
"no-console": "off",
25+
"no-undefined": "off",
26+
"array-bracket-spacing": "off",
27+
"no-unused-expressions": "off",
28+
"func-style": [
29+
"error",
30+
"expression"
31+
],
32+
"comma-dangle": [
33+
"error",
34+
"never"
35+
]
36+
}
37+
}

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.js linguist-language=javascript
2+
*.css linguist-language=javascript
3+
*.html linguist-language=javascript

.gitignore

Lines changed: 11 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,12 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
8-
# Runtime data
9-
pids
10-
*.pid
11-
*.seed
12-
*.pid.lock
13-
14-
# Directory for instrumented libs generated by jscoverage/JSCover
15-
lib-cov
16-
17-
# Coverage directory used by tools like istanbul
18-
coverage
19-
20-
# nyc test coverage
21-
.nyc_output
22-
23-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24-
.grunt
25-
26-
# Bower dependency directory (https://bower.io/)
27-
bower_components
28-
29-
# node-waf configuration
30-
.lock-wscript
31-
32-
# Compiled binary addons (http://nodejs.org/api/addons.html)
33-
build/Release
34-
35-
# Dependency directories
1+
logs/
2+
npm-debug.log
363
node_modules/
37-
jspm_packages/
38-
39-
# Typescript v1 declaration files
40-
typings/
41-
42-
# Optional npm cache directory
43-
.npm
44-
45-
# Optional eslint cache
46-
.eslintcache
47-
48-
# Optional REPL history
49-
.node_repl_history
50-
51-
# Output of 'npm pack'
52-
*.tgz
53-
54-
# Yarn Integrity file
55-
.yarn-integrity
56-
57-
# dotenv environment variables file
58-
.env
59-
4+
coverage/
5+
.idea/
6+
run/
7+
.DS_Store
8+
*.swp
9+
.vscode
10+
*.iml
11+
dist
12+
public/

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
sudo: false
2+
language: node_js
3+
node_js:
4+
- '6'
5+
- '7'
6+
- '8'
7+
install:
8+
- npm i npminstall && npminstall
9+
script:
10+
- npm run ci
11+
after_script:
12+
- npminstall codecov && codecov

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# easywebpack-react
2-
react webpack building for easywebpack
2+
3+
TODO: react webpack building for easywebpack

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
'use strict';
2+
exports.EasyWebpack = require('easywebpack');
3+
exports.webpack = exports.EasyWebpack.webpack;
4+
exports.merge = exports.EasyWebpack.merge;

package.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "easywebpack-react",
3+
"version": "0.0.1",
4+
"description": "react webpack building solution for easywebpack",
5+
"keywords": [
6+
"webpack",
7+
"easywebpack",
8+
"react"
9+
],
10+
"dependencies": {
11+
"easywebpack": "^0.4.0"
12+
},
13+
"devDependencies": {
14+
"chai": "^4.0.0",
15+
"cross-env": "^5.0.1",
16+
"eslint": "^3.18.0",
17+
"eslint-config-eslint": "^4.0.0",
18+
"mocha": "^3.4.2"
19+
},
20+
"engines": {
21+
"node": ">=6.0.0"
22+
},
23+
"scripts": {
24+
"start": "cross-env NODE_ENV=development node test/build",
25+
"build": "cross-env NODE_ENV=production node test/build",
26+
"lint": "eslint .",
27+
"fix": "eslint --fix .",
28+
"test": "mocha test",
29+
"ci": "npm run lint && npm run cov"
30+
},
31+
"files": [
32+
"index.js",
33+
"lib",
34+
"tool"
35+
],
36+
"ci": {
37+
"version": "6, 7, 8"
38+
},
39+
"repository": {
40+
"type": "git",
41+
"url": "git+https://github.com/hubcarl/easywebpack-react.git"
42+
},
43+
"bugs": {
44+
"url": "https://github.com/hubcarl/easywebpack-react/issues"
45+
},
46+
"homepage": "https://github.com/hubcarl/easywebpack-react#readme",
47+
"author": "[email protected]",
48+
"license": "MIT"
49+
}

0 commit comments

Comments
 (0)