atm3-command-init
Advanced tools
Comparing version
{ | ||
"name": "atm3-command-init", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "scaffold for atm", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,9 +17,11 @@ { | ||
"links": "npm link node-sass fsevents", | ||
"build": "cross-env NODE_ENV=development better-npm-run build && npm run copy-lib", | ||
"dev": "cross-env NODE_ENV=development node webpack/bin/startup.js", | ||
"dev": "cross-env NODE_ENV=development node webpack/bin/startup.js", | ||
"compile": "cross-env NODE_ENV=production better-npm-run build", | ||
"prod": "cross-env NODE_ENV=production node webpack/bin/startup.js", | ||
"build-dev": "better-npm-run build-dev && npm run copy-lib", | ||
"copy-lib": "mkdir -p dist/js && cp -fr webpack/lib/* dist/js/", | ||
"build": "cross-env NODE_ENV=production npm run compile && npm run prod", | ||
"release": "atm release open", | ||
"test": "cross-env NODE_ENV=test node webpack/bin/startup.js", | ||
"build-dev": "better-npm-run build-dev", | ||
"lint": "eslint -c .eslintrc src api", | ||
"dll": "webpack --config webpack/webpack.dll.js --display-chunks --profile --colors --display-error-details && npm run copy-lib" | ||
"dll": "webpack --config webpack/webpack.dll.js --display-chunks --profile --colors --display-error-details" | ||
}, | ||
@@ -107,3 +109,3 @@ "betterScripts": { | ||
"uuid": "^2.0.2", | ||
"webpack": "^2.1.0-beta.6", | ||
"webpack": "1.13.3", | ||
"webpack-dev-middleware": "^1.6.1", | ||
@@ -110,0 +112,0 @@ "webpack-hot-middleware": "^2.10.0" |
@@ -5,24 +5,11 @@ import 'babel-polyfill' | ||
import 'guide/commons/css-reset/index.scss' | ||
import 'guide/commons/css-fonticon/index.scss' | ||
import 'guide/lib/css-reset/index.scss' | ||
import 'guide/lib/css-fonticon/index.scss' | ||
import "../styles/g.scss" | ||
import Header from 'guide/commons/Header' | ||
import Card from 'guide/commons/Card' | ||
import ViewAll from 'guide/commons/ViewAll' | ||
import Tag from 'guide/commons/Tag' | ||
import Footer from 'guide/commons/Footer' | ||
import Comment from 'guide/commons/Comment' | ||
import Header from 'guide/commons/mod-header' | ||
import Card from 'guide/commons/mod-card' | ||
import Footer from 'guide/commons/mod-footer' | ||
import Comment from 'guide/commons/mod-comment' | ||
import Nav from 'guide/novel/Nav' | ||
import BookItems from 'guide/novel/BookItems' | ||
import ImgWrap from 'guide/novel/ImgWrap' | ||
import Tags from 'guide/novel/Tags' | ||
import Book3col from 'guide/novel/Book3col' | ||
import BookList from 'guide/novel/BookList' | ||
import Totop from 'guide/novel/Totop' | ||
import Topic from 'guide/novel/Topic' | ||
import ItemArrow from 'guide/bookpublish/ItemArrow' | ||
const Root = () => { | ||
@@ -33,3 +20,4 @@ return ( | ||
<Card/> | ||
<Comment/> | ||
<Comment /> | ||
<Footer/> | ||
</div> | ||
@@ -36,0 +24,0 @@ ) |
@@ -32,3 +32,3 @@ #!/usr/bin/env node | ||
global.webpackIsomorphicTools = new WebpackIsomorphicTools(require('../webpack.isomorphic')) | ||
.development(__DEVELOPMENT__) | ||
// .development(__DEVELOPMENT__) | ||
.server(rootDir, function () { | ||
@@ -35,0 +35,0 @@ require('../webpack-dev-server.js'); |
@@ -24,3 +24,3 @@ const path = require('path'); | ||
loader: 'babel-loader', | ||
include: /src|webpack/, | ||
include: /src|webpack|react-guide/, | ||
query: options.babelQuery, | ||
@@ -46,3 +46,3 @@ }, | ||
test: /\.scss$/, | ||
include: /src|xiaoshuo/, | ||
include: /src|react-guide/, | ||
loader: options.sassLoaders, | ||
@@ -85,3 +85,4 @@ }, | ||
includePaths: [ | ||
path.resolve(__dirname, "../src") | ||
path.resolve(__dirname, "../src"), | ||
path.resolve(__dirname, "../node_modules/@tencent/react-guide"), | ||
] | ||
@@ -88,0 +89,0 @@ }, |
@@ -9,8 +9,2 @@ const webpack = require('webpack'); | ||
'react-dom', | ||
'react-router', | ||
'history', | ||
'classnames', | ||
'scroll-behavior', | ||
"scroll-behavior", | ||
'serialize-javascript', | ||
'lodash', | ||
@@ -47,20 +41,20 @@ ] | ||
new webpack.optimize.UglifyJsPlugin({ | ||
compress: { | ||
sequences: true, | ||
dead_code: true, | ||
conditionals: true, | ||
booleans: true, | ||
unused: true, | ||
if_return: true, | ||
join_vars: true, | ||
drop_console: true, | ||
warnings: false, | ||
}, | ||
verbose: true, | ||
comment: true, | ||
mangle: true, | ||
sourceMap: false | ||
}), | ||
// new webpack.optimize.UglifyJsPlugin({ | ||
// compress: { | ||
// sequences: true, | ||
// dead_code: true, | ||
// conditionals: true, | ||
// booleans: true, | ||
// unused: true, | ||
// if_return: true, | ||
// join_vars: true, | ||
// drop_console: true, | ||
// warnings: false, | ||
// }, | ||
// verbose: true, | ||
// comment: true, | ||
// mangle: true, | ||
// sourceMap: false | ||
// }), | ||
], | ||
}; |
@@ -24,3 +24,3 @@ const path = require('path'); | ||
].reduce((sum, folder) => ((sum[folder] = paths.src(folder)) && sum), { | ||
guide: path.resolve(__dirname, "../node_modules/@tencent/react-guide/src"), | ||
guide: path.resolve(__dirname, "../node_modules/@tencent/react-guide/"), | ||
}), | ||
@@ -27,0 +27,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2531705
120.14%52
4%41591
423.68%3
50%