Skip to content

Commit c2d151a

Browse files
author
Fumarola Fabio (UniCredit)
committed
update package.js to support npm
1 parent 12b6d8c commit c2d151a

File tree

1 file changed

+65
-10
lines changed

1 file changed

+65
-10
lines changed

package.json

Lines changed: 65 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,72 @@
11
{
22
"name": "paths-js-react-demo",
33
"version": "0.0.1",
4-
"dependencies": {},
4+
"repository": {
5+
"type": "git",
6+
"url": "https://github.com/fabiofumarola/paths-js-react-demo.git"
7+
},
8+
"keywords": [
9+
"paths-js",
10+
"demo"
11+
],
12+
"scripts": {
13+
"start": "npm run watch",
14+
"test": "mocha --reporter nyan --compilers js:babel/register --recursive",
15+
"clean": "rimraf dist/*",
16+
"browserify": "NODE_ENV=production browserify js/main.jsx -t babelify -d -p [minifyify --map main.js.map --output dist/main.js.map] > dist/main.js",
17+
"styles": "postcss -u postcss-mixins -u postcss-simple-extend -u postcss-nested -u postcss-simple-vars -u autoprefixer -d dist css/*.css",
18+
"server": "browser-sync start --files \"dist/main.css,dist/main.js\" --server ./ --reload-delay 1000",
19+
"build": "npm run create-dist && npm run clean && npm run copy-replace && parallelshell \"npm run styles\" \"npm run browserify\"",
20+
"watch": "npm run create-dist && npm run styles && npm run browserify && parallelshell \"npm run watchify\" \"npm run watch-css -s\" \"npm run watch-lint\" \"npm run server\"",
21+
"watchify": "watchify -t babelify js/main.jsx -o dist/main.js",
22+
"watch-css": "chokidar \"css/\" -c \"npm run styles\" ",
23+
"watch-lint": "esw -w --ext .jsx js/",
24+
"copy-replace": "cp index.html dist/ && replace \"css/\" \"\" dist/index.html",
25+
"create-dist": "mkdir -p dist"
26+
},
27+
"bugs": {
28+
"url": "https://github.com/unicredit/react-boilerplate/issues"
29+
},
30+
"homepage": "https://github.com/unicredit/react-boilerplate",
31+
"dependencies": {
32+
"bootstrap": "^3.3.6",
33+
"lodash": "^3.10.1",
34+
"pajamas": "^1.6.0",
35+
"paths-js": "^0.3.5",
36+
"react": "^0.14.6",
37+
"react-bootstrap": "^0.28.2",
38+
"react-dom": "^0.14.6",
39+
"requirejs": "^2.1.22",
40+
"requirejs-plugins": "^1.0.2",
41+
"requirejs-text": "^2.0.12",
42+
"vivus": "^0.2.3"
43+
},
544
"devDependencies": {
6-
"grunt": "0.4.5",
7-
"grunt-contrib-clean": "0.6.0",
8-
"grunt-contrib-connect": "0.9.0",
9-
"grunt-contrib-copy": "0.7.0",
10-
"grunt-contrib-watch": "0.6.1",
11-
"grunt-contrib-requirejs": "0.4.4",
12-
"grunt-react": "0.10.0",
13-
"load-grunt-config": "0.16.0",
14-
"connect-livereload": "0.5.3"
45+
"autoprefixer": "^6.1.2",
46+
"babel": "^6.1.18",
47+
"babel-core": "^6.2.1",
48+
"babel-eslint": "^4.1.6",
49+
"babel-preset-es2015": "^6.1.18",
50+
"babel-preset-react": "^6.1.18",
51+
"babelify": "^7.2.0",
52+
"browser-sync": "^2.10.0",
53+
"browserify": "^12.0.1",
54+
"chokidar-cli": "^1.2.0",
55+
"cssnano": "^3.3.2",
56+
"eslint": "^1.10.3",
57+
"eslint-config-airbnb": "^1.0.2",
58+
"eslint-plugin-react": "^3.11.2",
59+
"eslint-watch": "^2.1.4",
60+
"minifyify": "^7.1.0",
61+
"parallelshell": "^2.0.0",
62+
"postcss-cli": "^2.3.2",
63+
"postcss-mixins": "^2.1.1",
64+
"postcss-nested": "^1.0.0",
65+
"postcss-simple-extend": "^1.0.0",
66+
"postcss-simple-vars": "^1.1.0",
67+
"replace": "^0.3.0",
68+
"rimraf": "^2.4.4",
69+
"watchify": "^3.6.1"
1570
},
1671
"engines": {
1772
"node": ">=0.10.0"

0 commit comments

Comments
 (0)