Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(build): parcel (#2227) #2229

Merged
merged 5 commits into from
May 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dist/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Include your project-specific ignores in this file
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
# Useful .gitignore templates: https://github.com/github/gitignore
node_modules
dist
.cache
7,450 changes: 7,450 additions & 0 deletions dist/package-lock.json

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions dist/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "html5-boilerplate",
"version": "1.0.0",
"description": "",
"main": "index.js",
"private": true,
"directories": {
"doc": "doc"
},
"scripts": {
"start": "npm run build",
"build": "parcel build index.html",
"dev": "parcel index.html",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"parcel-bundler": "^1.12.4"
}
}
6 changes: 6 additions & 0 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ gulp.task('archive:zip', (done) => {
const zip = archiver('zip');
const files = glob.sync('**/*.*', {
'cwd': dirs.dist,
'ignore': [
'**/node_modules/**',
'package-lock.json',
'**/dist/**',
'**/.cache/**',
],
'dot': true // include hidden files
});
const output = fs.createWriteStream(archiveName);
Expand Down
3 changes: 3 additions & 0 deletions src/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Include your project-specific ignores in this file
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
# Useful .gitignore templates: https://github.com/github/gitignore
node_modules
dist
.cache
Loading