Skip to content

Commit cf37f21

Browse files
committed
🚜 📦 Refactor and make more standard the packags.jsons
1 parent 2f32e5d commit cf37f21

File tree

6 files changed

+19
-9
lines changed

6 files changed

+19
-9
lines changed

packages/accurapp-scripts/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "accurapp-scripts",
33
"version": "3.2.10",
4-
"description": "Scripts for AccurApp.",
4+
"description": "Scripts for AccurApp",
55
"repository": "accurat/accurapp",
66
"license": "MIT",
77
"engines": {
8-
"node": ">=6.5"
8+
"node": ">=7"
99
},
1010
"files": [
1111
"bin",
@@ -33,5 +33,5 @@
3333
"semver": "^5.5.0",
3434
"webpack": "^3.10.0",
3535
"webpack-dev-server": "^2.11.1"
36-
},
36+
}
3737
}

packages/accurapp-scripts/scripts/_utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function noop() {}
2222

2323
function coloredBanner(text, colors = ['blue', 'red']) {
2424
// If the console is small, we show only the logo
25-
if (process.stdout.columns < 125 && text.includes(' accurapp')) {
25+
if (text.includes(' accurapp') && process.stdout.columns < 125) {
2626
text = text.slice(0, -' accurapp'.length)
2727
}
2828

packages/create-accurapp/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ const packageJson = {
123123
start: 'accurapp-scripts start',
124124
build: 'accurapp-scripts build',
125125
},
126+
browserslist: {
127+
production: ['last 2 versions', 'ie 11'],
128+
development: ['last 1 Chrome version'],
129+
},
126130
}
127131
if (isRealRun) writePackageJson(appDir, packageJson)
128132

packages/create-accurapp/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"repository": "accurat/accurapp",
66
"license": "MIT",
77
"engines": {
8-
"node": ">=6.5"
8+
"node": ">=7"
99
},
1010
"files": [
1111
"index.js",

packages/eslint-config-accurapp/package.json

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
"description": "ESLint configuration used by Accurat",
55
"repository": "accurat/accurapp",
66
"license": "MIT",
7+
"engines": {
8+
"node": ">=7"
9+
},
10+
"files": [
11+
"index.js"
12+
],
713
"dependencies": {
814
"babel-eslint": "^7.2.2",
915
"eslint": "^3.19.0",

packages/webpack-preset-accurapp/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"repository": "accurat/accurapp",
66
"license": "MIT",
77
"engines": {
8-
"node": ">=6.5"
8+
"node": ">=7"
99
},
10-
"keywords": [
11-
"accurapp",
12-
"webpack-blocks"
10+
"files": [
11+
"index.js",
12+
"customBlocks.js"
1313
],
1414
"dependencies": {
1515
"@webpack-blocks/assets": "^1.0.0-rc",

0 commit comments

Comments
 (0)