Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-deploy-archive-sass

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-deploy-archive-sass - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

7

CHANGELOG.md

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc