New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More →

atm3-command-init

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atm3-command-init - npm Package Compare versions

Comparing version

to
0.2.1

{
"name": "atm3-command-init",
"version": "0.2.0",
"version": "0.2.1",
"description": "scaffold for atm",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -68,5 +68,8 @@ var path = require('path');

.match("font/**", {})
.match("img/**", {})
.match('img/**.png', {
optimizer: fis.plugin('png-compressor')
.match("images/**", {
release: true,
})
.match('images/**.png', {
optimizer: fis.plugin('png-compressor'),
release: true
}).match('js/**', {})

@@ -88,3 +91,3 @@ .match('mail/**', {})

}),
postpackager: [fis.plugin('list-html'), fis.plugin('open', {
postpackager: [fis.plugin('open', {
baseUrl: atmConf.wapstatic + atmConf.userName + '/' + atmConf.projectName

@@ -91,0 +94,0 @@ })]

@@ -5,3 +5,3 @@ {

"chunk": "template",
"entry": "../src/entry/template.js",
"entry": "../src/containers/template.js",
"template": "../src/template.html",

@@ -8,0 +8,0 @@ "filename": "html/template.html"

const path = require('path');
const webpack = require('webpack');
const WebpackIsomorphicToolsPlugin = require('webpack-isomorphic-tools/plugin');
const webpackIsomorphicToolsPlugin = new WebpackIsomorphicToolsPlugin(require('./webpack.isomorphic'));
const isomorphicConfig = require('./webpack.isomorphic');
const webpackIsomorphicToolsPlugin = new WebpackIsomorphicToolsPlugin(isomorphicConfig);
const NODE_ENV = JSON.stringify(process.env.NODE_ENV || 'development');

@@ -20,3 +21,3 @@

loaders: [
{
{
test: /\.js$/, // Transform all .js files required somewhere with Babel

@@ -50,3 +51,3 @@ loader: 'babel-loader',

test: webpackIsomorphicToolsPlugin.regular_expression('images'),
loader: 'url-loader?limit=10000&name=img/[name].[ext]',
loader: 'url-loader?limit=10000000&name=[name].[ext]',
},

@@ -66,2 +67,6 @@ {

{
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
loader: 'url-loader?name=images/[name].[ext]&limit=10000000&mimetype=image/svg+xml',
},
{
test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,

@@ -104,3 +109,6 @@ loader: 'file?name=fonts/[name].[ext]',

resolve: {
modules: ['src', 'node_modules'],
modules: [
path.resolve(__dirname, '../src'),
path.resolve(__dirname, '../node_modules')
],
extensions: [

@@ -117,6 +125,4 @@ '',

],
alias: {
guide: path.resolve(__dirname, "../node_modules/@tencent/react-guide/src"),
}
alias: isomorphicConfig.alias
},
});

@@ -40,5 +40,5 @@ /**

// Load the CSS in a style tag in development
cssLoaders: 'style-loader?name=css/[name].[ext]!css-loader!postcss-loader',
cssLoaders: 'style-loader?name=css/[name].[ext]!css?importLoaders=2&localIdentName=[local]___[hash:base64:5]!postcss-loader',
sassLoaders: 'style?name=css/[name].[ext]!css!postcss!sass?outputStyle=expanded&sourceMap=true&sourceMapContents=true',
sassLoaders: 'style?name=css/[name].[ext]!css?importLoaders=2!postcss!sass?outputStyle=expanded&sourceMap=true&sourceMapContents=true',

@@ -45,0 +45,0 @@ // Process the CSS with PostCSS

const path = require('path');
const WebpackIsomorphicToolsPlugin = require('webpack-isomorphic-tools/plugin');
const paths = {
src: folder => path.resolve(__dirname, "../src/", folder)
}
// see this link for more info on what all of this means
// https://github.com/halt-hammerzeit/webpack-isomorphic-tools
module.exports = {

@@ -17,5 +16,12 @@

// debug: true,
alias: {
alias: [
'components',
'containers',
'styles',
'images',
'utils',
'fonts',
].reduce((sum, folder) => ((sum[folder] = paths.src(folder)) && sum), {
guide: path.resolve(__dirname, "../node_modules/@tencent/react-guide/src"),
},
}),

@@ -22,0 +28,0 @@ assets: {

@@ -18,3 +18,3 @@ // Important modules this config uses

module.exports = require('./webpack.base')({
devtool: 'hidden-source-map',
// devtool: 'hidden-source-map',

@@ -38,3 +38,3 @@ // In production, we skip all hot-reloading stuff

fallbackLoader: 'style-loader?name=css/[name].[ext]',
loader: 'css-loader!postcss-loader'
loader: 'css-loader?importLoaders=2!postcss-loader'
}

@@ -46,3 +46,3 @@ ),

fallbackLoader: 'style-loader?name=css/[name].[ext]',
loader: 'css-loader!postcss-loader!sass?outputStyle=expanded&sourceMap=true&sourceMapContents=true'
loader: 'css-loader?importLoaders=2!postcss-loader!sass?outputStyle=expanded&sourceMap=true&sourceMapContents=true'
}

@@ -49,0 +49,0 @@ ),

Sorry, the diff of this file is too big to display