mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
1b527fca3f
Responsibility for finding and referencing images and fonts is now given to webpack. All the url references are now relative to the component scss file, and point to font & images files in src/, rather than assuming someone else will place them in dist. This makes the source more modular, and makes it easier to, for example, inline images are data URIs, or create a new build script that builds several modules for a project in a single pass. Workaround for bad font path in bundle.css: ExtactTextPlugin didn’t work as well with a subfolder reference in the filename. This is just a short-term fix and could probably be improved to put bundle.css back in the styles subfolder. Webpack handles images & fonts: Responsibility for finding and referencing images and fonts is now given to webpack. All the url references are now relative to the component scss file, and point to font & images files in src/, rather than assuming someone else will place them in dist. This makes the source more modular, and makes it easier to, for example, inline images are data URIs, or create a new build script that builds several modules for a project in a single pass. Clarify docs on spriting and webfonts: We've decided to remove sprity since it comes with hundreds of dependencies, and needs compilation within the "npm install" - dragging out the already overweight install process, and making the resulting node_modules/ folder less portable between systems.
116 lines
3.3 KiB
JSON
116 lines
3.3 KiB
JSON
{
|
|
"name": "silverstripe-framework",
|
|
"version": "4.0.0",
|
|
"description": "The SilverStripe framework",
|
|
"directories": {
|
|
"doc": "docs",
|
|
"test": "tests"
|
|
},
|
|
"engines": {
|
|
"node": "^4.2.0"
|
|
},
|
|
"scripts": {
|
|
"build": "WEBPACK_CHILD=js webpack",
|
|
"css": "WEBPACK_CHILD=css webpack",
|
|
"lock": "npm-shrinkwrap --dev",
|
|
"test": "NODE_PATH=\"./client/src:./admin/client/src\" jest",
|
|
"coverage": "NODE_PATH=\"./client/src:./admin/client/src\" jest --coverage",
|
|
"lint": "eslint client/src & eslint admin/client/src"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/silverstripe/silverstripe-framework.git"
|
|
},
|
|
"keywords": [
|
|
"silverstripe",
|
|
"framework"
|
|
],
|
|
"author": "SilverStripe Ltd",
|
|
"license": "BSD-3-Clause",
|
|
"bugs": {
|
|
"url": "https://github.com/silverstripe/silverstripe-framework/issues"
|
|
},
|
|
"homepage": "https://github.com/silverstripe/silverstripe-framework#readme",
|
|
"dependencies": {
|
|
"babel-polyfill": "^6.7.4",
|
|
"blueimp-file-upload": "^6.0.3",
|
|
"blueimp-load-image": "^1.1.3",
|
|
"blueimp-tmpl": "^1.0.2",
|
|
"bootstrap": "^4.0.0-alpha.2",
|
|
"chosen-js": "^1.5.1",
|
|
"deep-equal": "^1.0.1",
|
|
"deep-freeze-strict": "^1.1.1",
|
|
"es6-promise": "^3.1.2",
|
|
"history": "^2.1.2",
|
|
"isomorphic-fetch": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz",
|
|
"jquery-sizes": "^0.33.0",
|
|
"json-js": "^1.1.2",
|
|
"merge": "^1.2.0",
|
|
"page.js": "^4.13.3",
|
|
"qs": "^6.1.0",
|
|
"query-string": "^3.0.3",
|
|
"react-addons-css-transition-group": "^15.3.1",
|
|
"react": "^15.3.1",
|
|
"react-bootstrap-ss": "^0.30.5",
|
|
"react-dom": "^15.3.1",
|
|
"react-redux": "^4.4.1",
|
|
"react-router": "^2.4.1",
|
|
"react-router-redux": "^4.0.5",
|
|
"redux": "https://registry.npmjs.org/redux/-/redux-3.0.5.tgz",
|
|
"redux-thunk": "^2.1.0",
|
|
"tether": "^1.3.2",
|
|
"tinymce": "^4.3.3",
|
|
"url": "^0.11.0"
|
|
},
|
|
"devDependencies": {
|
|
"autoprefixer": "^6.4.0",
|
|
"babel-core": "^6.7.4",
|
|
"babel-jest": "^9.0.3",
|
|
"babel-loader": "^6.2.5",
|
|
"babel-plugin-transform-es2015-modules-umd": "^6.6.5",
|
|
"babel-plugin-transform-object-assign": "^6.5.0",
|
|
"babel-plugin-transform-object-rest-spread": "^6.8.0",
|
|
"babel-preset-es2015": "^6.6.0",
|
|
"babel-preset-react": "^6.5.0",
|
|
"css-loader": "^0.23.1",
|
|
"eslint": "^2.5.3",
|
|
"eslint-config-airbnb": "^6.2.0",
|
|
"eslint-plugin-react": "^4.2.3",
|
|
"expose-loader": "^0.7.1",
|
|
"extract-text-webpack-plugin": "^1.0.1",
|
|
"file-loader": "^0.9.0",
|
|
"jest-cli": "^0.9.2",
|
|
"node-sass": "^3.8.0",
|
|
"npm-shrinkwrap": "^5.4.1",
|
|
"postcss-loader": "^0.10.1",
|
|
"react-addons-test-utils": "^15.3.1",
|
|
"redux-logger": "^2.6.1",
|
|
"resolve-url-loader": "^1.6.0",
|
|
"sass-loader": "^4.0.0",
|
|
"script-loader": "^0.7.0",
|
|
"semver": "^5.1.0",
|
|
"url-loader": "^0.5.7",
|
|
"webpack": "^1.13.2"
|
|
},
|
|
"jest": {
|
|
"scriptPreprocessor": "<rootDir>/node_modules/babel-jest",
|
|
"testPathDirs": [
|
|
"admin/client/src",
|
|
"client/src"
|
|
],
|
|
"testDirectoryName": "tests",
|
|
"mocksPattern": "mocks",
|
|
"unmockedModulePathPatterns": [
|
|
"<rootDir>/node_modules/react"
|
|
],
|
|
"bail": true,
|
|
"testRunner": "<rootDir>/node_modules/jest-cli/src/testRunners/jasmine/jasmine2.js"
|
|
},
|
|
"babel": {
|
|
"presets": [
|
|
"react",
|
|
"es2015"
|
|
]
|
|
}
|
|
}
|