project-cfg
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -23,2 +23,4 @@ const path = require('path'); | ||
delete data.enabled; | ||
PackageInstaller.install(PACKAGES.BABEL.core); | ||
@@ -25,0 +27,0 @@ |
@@ -8,3 +8,17 @@ const path = require('path'); | ||
app.use(function(req, res, next) { | ||
"use strict"; | ||
res.header('Access-Control-Allow-Origin', '*'); | ||
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE'); | ||
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization'); | ||
if ('OPTIONS' == req.method) { | ||
res.send(200); | ||
} | ||
else { | ||
next(); | ||
} | ||
}); | ||
app.get('/api', (request, response) => { | ||
@@ -11,0 +25,0 @@ "use strict"; |
{ | ||
"name": "project-cfg", | ||
"version": "0.0.4", | ||
"description": "A helper-package for generating projects", | ||
"version": "0.0.5", | ||
"description": "A helper-package for generating project structures", | ||
"bin": { | ||
@@ -11,7 +11,9 @@ "project-cfg": "bin/project-cfg.js" | ||
"scripts": { | ||
"start": "node bin/project-cfg.js" | ||
"start": "webpack -p --config ./webpack/build.babel.js && node bin/project-cfg.js", | ||
"wp:start": "webpack-dev-server --config ./webpack/builddev.babel.js", | ||
"wp:build": "webpack -p --config ./webpack/build.babel.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://git@gitlab.com/michaelsoftware/project.cfg.git" | ||
"url": "https://git@gitlab.com/michaelsoftware/project-cfg.git" | ||
}, | ||
@@ -24,5 +26,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://gitlab.com/michaelsoftware/project.cfg/issues" | ||
"url": "https://gitlab.com/michaelsoftware/project-cfg/issues" | ||
}, | ||
"homepage": "https://gitlab.com/michaelsoftware/project.cfg#README", | ||
"homepage": "https://gitlab.com/michaelsoftware/project-cfg#README", | ||
"dependencies": { | ||
@@ -32,3 +34,17 @@ "body-parser": "^1.16.0", | ||
"opn": "^4.0.2" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^6.23.1", | ||
"babel-loader": "^6.4.0", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-env": "^1.2.1", | ||
"babel-preset-stage-0": "^6.22.0", | ||
"css-loader": "^0.27.1", | ||
"html-webpack-plugin": "^2.28.0", | ||
"node-sass": "^4.5.0", | ||
"sass-loader": "^6.0.3", | ||
"style-loader": "^0.13.2", | ||
"webpack": "^2.2.1", | ||
"webpack-dev-server": "^2.4.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
529013
31
947
12