|
3 | 3 | "version": "1.0.3",
|
4 | 4 | "description": "Ready-to-go Preact starter project powered by webpack.",
|
5 | 5 | "scripts": {
|
6 |
| - "dev": "NODE_ENV=development webpack-dev-server --inline --progress", |
7 |
| - "start": "superstatic build -p ${PORT:-8080} --gzip -c '{\"routes\":{\"**\":\"index.html\"},\"cache_control\":{\"**\":86400}}'", |
| 6 | + "dev": "NODE_ENV=development webpack-dev-server --inline --hot --progress", |
| 7 | + "start": "superstatic build -p ${PORT:-8080} --host 0.0.0.0 --gzip -c '{\"rewrites\": [{\"source\":\"**\",\"destination\":\"index.html\"}],\"headers\":[{\"source\":\"**\",\"headers\":[{\"key\":\"Cache-Control\",\"value\":\"max-age=86400\"}]}]}'", |
8 | 8 | "prestart": "npm run build",
|
9 | 9 | "build": "NODE_ENV=production webpack -p --progress",
|
10 | 10 | "prebuild": "mkdir -p build && ncp src/assets build/assets",
|
11 |
| - "test": "eslint src tests/**/*.js" |
| 11 | + "test": "npm run -s lint && npm run -s test:karma", |
| 12 | + "test:karma": "karma start test/karma.conf.js --single-run", |
| 13 | + "lint": "eslint {src,test}" |
12 | 14 | },
|
13 | 15 | "keywords": [
|
14 | 16 | "preact",
|
|
18 | 20 | "license": "MIT",
|
19 | 21 | "author": "Jason Miller <[email protected]>",
|
20 | 22 | "devDependencies": {
|
21 |
| - "autoprefixer": "^6.3.1", |
22 |
| - "babel": "^6.3.26", |
23 |
| - "babel-core": "^6.4.0", |
24 |
| - "babel-eslint": "^5.0.0-beta6", |
| 23 | + "autoprefixer": "^6.3.3", |
| 24 | + "babel": "^6.5.2", |
| 25 | + "babel-core": "^6.7.2", |
| 26 | + "babel-eslint": "^5.0.0", |
25 | 27 | "babel-loader": "^6.2.1",
|
26 | 28 | "babel-plugin-transform-decorators-legacy": "^1.3.4",
|
27 |
| - "babel-plugin-transform-react-jsx": "^6.4.0", |
28 |
| - "babel-preset-es2015": "^6.3.13", |
| 29 | + "babel-plugin-transform-react-jsx": "^6.6.5", |
| 30 | + "babel-preset-es2015": "^6.6.0", |
29 | 31 | "babel-preset-es2015-minimal": "^1.0.0",
|
30 |
| - "babel-preset-stage-0": "^6.3.13", |
31 |
| - "babel-register": "^6.4.3", |
32 |
| - "babel-runtime": "^6.3.19", |
| 32 | + "babel-preset-stage-0": "^6.5.0", |
| 33 | + "babel-register": "^6.7.2", |
| 34 | + "babel-runtime": "^6.6.1", |
33 | 35 | "chai": "^3.5.0",
|
34 |
| - "core-js": "^2.0.3", |
| 36 | + "core-js": "^2.2.1", |
35 | 37 | "css-loader": "^0.23.1",
|
36 |
| - "eslint": "^1.10.3", |
| 38 | + "eslint": "^2.2.0", |
37 | 39 | "extract-text-webpack-plugin": "^1.0.1",
|
38 | 40 | "file-loader": "^0.8.5",
|
39 | 41 | "html-webpack-plugin": "^1.7.0",
|
40 | 42 | "json-loader": "^0.5.4",
|
41 |
| - "less": "^2.5.3", |
| 43 | + "karma": "^0.13.22", |
| 44 | + "karma-chai": "^0.1.0", |
| 45 | + "karma-chai-sinon": "^0.1.5", |
| 46 | + "karma-mocha": "^0.2.2", |
| 47 | + "karma-mocha-reporter": "^2.0.0", |
| 48 | + "karma-phantomjs-launcher": "^1.0.0", |
| 49 | + "karma-sourcemap-loader": "^0.3.7", |
| 50 | + "karma-webpack": "^1.7.0", |
| 51 | + "less": "^2.6.1", |
42 | 52 | "less-loader": "^2.2.2",
|
| 53 | + "mocha": "^2.4.5", |
43 | 54 | "ncp": "^2.0.0",
|
44 |
| - "npm-run-all": "^1.5.1", |
45 |
| - "postcss-loader": "^0.8.0", |
| 55 | + "phantomjs-prebuilt": "^2.1.6", |
| 56 | + "postcss-loader": "^0.8.2", |
46 | 57 | "raw-loader": "^0.5.1",
|
| 58 | + "sinon": "^1.17.3", |
| 59 | + "sinon-chai": "^2.8.0", |
47 | 60 | "source-map-loader": "^0.1.5",
|
48 |
| - "superstatic": "^3.0.0", |
| 61 | + "style-loader": "^0.13.0", |
| 62 | + "superstatic": "^4.0.2", |
49 | 63 | "url-loader": "^0.5.7",
|
50 |
| - "webpack": "^1.12.11", |
| 64 | + "webpack": "^1.12.14", |
51 | 65 | "webpack-dev-server": "^1.14.1"
|
52 | 66 | },
|
53 | 67 | "dependencies": {
|
54 | 68 | "decko": "^1.1.3",
|
55 |
| - "preact": "^2.8.2", |
56 |
| - "preact-compat": "^0.5.0", |
57 |
| - "preact-router": "^1.1.0", |
58 |
| - "proptypes": "^0.14.1" |
| 69 | + "preact": "^4.5.0", |
| 70 | + "preact-compat": "^1.6.1", |
| 71 | + "preact-router": "^1.3.0", |
| 72 | + "proptypes": "^0.14.3" |
59 | 73 | }
|
60 | 74 | }
|
0 commit comments