-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json.hbs
69 lines (69 loc) · 2.03 KB
/
package.json.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"name": "{{{ projectName }}}",
"author": "{{{ author }}}",
"version": "1.0.0",{{#if config.cjs}}
"main": "dist/{{{ projectName }}}.js",{{/if}}{{#if config.esm}}
"module": "dist/{{{ projectName }}}.esm.js",{{/if}}{{#if config.iife}}
"browser": "dist/{{{ projectName }}}.iife.js",{{/if}}
"license": "MIT",
"scripts": {
"build": "yarn build:lib && yarn build:docs && yarn build:readme",
"build:lib": "rollup -c{{#if config.iife}} && gzip -c dist/{{{ projectName }}}.iife.js > dist/{{{ projectName }}}.iife.js.gz{{/if}}",
"build:docs": "jsdoc2md --template DOCS.hbs --files dist/{{{ projectName }}}{{#if config.cjs}}{{else}}{{#if config.esm}}esm{{else}}iife{{/if}}{{/if}}.js > DOCS.md",
"build:readme": "pls docs readme --template README.hbs > README.md",
"build:live": "nodemon -w src --exec yarn build",
"lint": "eslint --ext .js --ignore-path .gitignore src/",
"test": "NODE_ENV=test ava --serial --verbose",
"test:unit": "yarn test src/**/*.unit.js",
"test:all": "NODE_ENV=test ava --serial --verbose"
},
"files": [
"dist/*"
],
"devDependencies": {
"@ava/babel": "^1.0.1",
"ava": "^3.3.0",
"babel-eslint": "^10.0.3",
"eslint": "^6.8.0",
"esm": "^3.2.25",
"jsdoc-to-markdown": "^5.0.3",
"nodemon": "^2.0.2",
"nyc": "^15.0.0",
"rollup": "^1.31.0",
"rollup-plugin-alias": "^2.2.0",
"rollup-plugin-babel-minify": "^9.1.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-json": "^4.0.0",
"@pleasure-js/cli": "^1.0.0",
"standard-version": "^7.1.0"
},
"ava": {
"files": [
"test/**/*.test.js",
"src/**/*.unit.js"
],
"require": [
"esm"
],
"babel": true
},
"eslintConfig": {
"extends": "eslint:recommended",
"parser": "babel-eslint",
"env": {
"es6": true
},
"globals": {
"BigInt": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
}
},
"standard-version": {
"scripts": {
"precommit": "git add -f coverage"
}
}
}