mirror of
https://github.com/h5bp/html5-boilerplate.git
synced 2026-01-09 16:08:01 -05:00
* feat(build): parcel * feat(parcel): gulp & tests * build(parcel): exclude package-lock * build(parcel): add private field to prevent accident npm publish
This commit is contained in:
3
dist/.gitignore
vendored
3
dist/.gitignore
vendored
@@ -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
|
||||
7450
dist/package-lock.json
generated
vendored
Normal file
7450
dist/package-lock.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
21
dist/package.json
vendored
Normal file
21
dist/package.json
vendored
Normal file
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
3
src/.gitignore
vendored
3
src/.gitignore
vendored
@@ -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
|
||||
7450
src/package-lock.json
generated
Normal file
7450
src/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
21
src/package.json
Normal file
21
src/package.json
Normal file
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ const expectedFilesInDistDir = [
|
||||
'.gitignore',
|
||||
'.htaccess',
|
||||
'404.html',
|
||||
'package.json',
|
||||
'browserconfig.xml',
|
||||
|
||||
'css/', // for directories, a `/` character
|
||||
@@ -66,6 +67,12 @@ function checkFiles(directory, expectedFiles) {
|
||||
// Get the list of files from the specified directory
|
||||
const files = glob.sync('**/*', {
|
||||
'cwd': directory,
|
||||
'ignore': [
|
||||
'**/node_modules/**',
|
||||
'package-lock.json',
|
||||
'**/dist/**',
|
||||
'**/.cache/**',
|
||||
],
|
||||
'dot': true, // include hidden files
|
||||
'mark': true // add a `/` character to directory matches
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user