Skip to content

Commit

Permalink
feat(build): parcel (#2227) (#2229)
Browse files Browse the repository at this point in the history
* feat(build): parcel

* feat(parcel): gulp & tests

* build(parcel): exclude package-lock

* build(parcel): add private field to prevent accident npm publish
  • Loading branch information
vltansky committed May 8, 2020
1 parent 87acc19 commit 6862fd3
Show file tree
Hide file tree
Showing 8 changed files with 14,961 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/.gitignore
@@ -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
@@ -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
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
@@ -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

0 comments on commit 6862fd3

Please sign in to comment.