Skip to content

Commit

Permalink
🔧 Improving building process
Browse files Browse the repository at this point in the history
  • Loading branch information
theus committed Jul 25, 2017
1 parent d4ae58c commit 2a86f46
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 19 deletions.
4 changes: 2 additions & 2 deletions dist/MenuChef.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/MenuChef.js.map

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,15 @@ gulp.task('compile', function () {
});

gulp.task('doc', function () {
exec('npm run doc');
exec('npm run doc:generate');
});

gulp.task('watch', function () {
gulp.watch('./site/**/*.twig', ['compile']);
gulp.watch('./site/src/**/*', ['doc']);
gulp.watch('./doc.json', ['compile']);
});

gulp.watch('./site/**/*.twig', ['compile']);
gulp.watch('./site/src/**/*', ['doc']);
gulp.watch('./doc.json', ['compile']);

gulp.task('default', ['doc' ,'compile']);
gulp.task('default', ['doc' ,'compile']);
gulp.task('dev', ['default' ,'watch']);
24 changes: 14 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"name": "menuchef",
"version": "1.1.0",
"version": "1.1.1",
"description": "Create hamburgers' menu like a chef",
"main": "dist/MenuChef.js",
"dependencies": {
"hamburgers": "^0.8.1",
"import-fresh": "^2.0.0",
"slugg": "^1.2.1"
"hamburgers": "^0.8.1"
},
"devDependencies": {
"babel-core": "^6.23.1",
Expand All @@ -33,16 +31,22 @@
"uglify-js": "git://github.com/mishoo/UglifyJS2.git#harmony",
"uglifyjs-webpack-plugin": "^0.3.0",
"webpack": "^2.2.1",
"webpack-dev-server": "^2.4.1"
"webpack-dev-server": "^2.4.1",
"import-fresh": "^2.0.0",
"slugg": "^1.2.1"
},
"scripts": {
"start": "concurrently -k \"webpack -w --colors\" \"npm run site\"",
"build": "webpack --progress --colors --optimize-minimize",
"dev": "webpack-dev-server",
"start": "npm run dev",
"dev": "concurrently -k \"npm run webpack:watch\" \"npm run site:dev\"",
"webpack:build": "webpack --colors",
"webpack:watch": "webpack -w --colors",
"webpack:dev": "webpack-dev-server",
"build": "npm run webpack:build && npm run site:build",
"test": "mocha-phantomjs .\\test\\index.html",
"precommit": "npm test",
"doc": "documentation build src/MenuChef.js -f json --shallow -o doc.json",
"site": "gulp"
"doc:generate": "documentation build src/MenuChef.js -f json --shallow -o doc.json",
"site:build": "gulp",
"site:dev": "gulp dev"
},
"author": "Matheus Falcão (https://github.com/theus)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Released under the MIT License.`),
new UglifyJSPlugin({
sourceMap: true,
mangle: {
except: ['$super', '$', 'exports', 'require', 'MenuChef']
except: ['MenuChef']
}
})
]
Expand Down

0 comments on commit 2a86f46

Please sign in to comment.