ember-cli-deploy-archive-sass
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -5,2 +5,9 @@ # Change Log | ||
## 1.1.0 | ||
### Fixed | ||
* Handle addon subdirectories more generically | ||
### Changed | ||
* Use path.join to construct paths | ||
## 1.0.3 | ||
@@ -7,0 +14,0 @@ ### Fixed |
38
index.js
@@ -60,3 +60,3 @@ /* jshint node: true */ | ||
this.log('saving tarball of ' + dir + ' to ' + fileName); | ||
//TODO: if file file exists, kill it first | ||
return targz().compress(dir, fileName); | ||
@@ -76,14 +76,30 @@ }, | ||
// the app styles | ||
promises.push(copy('app/styles', this.destDir)); | ||
//styles from addon | ||
fs.ensureDirSync(this.destDir + '/components'); | ||
promises.push(copy('node_modules/ember-arcgis-layout-components/addon/styles/components', this.destDir + '/components')); | ||
promises.push(copy('node_modules/ember-arcgis-layout-cards/addon/styles/components', this.destDir + '/components')); | ||
promises.push(copy(path.join('app', 'styles'), this.destDir)); | ||
//styles from addons | ||
var addons = [ 'ember-arcgis-layout-components', 'ember-arcgis-layout-cards' ]; | ||
addons.forEach((addonName) => { | ||
const addonPath = path.join('node_modules', addonName, 'addon', 'styles'); | ||
// get the subdirectories | ||
const dirs = fs.readdirSync(addonPath).filter(file => fs.statSync(path.join(addonPath, file)).isDirectory()); | ||
dirs.forEach((dir) => { | ||
const destDir = path.join(this.destDir, dir); | ||
// make sure it exists in the destDir | ||
fs.ensureDirSync(destDir); | ||
//push the copy promise into the promises array | ||
promises.push(copy(path.join(addonPath, dir), destDir)); | ||
}); | ||
}); | ||
// the dependencies | ||
fs.ensureDirSync(this.destDir + '/libraries/bootstrap'); | ||
promises.push(copy('node_modules/bootstrap-sass/assets/stylesheets/bootstrap', this.destDir + '/libraries/bootstrap')); | ||
fs.ensureDirSync(this.destDir + '/libraries/calcite'); | ||
promises.push(copy('node_modules/calcite-bootstrap/dist/sass/calcite', this.destDir + '/libraries/calcite')); | ||
fs.ensureDirSync(path.join(this.destDir, 'libraries', 'bootstrap')); | ||
promises.push(copy(path.join('node_modules', 'bootstrap-sass', 'assets', 'stylesheets', 'bootstrap'), path.join(this.destDir, 'libraries', 'bootstrap'))); | ||
fs.ensureDirSync(path.join(this.destDir, 'libraries', 'calcite')); | ||
promises.push(copy(path.join('node_modules', 'calcite-bootstrap', 'dist', 'sass', 'calcite'), path.join(this.destDir, 'libraries', 'calcite'))); | ||
// the asset map | ||
promises.push(copy(this.distDir + '/assets/assetMap.json', this.destDir + '/assetMap.json')); | ||
promises.push(copy(path.join(this.distDir, 'assets', 'assetMap.json'), path.join(this.destDir, 'assetMap.json'))); | ||
@@ -90,0 +106,0 @@ return Promise.all(promises); |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"main": "index.js", | ||
@@ -15,0 +15,0 @@ "dependencies": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
5297
92
1